QtlMovie 1.12 (A specialized FFmpeg front-end)
QtsDvdProgramChainDemux::InputSectors Class Reference

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...
 

Detailed Description

A class to compute ranges in contiguous input sectors.

Constructor & Destructor Documentation

◆ InputSectors()

QtsDvdProgramChainDemux::InputSectors::InputSectors ( QtlLogger log)

Constructor.

Parameters
[in]logWhere to log messages, cannot be null.

Member Function Documentation

◆ initialize()

void QtsDvdProgramChainDemux::InputSectors::initialize ( const QtsDvdProgramChainPtr pgc)

Initialize the walk through the list of sectors.

Parameters
[in]pgcPGC description.

◆ currentSectorAddress()

int QtsDvdProgramChainDemux::InputSectors::currentSectorAddress ( ) const

Get current sector address to read.

Returns
Current sector address to read, -1 at end of sector list.

◆ currentSectorCount()

int QtsDvdProgramChainDemux::InputSectors::currentSectorCount ( ) const

Get number of contiguous sectors at current sector address.

Returns
Number of contiguous sectors at current sector address.

◆ advance()

void QtsDvdProgramChainDemux::InputSectors::advance ( int  sectorCount)

Advance current position by a number of sectors.

Parameters
[in]sectorCountNumber of sectors to advance.

◆ getCurrentOriginalIds()

void QtsDvdProgramChainDemux::InputSectors::getCurrentOriginalIds ( int &  vobId,
int &  cellId 
) const

Get the original VOB Id and original Cell Id of the current cell.

Parameters
[out]vobIdOriginal VOB Id.
[out]cellIdOriginal Cell Id.

Member Data Documentation

◆ _log

QtlLogger* QtsDvdProgramChainDemux::InputSectors::_log
private

Message logger.

◆ _cells

QtsDvdProgramCellList QtsDvdProgramChainDemux::InputSectors::_cells
private

List of PGC cells.

◆ _currentCell

int QtsDvdProgramChainDemux::InputSectors::_currentCell
private

Index of current cell in _cells.

◆ _ranges

QtlRangeList QtsDvdProgramChainDemux::InputSectors::_ranges
private

List of sector ranges in current cell.

◆ _currentRange

int QtsDvdProgramChainDemux::InputSectors::_currentRange
private

Index of current range in _rangeList.

◆ _currentSector

int QtsDvdProgramChainDemux::InputSectors::_currentSector
private

Next sector to read in current range.


The documentation for this class was generated from the following files: