📄 qt_parse.h
字号:
/*-----------------------------------------------------------------------------\@ModuleName :: qt_parse.h@Description :: Header file for parsing QT MOOV atom For info about Quick Time File Format see QTFF reference at http://developer.apple.com/techpubs/quicktime/qtdevdocs/QTFF/qtff.html@Copyright :: Copyright 2001- Texas Instruments, Inc.@History ::-------------------------------------------------------------------------------\-----------------------------------------------------------------------------*/#ifndef __QT_PARSE_H__#define __QT_PARSE_H__#include <util/util.h>#define MAX_TRAK_ATOMS 3#define COMP_TYPE_MHLR MAKE_TAG('m','h','l','r')#define COMP_TYPE_DHLR MAKE_TAG('d','h','l','r')#define COMP_SUB_TYPE_VIDE MAKE_TAG('v','i','d','e')#define COMP_SUB_TYPE_SOUN MAKE_TAG('s','o','u','n')typedef struct { Uint32 chunkOffset;} STCO_Info;typedef struct { Uint32 sampleDuration;} STTS_Info;typedef struct { Uint32 dataformat;} STSD_Info;typedef struct { Uint32 sampleSizeConst; Uint32 sampleCount; Uint32 *sampleSizeTable;} STSZ_Info;typedef struct { STTS_Info stts; STSD_Info stsd; STSZ_Info stsz; STCO_Info stco;} STBL_Info;typedef struct { STBL_Info stbl;} MINF_Info;typedef struct { Uint32 compType; Uint32 compSubType;} HDLR_Info;typedef struct { Uint32 timescale;} MDHD_Info;typedef struct { MDHD_Info mdhd; HDLR_Info hdlr; MINF_Info minf;} MDIA_Info;typedef struct { Uint32 trackID; Uint32 duration; Uint32 width; Uint32 height;} TKHD_Info;typedef struct { TKHD_Info tkhd; MDIA_Info mdia;} TRAK_Info;typedef struct { Uint32 timescale; Uint32 duration;} MVHD_Info;typedef struct { MVHD_Info mvhd; TRAK_Info trak[MAX_TRAK_ATOMS];} MOOV_Info;STATUS QTShowParams(QTParams *moov) ;STATUS QTParseMOOVAtom(Uint8 *start, Uint32 size, QTParams *prmQT) ;STATUS QTParseMVHDAtom( Uint8 *start , Uint32 size, MVHD_Info *mvhd) ;STATUS QTParseTRAKAtom( Uint8 *start , Uint32 size, TRAK_Info *trak) ;STATUS QTParseTKHDAtom( Uint8 *start , Uint32 size, TKHD_Info *tkhd) ;STATUS QTParseMDIAAtom( Uint8 *start , Uint32 size, MDIA_Info *mdia) ;STATUS QTParseHDLRAtom( Uint8 *start , Uint32 size, HDLR_Info *hdlr) ;STATUS QTParseMINFAtom( Uint8 *start , Uint32 size, MINF_Info *minf) ;STATUS QTParseSTBLAtom( Uint8 *start , Uint32 size, STBL_Info *stbl) ;STATUS QTParseSTTSAtom( Uint8 *start , Uint32 size, STTS_Info *stts) ;STATUS QTParseSTSDAtom( Uint8 *start , Uint32 size, STSD_Info *stsd) ;STATUS QTParseSTSZAtom( Uint8 *start , Uint32 size, STSZ_Info *stsz) ;STATUS QTParseSTCOAtom( Uint8 *start , Uint32 size, STCO_Info *stco) ;#endif /* __QT_PARSE_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -