Mercurial > libavcodec.hg
comparison dvdata.h @ 8014:07d8986fbea7 libavcodec
replacing frame_rate and frame_rate_base with an AVRational time_base
| author | romansh |
|---|---|
| date | Tue, 07 Oct 2008 16:59:18 +0000 |
| parents | 0eeb93cedecb |
| children | e70975d5ff80 |
comparison
equal
deleted
inserted
replaced
| 8013:0eeb93cedecb | 8014:07d8986fbea7 |
|---|---|
| 40 int dsf; /* value of the dsf in the DV header */ | 40 int dsf; /* value of the dsf in the DV header */ |
| 41 int video_stype; /* stype for VAUX source pack */ | 41 int video_stype; /* stype for VAUX source pack */ |
| 42 int frame_size; /* total size of one frame in bytes */ | 42 int frame_size; /* total size of one frame in bytes */ |
| 43 int difseg_size; /* number of DIF segments per DIF channel */ | 43 int difseg_size; /* number of DIF segments per DIF channel */ |
| 44 int n_difchan; /* number of DIF channels per frame */ | 44 int n_difchan; /* number of DIF channels per frame */ |
| 45 int frame_rate; | 45 AVRational time_base; /* 1/framerate */ |
| 46 int frame_rate_base; | |
| 47 int ltc_divisor; /* FPS from the LTS standpoint */ | 46 int ltc_divisor; /* FPS from the LTS standpoint */ |
| 48 int height; /* picture height in pixels */ | 47 int height; /* picture height in pixels */ |
| 49 int width; /* picture width in pixels */ | 48 int width; /* picture width in pixels */ |
| 50 AVRational sar[2]; /* sample aspect ratios for 4:3 and 16:9 */ | 49 AVRational sar[2]; /* sample aspect ratios for 4:3 and 16:9 */ |
| 51 const uint16_t *video_place; /* positions of all DV macroblocks */ | 50 const uint16_t *video_place; /* positions of all DV macroblocks */ |
| 6164 { .dsf = 0, | 6163 { .dsf = 0, |
| 6165 .video_stype = 0x0, | 6164 .video_stype = 0x0, |
| 6166 .frame_size = 120000, /* IEC 61834, SMPTE-314M - 525/60 (NTSC) */ | 6165 .frame_size = 120000, /* IEC 61834, SMPTE-314M - 525/60 (NTSC) */ |
| 6167 .difseg_size = 10, | 6166 .difseg_size = 10, |
| 6168 .n_difchan = 1, | 6167 .n_difchan = 1, |
| 6169 .frame_rate = 30000, | 6168 .time_base = { 1001, 30000 }, |
| 6170 .ltc_divisor = 30, | 6169 .ltc_divisor = 30, |
| 6171 .frame_rate_base = 1001, | |
| 6172 .height = 480, | 6170 .height = 480, |
| 6173 .width = 720, | 6171 .width = 720, |
| 6174 .sar = {{10, 11}, {40, 33}}, | 6172 .sar = {{10, 11}, {40, 33}}, |
| 6175 .video_place = dv_place_411, | 6173 .video_place = dv_place_411, |
| 6176 .pix_fmt = PIX_FMT_YUV411P, | 6174 .pix_fmt = PIX_FMT_YUV411P, |
| 6184 { .dsf = 1, | 6182 { .dsf = 1, |
| 6185 .video_stype = 0x0, | 6183 .video_stype = 0x0, |
| 6186 .frame_size = 144000, /* IEC 61834 - 625/50 (PAL) */ | 6184 .frame_size = 144000, /* IEC 61834 - 625/50 (PAL) */ |
| 6187 .difseg_size = 12, | 6185 .difseg_size = 12, |
| 6188 .n_difchan = 1, | 6186 .n_difchan = 1, |
| 6189 .frame_rate = 25, | 6187 .time_base = { 1, 25 }, |
| 6190 .frame_rate_base = 1, | |
| 6191 .ltc_divisor = 25, | 6188 .ltc_divisor = 25, |
| 6192 .height = 576, | 6189 .height = 576, |
| 6193 .width = 720, | 6190 .width = 720, |
| 6194 .sar = {{59, 54}, {118, 81}}, | 6191 .sar = {{59, 54}, {118, 81}}, |
| 6195 .video_place = dv_place_420, | 6192 .video_place = dv_place_420, |
| 6204 { .dsf = 1, | 6201 { .dsf = 1, |
| 6205 .video_stype = 0x0, | 6202 .video_stype = 0x0, |
| 6206 .frame_size = 144000, /* SMPTE-314M - 625/50 (PAL) */ | 6203 .frame_size = 144000, /* SMPTE-314M - 625/50 (PAL) */ |
| 6207 .difseg_size = 12, | 6204 .difseg_size = 12, |
| 6208 .n_difchan = 1, | 6205 .n_difchan = 1, |
| 6209 .frame_rate = 25, | 6206 .time_base = { 1, 25 }, |
| 6210 .frame_rate_base = 1, | |
| 6211 .ltc_divisor = 25, | 6207 .ltc_divisor = 25, |
| 6212 .height = 576, | 6208 .height = 576, |
| 6213 .width = 720, | 6209 .width = 720, |
| 6214 .sar = {{59, 54}, {118, 81}}, | 6210 .sar = {{59, 54}, {118, 81}}, |
| 6215 .video_place = dv_place_411P, | 6211 .video_place = dv_place_411P, |
| 6224 { .dsf = 0, | 6220 { .dsf = 0, |
| 6225 .video_stype = 0x4, | 6221 .video_stype = 0x4, |
| 6226 .frame_size = 240000, /* SMPTE-314M - 525/60 (NTSC) 50 Mbps */ | 6222 .frame_size = 240000, /* SMPTE-314M - 525/60 (NTSC) 50 Mbps */ |
| 6227 .difseg_size = 10, /* also known as "DVCPRO50" */ | 6223 .difseg_size = 10, /* also known as "DVCPRO50" */ |
| 6228 .n_difchan = 2, | 6224 .n_difchan = 2, |
| 6229 .frame_rate = 30000, | 6225 .time_base = { 1001, 30000 }, |
| 6230 .ltc_divisor = 30, | 6226 .ltc_divisor = 30, |
| 6231 .frame_rate_base = 1001, | |
| 6232 .height = 480, | 6227 .height = 480, |
| 6233 .width = 720, | 6228 .width = 720, |
| 6234 .sar = {{10, 11}, {40, 33}}, | 6229 .sar = {{10, 11}, {40, 33}}, |
| 6235 .video_place = dv_place_422_525, | 6230 .video_place = dv_place_422_525, |
| 6236 .pix_fmt = PIX_FMT_YUV422P, | 6231 .pix_fmt = PIX_FMT_YUV422P, |
| 6244 { .dsf = 1, | 6239 { .dsf = 1, |
| 6245 .video_stype = 0x4, | 6240 .video_stype = 0x4, |
| 6246 .frame_size = 288000, /* SMPTE-314M - 625/50 (PAL) 50 Mbps */ | 6241 .frame_size = 288000, /* SMPTE-314M - 625/50 (PAL) 50 Mbps */ |
| 6247 .difseg_size = 12, /* also known as "DVCPRO50" */ | 6242 .difseg_size = 12, /* also known as "DVCPRO50" */ |
| 6248 .n_difchan = 2, | 6243 .n_difchan = 2, |
| 6249 .frame_rate = 25, | 6244 .time_base = { 1, 25 }, |
| 6250 .frame_rate_base = 1, | |
| 6251 .ltc_divisor = 25, | 6245 .ltc_divisor = 25, |
| 6252 .height = 576, | 6246 .height = 576, |
| 6253 .width = 720, | 6247 .width = 720, |
| 6254 .sar = {{59, 54}, {118, 81}}, | 6248 .sar = {{59, 54}, {118, 81}}, |
| 6255 .video_place = dv_place_422_625, | 6249 .video_place = dv_place_422_625, |
| 6264 { .dsf = 0, | 6258 { .dsf = 0, |
| 6265 .video_stype = 0x14, | 6259 .video_stype = 0x14, |
| 6266 .frame_size = 480000, /* SMPTE-370M - 1080i60 100 Mbps */ | 6260 .frame_size = 480000, /* SMPTE-370M - 1080i60 100 Mbps */ |
| 6267 .difseg_size = 10, /* also known as "DVCPRO HD" */ | 6261 .difseg_size = 10, /* also known as "DVCPRO HD" */ |
| 6268 .n_difchan = 4, | 6262 .n_difchan = 4, |
| 6269 .frame_rate = 30000, | 6263 .time_base = { 1001, 30000 }, |
| 6270 .ltc_divisor = 30, | 6264 .ltc_divisor = 30, |
| 6271 .frame_rate_base = 1001, | |
| 6272 .height = 1080, | 6265 .height = 1080, |
| 6273 .width = 1280, | 6266 .width = 1280, |
| 6274 .sar = {{1, 1}, {1, 1}}, | 6267 .sar = {{1, 1}, {1, 1}}, |
| 6275 .video_place = dv_place_1080i60, | 6268 .video_place = dv_place_1080i60, |
| 6276 .pix_fmt = PIX_FMT_YUV422P, | 6269 .pix_fmt = PIX_FMT_YUV422P, |
| 6284 { .dsf = 1, | 6277 { .dsf = 1, |
| 6285 .video_stype = 0x14, | 6278 .video_stype = 0x14, |
| 6286 .frame_size = 576000, /* SMPTE-370M - 1080i50 100 Mbps */ | 6279 .frame_size = 576000, /* SMPTE-370M - 1080i50 100 Mbps */ |
| 6287 .difseg_size = 12, /* also known as "DVCPRO HD" */ | 6280 .difseg_size = 12, /* also known as "DVCPRO HD" */ |
| 6288 .n_difchan = 4, | 6281 .n_difchan = 4, |
| 6289 .frame_rate = 25, | 6282 .time_base = { 1, 25 }, |
| 6290 .frame_rate_base = 1, | |
| 6291 .ltc_divisor = 25, | 6283 .ltc_divisor = 25, |
| 6292 .height = 1080, | 6284 .height = 1080, |
| 6293 .width = 1440, | 6285 .width = 1440, |
| 6294 .sar = {{1, 1}, {1, 1}}, | 6286 .sar = {{1, 1}, {1, 1}}, |
| 6295 .video_place = dv_place_1080i50, | 6287 .video_place = dv_place_1080i50, |
| 6304 { .dsf = 0, | 6296 { .dsf = 0, |
| 6305 .video_stype = 0x18, | 6297 .video_stype = 0x18, |
| 6306 .frame_size = 240000, /* SMPTE-370M - 720p60 100 Mbps */ | 6298 .frame_size = 240000, /* SMPTE-370M - 720p60 100 Mbps */ |
| 6307 .difseg_size = 10, /* also known as "DVCPRO HD" */ | 6299 .difseg_size = 10, /* also known as "DVCPRO HD" */ |
| 6308 .n_difchan = 2, | 6300 .n_difchan = 2, |
| 6309 .frame_rate = 60000, | 6301 .time_base = { 1001, 60000 }, |
| 6310 .ltc_divisor = 60, | 6302 .ltc_divisor = 60, |
| 6311 .frame_rate_base = 1001, | |
| 6312 .height = 720, | 6303 .height = 720, |
| 6313 .width = 960, | 6304 .width = 960, |
| 6314 .sar = {{1, 1}, {1, 1}}, | 6305 .sar = {{1, 1}, {1, 1}}, |
| 6315 .video_place = dv_place_720p60, | 6306 .video_place = dv_place_720p60, |
| 6316 .pix_fmt = PIX_FMT_YUV422P, | 6307 .pix_fmt = PIX_FMT_YUV422P, |
| 6324 { .dsf = 1, | 6315 { .dsf = 1, |
| 6325 .video_stype = 0x18, | 6316 .video_stype = 0x18, |
| 6326 .frame_size = 288000, /* SMPTE-370M - 720p50 100 Mbps */ | 6317 .frame_size = 288000, /* SMPTE-370M - 720p50 100 Mbps */ |
| 6327 .difseg_size = 12, /* also known as "DVCPRO HD" */ | 6318 .difseg_size = 12, /* also known as "DVCPRO HD" */ |
| 6328 .n_difchan = 2, | 6319 .n_difchan = 2, |
| 6329 .frame_rate = 50, | 6320 .time_base = { 1, 50 }, |
| 6330 .ltc_divisor = 50, | 6321 .ltc_divisor = 50, |
| 6331 .frame_rate_base = 1, | |
| 6332 .height = 720, | 6322 .height = 720, |
| 6333 .width = 960, | 6323 .width = 960, |
| 6334 .sar = {{1, 1}, {1, 1}}, | 6324 .sar = {{1, 1}, {1, 1}}, |
| 6335 .video_place = dv_place_720p50, | 6325 .video_place = dv_place_720p50, |
| 6336 .pix_fmt = PIX_FMT_YUV422P, | 6326 .pix_fmt = PIX_FMT_YUV422P, |
