comparison dvdata.h @ 7980:3b5964de95cd libavcodec

spelling cosmetics
author diego
date Thu, 02 Oct 2008 16:28:58 +0000
parents c4a4495715dd
children f7c7ef5e448b
comparison
equal deleted inserted replaced
7979:5214daf6ce78 7980:3b5964de95cd
46 int frame_rate_base; 46 int frame_rate_base;
47 int ltc_divisor; /* FPS from the LTS standpoint */ 47 int ltc_divisor; /* FPS from the LTS standpoint */
48 int height; /* picture height in pixels */ 48 int height; /* picture height in pixels */
49 int width; /* picture width in pixels */ 49 int width; /* picture width in pixels */
50 AVRational sar[2]; /* sample aspect ratios for 4:3 and 16:9 */ 50 AVRational sar[2]; /* sample aspect ratios for 4:3 and 16:9 */
51 const uint16_t *video_place; /* positions of all DV macro blocks */ 51 const uint16_t *video_place; /* positions of all DV macroblocks */
52 enum PixelFormat pix_fmt; /* picture pixel format */ 52 enum PixelFormat pix_fmt; /* picture pixel format */
53 int bpm; /* blocks per macroblock */ 53 int bpm; /* blocks per macroblock */
54 const uint8_t *block_sizes; /* AC block sizes, in bits */ 54 const uint8_t *block_sizes; /* AC block sizes, in bits */
55 int audio_stride; /* size of audio_shuffle table */ 55 int audio_stride; /* size of audio_shuffle table */
56 int audio_min_samples[3];/* min ammount of audio samples */ 56 int audio_min_samples[3];/* min amount of audio samples */
57 /* for 48Khz, 44.1Khz and 32Khz */ 57 /* for 48kHz, 44.1kHz and 32kHz */
58 int audio_samples_dist[5];/* how many samples are supposed to be */ 58 int audio_samples_dist[5];/* how many samples are supposed to be */
59 /* in each frame in a 5 frames window */ 59 /* in each frame in a 5 frames window */
60 const uint8_t (*audio_shuffle)[9]; /* PCM shuffling table */ 60 const uint8_t (*audio_shuffle)[9]; /* PCM shuffling table */
61 } DVprofile; 61 } DVprofile;
62 62
321 1, /* QNO = 0 and 1 both have no quantization */ 321 1, /* QNO = 0 and 1 both have no quantization */
322 1, 322 1,
323 2, 3, 4, 5, 6, 7, 8, 16, 18, 20, 22, 24, 28, 52 323 2, 3, 4, 5, 6, 7, 8, 16, 18, 20, 22, 24, 28, 52
324 }; 324 };
325 325
326 /* NOTE: I prefer hardcoding the positioning of dv blocks, it is 326 /* NOTE: I prefer hardcoding the positioning of DV blocks, it is
327 simpler :-) */ 327 simpler :-) */
328 328
329 static const uint16_t dv_place_420[1620] = { 329 static const uint16_t dv_place_420[1620] = {
330 0x0c24, 0x2412, 0x3036, 0x0000, 0x1848, 330 0x0c24, 0x2412, 0x3036, 0x0000, 0x1848,
331 0x0e24, 0x2612, 0x3236, 0x0200, 0x1a48, 331 0x0e24, 0x2612, 0x3236, 0x0200, 0x1a48,
6173 .video_place = dv_place_411, 6173 .video_place = dv_place_411,
6174 .pix_fmt = PIX_FMT_YUV411P, 6174 .pix_fmt = PIX_FMT_YUV411P,
6175 .bpm = 6, 6175 .bpm = 6,
6176 .block_sizes = block_sizes_dv2550, 6176 .block_sizes = block_sizes_dv2550,
6177 .audio_stride = 90, 6177 .audio_stride = 90,
6178 .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32Khz */ 6178 .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32kHz */
6179 .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 }, /* per SMPTE-314M */ 6179 .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 }, /* per SMPTE-314M */
6180 .audio_shuffle = dv_audio_shuffle525, 6180 .audio_shuffle = dv_audio_shuffle525,
6181 }, 6181 },
6182 { .dsf = 1, 6182 { .dsf = 1,
6183 .video_stype = 0x0, 6183 .video_stype = 0x0,
6193 .video_place = dv_place_420, 6193 .video_place = dv_place_420,
6194 .pix_fmt = PIX_FMT_YUV420P, 6194 .pix_fmt = PIX_FMT_YUV420P,
6195 .bpm = 6, 6195 .bpm = 6,
6196 .block_sizes = block_sizes_dv2550, 6196 .block_sizes = block_sizes_dv2550,
6197 .audio_stride = 108, 6197 .audio_stride = 108,
6198 .audio_min_samples = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32Khz */ 6198 .audio_min_samples = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32kHz */
6199 .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 }, 6199 .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 },
6200 .audio_shuffle = dv_audio_shuffle625, 6200 .audio_shuffle = dv_audio_shuffle625,
6201 }, 6201 },
6202 { .dsf = 1, 6202 { .dsf = 1,
6203 .video_stype = 0x0, 6203 .video_stype = 0x0,
6213 .video_place = dv_place_411P, 6213 .video_place = dv_place_411P,
6214 .pix_fmt = PIX_FMT_YUV411P, 6214 .pix_fmt = PIX_FMT_YUV411P,
6215 .bpm = 6, 6215 .bpm = 6,
6216 .block_sizes = block_sizes_dv2550, 6216 .block_sizes = block_sizes_dv2550,
6217 .audio_stride = 108, 6217 .audio_stride = 108,
6218 .audio_min_samples = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32Khz */ 6218 .audio_min_samples = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32kHz */
6219 .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 }, 6219 .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 },
6220 .audio_shuffle = dv_audio_shuffle625, 6220 .audio_shuffle = dv_audio_shuffle625,
6221 }, 6221 },
6222 { .dsf = 0, 6222 { .dsf = 0,
6223 .video_stype = 0x4, 6223 .video_stype = 0x4,
6233 .video_place = dv_place_422_525, 6233 .video_place = dv_place_422_525,
6234 .pix_fmt = PIX_FMT_YUV422P, 6234 .pix_fmt = PIX_FMT_YUV422P,
6235 .bpm = 6, 6235 .bpm = 6,
6236 .block_sizes = block_sizes_dv2550, 6236 .block_sizes = block_sizes_dv2550,
6237 .audio_stride = 90, 6237 .audio_stride = 90,
6238 .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32Khz */ 6238 .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32kHz */
6239 .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 }, /* per SMPTE-314M */ 6239 .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 }, /* per SMPTE-314M */
6240 .audio_shuffle = dv_audio_shuffle525, 6240 .audio_shuffle = dv_audio_shuffle525,
6241 }, 6241 },
6242 { .dsf = 1, 6242 { .dsf = 1,
6243 .video_stype = 0x4, 6243 .video_stype = 0x4,
6253 .video_place = dv_place_422_625, 6253 .video_place = dv_place_422_625,
6254 .pix_fmt = PIX_FMT_YUV422P, 6254 .pix_fmt = PIX_FMT_YUV422P,
6255 .bpm = 6, 6255 .bpm = 6,
6256 .block_sizes = block_sizes_dv2550, 6256 .block_sizes = block_sizes_dv2550,
6257 .audio_stride = 108, 6257 .audio_stride = 108,
6258 .audio_min_samples = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32Khz */ 6258 .audio_min_samples = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32kHz */
6259 .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 }, 6259 .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 },
6260 .audio_shuffle = dv_audio_shuffle625, 6260 .audio_shuffle = dv_audio_shuffle625,
6261 }, 6261 },
6262 { .dsf = 0, 6262 { .dsf = 0,
6263 .video_stype = 0x14, 6263 .video_stype = 0x14,
6273 .video_place = dv_place_1080i60, 6273 .video_place = dv_place_1080i60,
6274 .pix_fmt = PIX_FMT_YUV422P, 6274 .pix_fmt = PIX_FMT_YUV422P,
6275 .bpm = 8, 6275 .bpm = 8,
6276 .block_sizes = block_sizes_dv100, 6276 .block_sizes = block_sizes_dv100,
6277 .audio_stride = 90, 6277 .audio_stride = 90,
6278 .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32Khz */ 6278 .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32kHz */
6279 .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 }, /* per SMPTE-314M */ 6279 .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 }, /* per SMPTE-314M */
6280 .audio_shuffle = dv_audio_shuffle525, 6280 .audio_shuffle = dv_audio_shuffle525,
6281 }, 6281 },
6282 { .dsf = 1, 6282 { .dsf = 1,
6283 .video_stype = 0x14, 6283 .video_stype = 0x14,
6293 .video_place = dv_place_1080i50, 6293 .video_place = dv_place_1080i50,
6294 .pix_fmt = PIX_FMT_YUV422P, 6294 .pix_fmt = PIX_FMT_YUV422P,
6295 .bpm = 8, 6295 .bpm = 8,
6296 .block_sizes = block_sizes_dv100, 6296 .block_sizes = block_sizes_dv100,
6297 .audio_stride = 108, 6297 .audio_stride = 108,
6298 .audio_min_samples = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32Khz */ 6298 .audio_min_samples = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32kHz */
6299 .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 }, 6299 .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 },
6300 .audio_shuffle = dv_audio_shuffle625, 6300 .audio_shuffle = dv_audio_shuffle625,
6301 }, 6301 },
6302 { .dsf = 0, 6302 { .dsf = 0,
6303 .video_stype = 0x18, 6303 .video_stype = 0x18,
6313 .video_place = dv_place_720p60, 6313 .video_place = dv_place_720p60,
6314 .pix_fmt = PIX_FMT_YUV422P, 6314 .pix_fmt = PIX_FMT_YUV422P,
6315 .bpm = 8, 6315 .bpm = 8,
6316 .block_sizes = block_sizes_dv100, 6316 .block_sizes = block_sizes_dv100,
6317 .audio_stride = 90, 6317 .audio_stride = 90,
6318 .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32Khz */ 6318 .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32kHz */
6319 .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 }, /* per SMPTE-314M */ 6319 .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 }, /* per SMPTE-314M */
6320 .audio_shuffle = dv_audio_shuffle525, 6320 .audio_shuffle = dv_audio_shuffle525,
6321 }, 6321 },
6322 { .dsf = 1, 6322 { .dsf = 1,
6323 .video_stype = 0x18, 6323 .video_stype = 0x18,
6333 .video_place = dv_place_720p50, 6333 .video_place = dv_place_720p50,
6334 .pix_fmt = PIX_FMT_YUV422P, 6334 .pix_fmt = PIX_FMT_YUV422P,
6335 .bpm = 8, 6335 .bpm = 8,
6336 .block_sizes = block_sizes_dv100, 6336 .block_sizes = block_sizes_dv100,
6337 .audio_stride = 90, 6337 .audio_stride = 90,
6338 .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32Khz */ 6338 .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32kHz */
6339 .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 }, /* per SMPTE-314M */ 6339 .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 }, /* per SMPTE-314M */
6340 .audio_shuffle = dv_audio_shuffle525, 6340 .audio_shuffle = dv_audio_shuffle525,
6341 } 6341 }
6342 }; 6342 };
6343 6343