00001
00002 #ifndef _VM_COMMON_DEFS_H_
00003 #define _VM_COMMON_DEFS_H_
00004
00005 # ifdef __cplusplus
00006 extern "C" {
00007 # endif
00008
00009 #define VERSION 1
00010
00011
00012 # ifdef __cplusplus
00013 }
00014 # endif
00015
00016
00017
00018
00019
00020 #define MAX_NUM_VOS 32
00021 #define MAX_NUM_VOLS 16
00022
00023
00024
00025 #define EOB_CODE 1
00026 #define EOB_CODE_LENGTH 32
00027
00028
00029
00030
00031 #define MB_trace_thres 8193
00032
00033
00034 #define EXTENDED_PAR 0xF
00035
00036
00037
00038 #define SESSION_START_CODE 0x01B0
00039 #define SESSION_END_CODE 0x01B1
00040
00041 #define VO_START_CODE 0x8
00042 #define VO_START_CODE_LENGTH 27
00043
00044 #define VO_HEADER_LENGTH 32
00045
00046 #define SOL_START_CODE 0x01be
00047 #define SOL_START_CODE_LENGTH 32
00048
00049 #define VOL_START_CODE 0x12
00050 #define VOL_START_CODE_LENGTH 28
00051
00052 #define VOP_START_CODE 0x1B6
00053 #define VOP_START_CODE_LENGTH 32
00054
00055 #define GROUP_START_CODE 0x01B3
00056 #define GROUP_START_CODE_LENGTH 32
00057
00058 #define VOP_ID_CODE_LENGTH 5
00059 #define VOP_TEMP_REF_CODE_LENGTH 16
00060
00061 #define USER_DATA_START_CODE 0x01B2
00062 #define USER_DATA_START_CODE_LENGTH 32
00063
00064 #define START_CODE_PREFIX 0x01
00065 #define START_CODE_PREFIX_LENGTH 24
00066
00067 #define SHORT_VIDEO_START_MARKER 0x20
00068 #define SHORT_VIDEO_START_MARKER_LENGTH 22
00069 #define SHORT_VIDEO_END_MARKER 0x3F
00070
00071 #define GOB_RESYNC_MARKER 0x01
00072 #define GOB_RESYNC_MARKER_LENGTH 17
00073
00074
00075
00076 #define DC_MARKER 438273
00077 #define DC_MARKER_LENGTH 19
00078
00079 #define MOTION_MARKER_COMB 126977
00080 #define MOTION_MARKER_COMB_LENGTH 17
00081
00082 #define MOTION_MARKER_SEP 81921
00083 #define MOTION_MARKER_SEP_LENGTH 17
00084
00085 #define RESYNC_MARKER 1
00086 #define RESYNC_MARKER_LENGTH 17
00087
00088 #define SPRITE_NOT_USED 0
00089 #define STATIC_SPRITE 1
00090 #define GMC_SPRITE 2
00091
00092
00093 #define MB_SIZE 16
00094
00095
00096
00097 #define RECTANGULAR 0
00098 #define BINARY 1
00099 #define BINARY_SHAPE_ONLY 2
00100 #define GREY_SCALE 3
00101
00102
00103
00104 #define MODE_INTRA 0
00105 #define MODE_INTER 1
00106 #define MODE_INTRA_Q 2
00107 #define MODE_INTER_Q 3
00108 #define MODE_INTER4V 4
00109 #define MODE_GMC 5
00110 #define MODE_GMC_Q 6
00111
00112 #define MBM_INTRA 0
00113 #define MBM_INTER16 1
00114 #define MBM_SPRITE 3
00115 #define MBM_INTER8 4
00116 #define MBM_TRANSPARENT 2
00117 #define MBM_OUT 5
00118 #define MBM_SKIPPED 6
00119
00120
00121
00122 #define MBM_OPAQUE 7
00123 #define MBM_BOUNDARY 8
00124
00125 #define MBM_FIELD00 9
00126 #define MBM_FIELD01 10
00127 #define MBM_FIELD10 11
00128 #define MBM_FIELD11 12
00129
00130 #define MBM_B_MODE 0x07
00131 #define MBM_B_FWDFRM 0
00132 #define MBM_B_BAKFRM 1
00133 #define MBM_B_AVEFRM 2
00134 #define MBM_B_DIRECT 3
00135
00136 #define MBM_B_FWDFLD 5
00137 #define MBM_B_BAKFLD 6
00138 #define MBM_B_AVEFLD 7
00139 #define MBM_B_REFFLDS 0xF0
00140 #define MBM_B_FWDTOP 0x10
00141 #define MBM_B_FWDBOT 0x20
00142 #define MBM_B_BAKTOP 0x40
00143 #define MBM_B_BAKBOT 0x80
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158 #define BINARY_ALPHA 255
00159 #define BINARY_SHAPE 1
00160 #define ARB_SHAPE 1
00161
00162 #define NO_SHAPE_EFFECTS 0
00163
00164 #define REVERSE_VLC 1
00165
00166 #endif