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

A class which is used to read from VOB files. More...

Classes

struct  File
 

Public Member Functions

 VobFileSet (const QStringList &vobFileNames, QtlLogger *log)
 Constructor. More...
 
 ~VobFileSet ()
 Destructor. More...
 
void close ()
 Close all VOB files. More...
 
int read (int sectorAddress, void *buffer, int maxSectorCount)
 Read some contiguous sectors. More...
 

Private Attributes

int _current
 Index of VOB file being currently demuxed. More...
 
QVector< File * > _files
 Vector of VOB file descriptions. More...
 
QtlLogger_log
 Message logger. More...
 

Detailed Description

A class which is used to read from VOB files.

Not used in case of encrypted DVD media.

Constructor & Destructor Documentation

◆ VobFileSet()

QtsDvdProgramChainDemux::VobFileSet::VobFileSet ( const QStringList &  vobFileNames,
QtlLogger log 
)

Constructor.

Parameters
[in]vobFileNamesList of VOB file names.
[in]logWhere to log messages, cannot be null.

◆ ~VobFileSet()

QtsDvdProgramChainDemux::VobFileSet::~VobFileSet ( )

Destructor.

Member Function Documentation

◆ read()

int QtsDvdProgramChainDemux::VobFileSet::read ( int  sectorAddress,
void *  buffer,
int  maxSectorCount 
)

Read some contiguous sectors.

Parameters
[in]sectorAddressSector address to read, 0 being the first sector of the first file.
[out]bufferWhere to read sectors.
[in]maxSectorCountMax number of sectors to read.
Returns
Number of sectors actually read. Can be less than maxSectorCount if the end of a VOB file is reached. Return -1 on error.

◆ close()

void QtsDvdProgramChainDemux::VobFileSet::close ( )

Close all VOB files.

Member Data Documentation

◆ _log

QtlLogger* QtsDvdProgramChainDemux::VobFileSet::_log
private

Message logger.

◆ _files

QVector<File*> QtsDvdProgramChainDemux::VobFileSet::_files
private

Vector of VOB file descriptions.

◆ _current

int QtsDvdProgramChainDemux::VobFileSet::_current
private

Index of VOB file being currently demuxed.


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