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

  1. /*************************************************************************
  2.     inits.h
  3.  
  4.     03/02/08    Xiaohong
  5. *************************************************************************/
  6. #ifndef _INCLUDE_INITS_H________________________________________
  7. #define _INCLUDE_INITS_H________________________________________
  8.  
  9. #include "timecode.h"
  10. #include "buffer.h"
  11.  
  12. #define MAX_SECTOR_SIZE        4096        /* Max Sektor Groesse    */
  13.  
  14. typedef struct video_struc    /* Informationen ueber Video Stream    */
  15. {   unsigned int stream_length  ;
  16.     unsigned int num_sequence     ;
  17.     unsigned int num_seq_end    ;
  18.     unsigned int num_pictures     ;
  19.     unsigned int num_groups     ;
  20.     unsigned int num_frames[4]     ;
  21.     unsigned int avg_frames[4]  ;
  22.     
  23.     unsigned int horizontal_size;
  24.     unsigned int vertical_size     ;
  25.     unsigned int aspect_ratio    ;
  26.     unsigned int picture_rate    ;
  27.     unsigned int bit_rate     ;
  28.     unsigned int comp_bit_rate    ;
  29.     unsigned int vbv_buffer_size;
  30.     unsigned int CSPF;
  31. }Video_struc;         
  32.  
  33. typedef struct audio_struc    /* Informationen ueber Audio Stream    */
  34. {   unsigned int stream_length  ;
  35.     unsigned int num_syncword    ;
  36.     unsigned int num_frames [2]    ;
  37.     unsigned int size_frames[2] ;
  38.     unsigned int layer        ;
  39.     unsigned int protection    ;
  40.     unsigned int bit_rate    ;
  41.     unsigned int frequency    ;
  42.     unsigned int mode        ;
  43.     unsigned int mode_extension ;
  44.     unsigned int copyright      ;
  45.     unsigned int original_copy  ;
  46.     unsigned int emphasis    ;
  47. }Audio_struc;
  48.  
  49. class Vaunit_struc    /* Informationen ueber Video AU's     */
  50. {
  51. public:
  52.     Vaunit_struc();
  53.     void empty(void);
  54.     void write_file(HANDLE);
  55.     bool read_file(HANDLE);
  56.  
  57.     unsigned int length;
  58.     unsigned int type;
  59.     Timecode_struc DTS;
  60.     Timecode_struc PTS;
  61. };
  62.  
  63. class Aaunit_struc    /* Informationen ueber Audio AU's     */
  64. {
  65. public:
  66.     Aaunit_struc();
  67.     void empty(void);
  68.     void write_file(HANDLE);
  69.     bool read_file(HANDLE);
  70.  
  71.     unsigned long length;
  72.     Timecode_struc PTS;
  73. };
  74.  
  75. typedef struct sector_struc    /* Ein Sektor, kann Pack, Sys Header    */
  76.                 /* und Packet enthalten.        */
  77. {   unsigned char  buf [MAX_SECTOR_SIZE] ;
  78.     unsigned int   length_of_sector  ;
  79.     unsigned int   length_of_packet_data ;
  80.     Timecode_struc TS                ;
  81. } Sector_struc;
  82.  
  83. void empty_video_struc (Video_struc*);
  84. void empty_audio_struc (Audio_struc*);
  85. void empty_sector_struc(Sector_struc*);
  86. void init_buffer_struc(Buffer_struc*,unsigned int);
  87.  
  88. #endif
  89.