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
87
88
89
90
91
92
93
94
95
96
97
|
/***************************************************************************
* 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 K9CELLCOPYLIST_H
#define K9CELLCOPYLIST_H
#include "k9common.h"
#include "k9dvd.h"
#include "k9cell.h"
#include "k9dvdread.h"
class k9CellCopyVTS {
private:
uint num;
uint64_t size;
public:
k9CellCopyVTS (int _num) {
num=_num;
size=0;
};
uint getnum() ;
void addsize(uint32_t _size) ;
uint64_t getsize() ;
};
/**
@author Jean-Michel PETIT
*/
class k9CellVTSList : public TQPtrList<k9CellCopyVTS> {
protected:
int compareItems ( TQPtrCollection::Item item1, TQPtrCollection::Item item2 );
};
class k9CellCopyList : public TQObjectList {
public:
k9CellCopyList(k9DVDRead * _dvdHandle,k9DVD *_DVD);
double getfactor(bool _withMenus,bool _streams);
double gettotalSize();
double getforcedSize(bool _withFactor);
double getMinFactor(bool _withMenus);
k9CellVTSList VTSList;
~k9CellCopyList();
void addInbytes(const uint64_t& _value) {
m_inbytes += _value;
}
void addOutbytes(const uint64_t& _value) {
m_outbytes += _value;
}
void addFrcinbytes(const uint64_t& _value) {
m_frcinbytes += _value;
}
void addFrcoutbytes(const uint64_t& _value) {
m_frcoutbytes += _value;
}
private:
k9DVD *DVD;
k9DVDRead *dvdHandle;
uint64_t m_inbytes,m_outbytes;
uint64_t m_frcinbytes,m_frcoutbytes;
void fill();
k9Cell *addCell(int _VTS,int _pgc,int _id,uint32_t startSector,uint32_t lastSector,uchar _angleBlock);
bool checkSelected(k9Cell *_cell);
void addStreams(k9DVDTitle *_title,k9Cell *_cell);
void setVTS(uint _numVTS,uint32_t _size);
//TQPtrList <k9CellCopyVTS> VTSList;
void sortVTSList();
};
#endif
|