A class to compute ranges in contiguous input sectors. More...
Public Member Functions | |
| InputSectors (QtlLogger *log) | |
| Constructor. More... | |
| void | advance (int sectorCount) |
| Advance current position by a number of sectors. More... | |
| int | currentSectorAddress () const |
| Get current sector address to read. More... | |
| int | currentSectorCount () const |
| Get number of contiguous sectors at current sector address. More... | |
| void | getCurrentOriginalIds (int &vobId, int &cellId) const |
| Get the original VOB Id and original Cell Id of the current cell. More... | |
| void | initialize (const QtsDvdProgramChainPtr &pgc) |
| Initialize the walk through the list of sectors. More... | |
Private Attributes | |
| QtsDvdProgramCellList | _cells |
| List of PGC cells. More... | |
| int | _currentCell |
| Index of current cell in _cells. More... | |
| int | _currentRange |
| Index of current range in _rangeList. More... | |
| int | _currentSector |
| Next sector to read in current range. More... | |
| QtlLogger * | _log |
| Message logger. More... | |
| QtlRangeList | _ranges |
| List of sector ranges in current cell. More... | |
A class to compute ranges in contiguous input sectors.
| QtsDvdProgramChainDemux::InputSectors::InputSectors | ( | QtlLogger * | log | ) |
Constructor.
| [in] | log | Where to log messages, cannot be null. |
| void QtsDvdProgramChainDemux::InputSectors::initialize | ( | const QtsDvdProgramChainPtr & | pgc | ) |
Initialize the walk through the list of sectors.
| [in] | pgc | PGC description. |
| int QtsDvdProgramChainDemux::InputSectors::currentSectorAddress | ( | ) | const |
Get current sector address to read.
| int QtsDvdProgramChainDemux::InputSectors::currentSectorCount | ( | ) | const |
Get number of contiguous sectors at current sector address.
| void QtsDvdProgramChainDemux::InputSectors::advance | ( | int | sectorCount | ) |
Advance current position by a number of sectors.
| [in] | sectorCount | Number of sectors to advance. |
| void QtsDvdProgramChainDemux::InputSectors::getCurrentOriginalIds | ( | int & | vobId, |
| int & | cellId | ||
| ) | const |
Get the original VOB Id and original Cell Id of the current cell.
| [out] | vobId | Original VOB Id. |
| [out] | cellId | Original Cell Id. |
|
private |
Message logger.
|
private |
List of PGC cells.
|
private |
Index of current cell in _cells.
|
private |
List of sector ranges in current cell.
|
private |
Index of current range in _rangeList.
|
private |
Next sector to read in current range.