comparison h264.c @ 4267:6f839bb47457 libavcodec

Change NAL unit type defines to an enum and move to a header file for usage in other code.
author takis
date Tue, 05 Dec 2006 21:52:15 +0000
parents 23da44e8fd05
children c37ea749711e
comparison
equal deleted inserted replaced
4266:8a50de4eafca 4267:6f839bb47457
163 */ 163 */
164 typedef struct H264Context{ 164 typedef struct H264Context{
165 MpegEncContext s; 165 MpegEncContext s;
166 int nal_ref_idc; 166 int nal_ref_idc;
167 int nal_unit_type; 167 int nal_unit_type;
168 #define NAL_SLICE 1
169 #define NAL_DPA 2
170 #define NAL_DPB 3
171 #define NAL_DPC 4
172 #define NAL_IDR_SLICE 5
173 #define NAL_SEI 6
174 #define NAL_SPS 7
175 #define NAL_PPS 8
176 #define NAL_AUD 9
177 #define NAL_END_SEQUENCE 10
178 #define NAL_END_STREAM 11
179 #define NAL_FILLER_DATA 12
180 #define NAL_SPS_EXT 13
181 #define NAL_AUXILIARY_SLICE 19
182 uint8_t *rbsp_buffer; 168 uint8_t *rbsp_buffer;
183 unsigned int rbsp_buffer_size; 169 unsigned int rbsp_buffer_size;
184 170
185 /** 171 /**
186 * Used to parse AVC variant of h264 172 * Used to parse AVC variant of h264