ScummVM API documentation
Common::QuickTimeParser Class Referenceabstract
Inheritance diagram for Common::QuickTimeParser:
Audio::QuickTimeAudioDecoder MidiParser_QT Video::QuickTimeDecoder

Classes

struct  EditListEntry
 
class  SampleDesc
 
struct  SampleToChunkEntry
 
struct  TimeToSampleEntry
 
struct  Track
 

Public Member Functions

bool parseFile (const Path &filename)
 
bool parseStream (SeekableReadStream *stream, DisposeAfterUse::Flag disposeFileHandle=DisposeAfterUse::YES)
 
void close ()
 
void flattenEditLists ()
 
void setChunkBeginOffset (uint32 offset)
 
uint32 getTimeScale () const
 
bool isOpen () const
 

Protected Types

enum  CodecType { CODEC_TYPE_MOV_OTHER, CODEC_TYPE_VIDEO, CODEC_TYPE_AUDIO, CODEC_TYPE_MIDI }
 

Protected Member Functions

virtual SampleDescreadSampleDesc (Track *track, uint32 format, uint32 descSize)=0
 
void init ()
 

Protected Attributes

SeekableReadStream_fd
 
uint32 _timeScale
 
uint32 _duration
 
Rational _scaleFactorX
 
Rational _scaleFactorY
 
Array< Track * > _tracks
 

Member Function Documentation

◆ parseFile()

bool Common::QuickTimeParser::parseFile ( const Path filename)

Load a QuickTime file

Parameters
filenamethe filename to load

◆ parseStream()

bool Common::QuickTimeParser::parseStream ( SeekableReadStream stream,
DisposeAfterUse::Flag  disposeFileHandle = DisposeAfterUse::YES 
)

Load a QuickTime file from a SeekableReadStream

Parameters
streamthe stream to load
disposeFileHandlewhether to delete the stream after use

◆ close()

void Common::QuickTimeParser::close ( )

Close a QuickTime file

◆ flattenEditLists()

void Common::QuickTimeParser::flattenEditLists ( )

Flattens edit lists to a single edit containing the first edit contiguously through the last edit. Used to work around bad edit offsets.

◆ setChunkBeginOffset()

void Common::QuickTimeParser::setChunkBeginOffset ( uint32  offset)
inline

Set the beginning offset of the video so we can modify the offsets in the stco atom of videos inside the Mohawk/mTropolis archives

Parameters
offsetthe beginning offset of the video

◆ getTimeScale()

uint32 Common::QuickTimeParser::getTimeScale ( ) const
inline

Returns the movie time scale

◆ isOpen()

bool Common::QuickTimeParser::isOpen ( ) const
inline

Find out if this parser has an open file handle


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