home *** CD-ROM | disk | FTP | other *** search
/ Netrunner 2004 October / NETRUNNER0410.ISO / regular / dctm.lzh / DCTM / source.lzh / source / sequencedata.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-02-08  |  1.5 KB  |  58 lines

  1. /*************************************************************************
  2.     sequencedata.h
  3.  
  4.     03/02/08    Xiaohong
  5. *************************************************************************/
  6. #ifndef _INCLUDE_SEQUENCEDATA_H____________________________________________
  7. #define _INCLUDE_SEQUENCEDATA_H____________________________________________
  8. #include "picturestruct.h"
  9. #include "systemdata.h"
  10. /**********************************************************
  11.     SEQUENCEDATA é╠ÉΘî╛
  12. **********************************************************/
  13. typedef struct
  14. {
  15.     int nHFrameSize,nVFrameSize;
  16.     int nWidth,nHeight;
  17.     int nChromWidth,nChromHeight,nBlockCount;
  18.     int nMacroBlocksWidth,nMacroBlocksHeight;
  19.     int nWidth2,nHeight2,nMacroBlocksHeight2,nChromWidth2;
  20.     int nAspectRatio;
  21.     int nFrameRateCode;
  22.     double fFrameRate;
  23.     double fBitRate;
  24.     int nVBVBufferSize;
  25.     unsigned char uConstrainedParams;
  26.     bool bLoadIQuant,bLoadNIQuant;
  27. }SEQUENCEHEADER;
  28.  
  29. typedef struct
  30. {
  31.     int nProfile,nLevel;
  32.     bool bProgressSequence;
  33.     int nChromaFormat;
  34.     bool bLowDelay;
  35. }SEQUENCEEXTENSION;
  36.  
  37. typedef struct
  38. {
  39.     int nVideoFormat;
  40.     int nColorPrimaries;
  41.     int nTransferCharacteristics;
  42.     int nMatrixCoefficients;
  43.     int nDisplayHSize;
  44.     int nDisplayVSize;
  45. }SEQUENCEDISPLAYEXTENSION;
  46.  
  47. class SEQUENCEDATA
  48. {
  49. public:
  50.     void PutSequenceHeader(SYSTEMDATA*,const PICTURESTRUCT*);
  51.     void PutSequenceDisplayExtension(SYSTEMDATA*);
  52.     void PutSequenceEndCode(SYSTEMDATA*);
  53.  
  54.     SEQUENCEHEADER stHeader;
  55.     SEQUENCEEXTENSION stExtension;
  56.     SEQUENCEDISPLAYEXTENSION stDisplayExtension;
  57. };
  58. #endif