Main Page   Class Overview   Pixels   Images   Geometry   Quick Index  

mpeg2dec.h

00001 /* mpeg2dec.h, MPEG specific defines                                        */
00002 
00003 /* Copyright (C) 1996, MPEG Software Simulation Group. All Rights Reserved. */
00004 
00005 /*
00006  * Disclaimer of Warranty
00007  *
00008  * These software programs are available to the user without any license fee or
00009  * royalty on an "as is" basis.  The MPEG Software Simulation Group disclaims
00010  * any and all warranties, whether express, implied, or statuary, including any
00011  * implied warranties or merchantability or of fitness for a particular
00012  * purpose.  In no event shall the copyright-holder be liable for any
00013  * incidental, punitive, or consequential damages of any kind whatsoever
00014  * arising from the use of these programs.
00015  *
00016  * This disclaimer of warranty extends to the user of these programs and user's
00017  * customers, employees, agents, transferees, successors, and assigns.
00018  *
00019  * The MPEG Software Simulation Group does not represent or warrant that the
00020  * programs furnished hereunder are free of infringement of any third-party
00021  * patents.
00022  *
00023  * Commercial implementations of MPEG-1 and MPEG-2 video, including shareware,
00024  * are subject to royalty fees to patent holders.  Many of these patents are
00025  * general enough such that they are unavoidable regardless of implementation
00026  * design.
00027  *
00028  */
00029 
00030 #define ERROR (-1)
00031 
00032 #define PICTURE_START_CODE      0x100
00033 #define SLICE_START_CODE_MIN    0x101
00034 #define SLICE_START_CODE_MAX    0x1AF
00035 #define USER_DATA_START_CODE    0x1B2
00036 #define SEQUENCE_HEADER_CODE    0x1B3
00037 #define SEQUENCE_ERROR_CODE     0x1B4
00038 #define EXTENSION_START_CODE    0x1B5
00039 #define SEQUENCE_END_CODE       0x1B7
00040 #define GROUP_START_CODE        0x1B8
00041 #define SYSTEM_START_CODE_MIN   0x1B9
00042 #define SYSTEM_START_CODE_MAX   0x1FF
00043 
00044 #define ISO_END_CODE            0x1B9
00045 #define PACK_START_CODE         0x1BA
00046 #define SYSTEM_START_CODE       0x1BB
00047 
00048 #define VIDEO_ELEMENTARY_STREAM 0x1e0
00049 
00050 /* scalable_mode */
00051 #define SC_NONE 0
00052 #define SC_DP   1
00053 #define SC_SPAT 2
00054 #define SC_SNR  3
00055 #define SC_TEMP 4
00056 
00057 /* picture coding type */
00058 #define I_TYPE 1
00059 #define P_TYPE 2
00060 #define B_TYPE 3
00061 #define D_TYPE 4
00062 
00063 /* picture structure */
00064 #define TOP_FIELD     1
00065 #define BOTTOM_FIELD  2
00066 #define FRAME_PICTURE 3
00067 
00068 /* macroblock type */
00069 #define MACROBLOCK_INTRA                        1
00070 #define MACROBLOCK_PATTERN                      2
00071 #define MACROBLOCK_MOTION_BACKWARD              4
00072 #define MACROBLOCK_MOTION_FORWARD               8
00073 #define MACROBLOCK_QUANT                        16
00074 #define SPATIAL_TEMPORAL_WEIGHT_CODE_FLAG       32
00075 #define PERMITTED_SPATIAL_TEMPORAL_WEIGHT_CLASS 64
00076 
00077 
00078 /* motion_type */
00079 #define MC_FIELD 1
00080 #define MC_FRAME 2
00081 #define MC_16X8  2
00082 #define MC_DMV   3
00083 
00084 /* mv_format */
00085 #define MV_FIELD 0
00086 #define MV_FRAME 1
00087 
00088 /* chroma_format */
00089 #define CHROMA420 1
00090 #define CHROMA422 2
00091 #define CHROMA444 3
00092 
00093 /* extension start code IDs */
00094 
00095 #define SEQUENCE_EXTENSION_ID                    1
00096 #define SEQUENCE_DISPLAY_EXTENSION_ID            2
00097 #define QUANT_MATRIX_EXTENSION_ID                3
00098 #define COPYRIGHT_EXTENSION_ID                   4
00099 #define SEQUENCE_SCALABLE_EXTENSION_ID           5
00100 #define PICTURE_DISPLAY_EXTENSION_ID             7
00101 #define PICTURE_CODING_EXTENSION_ID              8
00102 #define PICTURE_SPATIAL_SCALABLE_EXTENSION_ID    9
00103 #define PICTURE_TEMPORAL_SCALABLE_EXTENSION_ID  10
00104 
00105 #define ZIG_ZAG                                  0
00106 
00107 #define PROFILE_422                             (128+5)
00108 #define MAIN_LEVEL                              8
00109 
00110 /* Layers: used by Verbose_Flag, Verifier_Flag, Stats_Flag, and Trace_Flag */
00111 #define NO_LAYER                                0
00112 #define SEQUENCE_LAYER                          1
00113 #define PICTURE_LAYER                           2
00114 #define SLICE_LAYER                             3    
00115 #define MACROBLOCK_LAYER                        4    
00116 #define BLOCK_LAYER                             5
00117 #define EVENT_LAYER                             6
00118 #define ALL_LAYERS                              7
00119 
00120 
00121 
00122 #define FILENAME_LENGTH                       256
00123 
00124 
00125 
00126 
00127 #define MB_WEIGHT                  32
00128 #define MB_CLASS4                  64
00129 

Generated on Tue Jan 8 13:59:18 2002 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001