1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
/***************************************************************************
* Copyright (C) 2005 by Jean-Michel Petit *
* [email protected] *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef K9IFO2_H
#define K9IFO2_H
#include "k9common.h"
#include "k9dvdread.h"
#include <tqfile.h>
#include <stdlib.h>
/**
@author Jean-Michel Petit
*/
class k9Ifo2 : public TQObject {
Q_OBJECT
public:
k9Ifo2(k9DVDRead *_dvdread);
~k9Ifo2();
void setDevice(TQString &_device);
void setOutput(TQString &_output);
ifo_handle_t * openIFO(int _num);
void closeIFO();
void saveIFO();
ifo_handle_t * getIFO();
static void navRead_PCI(pci_t *pci, uchar *buffer);
int test;
protected:
TQString device;
TQString output;
ifo_handle_t *_ifo;
int numIfo;
private:
TQFile* outputFile;
long cellSize;
uchar * bufCopy,*m_buffer;
int bufCopySize;
k9DVDRead *m_dvd;
uint m_position;
private:
int round(int);
void updateVMG(uchar * _buffer);
void updateFP_PGC(uchar * _buffer);
void updatePGC_COMMAND_TBL(uchar *_buffer,pgc_command_tbl_t *_cmd_tbl,int offset);
void updatePGC_PROGRAM_MAP(uchar *_buffer,pgc_program_map_t *_program_map, int _nr,int _offset);
void updatePGC_CELL_PLAYBACK_TBL(uchar *_buffer, cell_playback_t *_cell_playback,int _nr, int _offset);
void updatePGC_CELL_POSITION_TBL(uchar *_buffer,cell_position_t *_cell_position,int _nr, int _offset);
void updatePGC(uchar *_buffer,pgc_t *_pgc,int _offset);
void updateTT_SRPT(uchar *_buffer);
void updatePGCI_UT(uchar *_buffer);
void updatePTL_MAIT(uchar *_buffer);
void updateVTS_ATRT(uchar *_buffer);
void updateTXTDT_MGI(uchar * _buffer);
void updateC_ADT(uchar * _buffer, bool _isMenu);
void updateVOBU_ADMAP(uchar * _buffer, bool _isMenu);
void updatePGCIT(uchar *_buffer);
void updatePGCIT_internal(uchar *_buffer, pgcit_t *_pgcit, int offset);
void updateVTS(uchar *_buffer);
void updateVTS_PTT_SRPT(uchar *_buffer);
void updateVTS_TMAPT(uchar *_buffer) ;
void updateC_ADT_Internal(uchar *_buffer,c_adt_t *_c_adt,int _sector);
void updateVOBU_ADMAP_Internal(uchar *_buffer,vobu_admap_t *_vobu_admap,int _sector);
void checkBuffer(TQString lib,uchar *_buffer);
};
#endif
|