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

Classes

struct  EditListEntry
 
struct  Navigation
 
struct  PanoHotSpot
 
struct  PanoHotSpotTable
 
struct  PanoLink
 
struct  PanoLinkTable
 
struct  PanoNavigation
 
struct  PanoNavigationTable
 
struct  PanoramaInformation
 
struct  PanoramaNode
 
struct  PanoSampleHeader
 
struct  PanoStringTable
 
struct  PanoTrackSample
 
class  SampleDesc
 
struct  SampleToChunkEntry
 
struct  TimeToSampleEntry
 
struct  Track
 

Public Types

enum  QTVRType { OTHER, OBJECT, PANORAMA }
 

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,
  CODEC_TYPE_PANO
}
 
enum  GraphicsMode {
  COPY = 0x0, DITHER_COPY = 0x40, BLEND = 0x20, TRANSPARENT = 0x24,
  STRAIGHT_ALPHA = 0x100, PREMUL_WHITE_ALPHA = 0x101, PREMUL_BLACK_ALPHA = 0x102, STRAIGHT_ALPHA_BLEND = 0x104,
  COMPOSITION = 0x103
}
 
enum  HotSpotType { undefined, link, navg }
 
enum  MovieType { kStandardObject = 1, kOldNavigableMovieScene, kObjectInScene }
 

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
 
Navigation _nav
 
QTVRType _qtvrType
 
uint16 _winX
 
uint16 _winY
 
Track_panoTrack
 

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: