30 #ifndef COMMON_QUICKTIME_H 31 #define COMMON_QUICKTIME_H 33 #include "common/array.h" 34 #include "common/scummsys.h" 35 #include "common/path.h" 36 #include "common/stream.h" 37 #include "common/rational.h" 38 #include "common/types.h" 39 #include "common/rect.h" 100 bool isOpen()
const {
return _fd !=
nullptr; }
102 enum class QTVRType {
124 uint32 trackDuration;
137 uint32 getCodecTag()
const {
return _codecTag; }
148 CODEC_TYPE_MOV_OTHER,
155 enum class GraphicsMode {
160 STRAIGHT_ALPHA = 0x100,
161 PREMUL_WHITE_ALPHA = 0x101,
162 PREMUL_BLACK_ALPHA = 0x102,
163 STRAIGHT_ALPHA_BLEND = 0x104,
194 int32 commentStrOffset;
197 enum class HotSpotType {
215 int32 mouseOverCursorID;
216 int32 mouseDownCursorID;
217 int32 mouseUpCursorID;
220 int32 commentStrOffset;
230 String getString(int32 offset)
const;
243 int32 commentStrOffset;
261 int32 commentStrOffset;
281 uint32 *chunkOffsets;
282 int timeToSampleCount;
284 uint32 sampleToChunkCount;
289 uint32 keyframeCount;
303 uint32 mediaDuration;
317 GraphicsMode graphicsMode;
323 enum class MovieType {
325 kOldNavigableMovieScene,
333 uint16 frame_duration;
335 MovieType movie_type;
349 virtual SampleDesc *readSampleDesc(
Track *track, uint32 format, uint32 descSize) = 0;
377 DisposeAfterUse::Flag _disposeFileHandle;
378 const ParseTable *_parseTable;
383 void initParseTable();
385 bool parsePanoramaAtoms();
387 int readDefault(Atom atom);
388 int readLeaf(Atom atom);
389 int readDREF(Atom atom);
390 int readELST(Atom atom);
391 int readHDLR(Atom atom);
392 int readMDHD(Atom atom);
393 int readMOOV(Atom atom);
394 int readMVHD(Atom atom);
395 int readTKHD(Atom atom);
396 int readTRAK(Atom atom);
397 int readSMHD(Atom atom);
398 int readSTCO(Atom atom);
399 int readSTSC(Atom atom);
400 int readSTSD(Atom atom);
401 int readSTSS(Atom atom);
402 int readSTSZ(Atom atom);
403 int readSTTS(Atom atom);
404 int readVMHD(Atom atom);
405 int readCMOV(Atom atom);
406 int readWAVE(Atom atom);
407 int readESDS(Atom atom);
408 int readSMI(Atom atom);
409 int readCTYP(Atom atom);
410 int readWLOC(Atom atom);
411 int readNAVG(Atom atom);
412 int readGMIN(Atom atom);
413 int readPINF(Atom atom);
415 int readPHDR(Atom atom);
416 int readPHOT(Atom atom);
417 int readSTRT(Atom atom);
418 int readPLNK(Atom atom);
419 int readPNAV(Atom atom);
Definition: macresman.h:125
Definition: quicktime.h:223
Definition: quicktime.h:329
Definition: quicktime.h:250
Definition: quicktime.h:112
Definition: quicktime.h:167
Definition: quicktime.h:132
Definition: quicktime.h:123
Definition: rational.h:40
Definition: quicktime.h:58
Definition: quicktime.h:203
Definition: quicktime.h:276
uint32 getTimeScale() const
Definition: quicktime.h:97
Definition: quicktime.h:264
bool parseStream(SeekableReadStream *stream, DisposeAfterUse::Flag disposeFileHandle=DisposeAfterUse::YES)
Definition: quicktime.h:233
Definition: algorithm.h:29
Definition: quicktime.h:268
Definition: quicktime.h:117
Definition: quicktime.h:227
bool parseFile(const Path &filename)
Definition: quicktime.h:246
void setChunkBeginOffset(uint32 offset)
Definition: quicktime.h:92
bool isOpen() const
Definition: quicktime.h:100