43 { 0, 30, 60, 20, 50, 80, 10, 40, 70 },
44 { 6, 36, 66, 26, 56, 86, 16, 46, 76 },
45 { 12, 42, 72, 2, 32, 62, 22, 52, 82 },
46 { 18, 48, 78, 8, 38, 68, 28, 58, 88 },
47 { 24, 54, 84, 14, 44, 74, 4, 34, 64 },
49 { 1, 31, 61, 21, 51, 81, 11, 41, 71 },
50 { 7, 37, 67, 27, 57, 87, 17, 47, 77 },
51 { 13, 43, 73, 3, 33, 63, 23, 53, 83 },
52 { 19, 49, 79, 9, 39, 69, 29, 59, 89 },
53 { 25, 55, 85, 15, 45, 75, 5, 35, 65 },
57 { 0, 36, 72, 26, 62, 98, 16, 52, 88},
58 { 6, 42, 78, 32, 68, 104, 22, 58, 94},
59 { 12, 48, 84, 2, 38, 74, 28, 64, 100},
60 { 18, 54, 90, 8, 44, 80, 34, 70, 106},
61 { 24, 60, 96, 14, 50, 86, 4, 40, 76},
62 { 30, 66, 102, 20, 56, 92, 10, 46, 82},
64 { 1, 37, 73, 27, 63, 99, 17, 53, 89},
65 { 7, 43, 79, 33, 69, 105, 23, 59, 95},
66 { 13, 49, 85, 3, 39, 75, 29, 65, 101},
67 { 19, 55, 91, 9, 45, 81, 35, 71, 107},
68 { 25, 61, 97, 15, 51, 87, 5, 41, 77},
69 { 31, 67, 103, 21, 57, 93, 11, 47, 83},
74 112, 112, 112, 112, 80, 80, 0, 0,
78 80, 80, 80, 80, 80, 80, 64, 64,
87 .time_base = { 1001, 30000 },
91 .sar = {{8, 9}, {32, 27}},
92 .work_chunks = &work_chunks_dv25ntsc[0],
98 .audio_min_samples = { 1580, 1452, 1053 },
99 .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 },
104 .frame_size = 144000,
107 .time_base = { 1, 25 },
111 .sar = {{16, 15}, {64, 45}},
112 .work_chunks = &work_chunks_dv25pal[0],
118 .audio_min_samples = { 1896, 1742, 1264 },
119 .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 },
124 .frame_size = 144000,
127 .time_base = { 1, 25 },
131 .sar = {{16, 15}, {64, 45}},
132 .work_chunks = &work_chunks_dv25pal411[0],
138 .audio_min_samples = { 1896, 1742, 1264 },
139 .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 },
144 .frame_size = 240000,
147 .time_base = { 1001, 30000 },
151 .sar = {{8, 9}, {32, 27}},
152 .work_chunks = &work_chunks_dv50ntsc[0],
158 .audio_min_samples = { 1580, 1452, 1053 },
159 .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 },
164 .frame_size = 288000,
167 .time_base = { 1, 25 },
171 .sar = {{16, 15}, {64, 45}},
172 .work_chunks = &work_chunks_dv50pal[0],
178 .audio_min_samples = { 1896, 1742, 1264 },
179 .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 },
184 .frame_size = 480000,
187 .time_base = { 1001, 30000 },
191 .sar = {{1, 1}, {3, 2}},
192 .work_chunks = &work_chunks_dv100ntsci[0],
198 .audio_min_samples = { 1580, 1452, 1053 },
199 .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 },
204 .frame_size = 576000,
207 .time_base = { 1, 25 },
211 .sar = {{1, 1}, {4, 3}},
212 .work_chunks = &work_chunks_dv100pali[0],
218 .audio_min_samples = { 1896, 1742, 1264 },
219 .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 },
224 .frame_size = 240000,
227 .time_base = { 1001, 60000 },
231 .sar = {{1, 1}, {4, 3}},
232 .work_chunks = &work_chunks_dv100ntscp[0],
238 .audio_min_samples = { 1580, 1452, 1053 },
239 .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 },
244 .frame_size = 288000,
247 .time_base = { 1, 50 },
251 .sar = {{1, 1}, {4, 3}},
252 .work_chunks = &work_chunks_dv100palp[0],
258 .audio_min_samples = { 1896, 1742, 1264 },
259 .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 },
264 .frame_size = 144000,
267 .time_base = { 1, 25 },
271 .sar = {{16, 15}, {64, 45}},
272 .work_chunks = &work_chunks_dv25pal[0],
278 .audio_min_samples = { 1896, 1742, 1264 },
279 .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 },
292 dsf = (frame[3] & 0x80) >> 7;
293 stype = frame[80 * 5 + 48 + 3] & 0x1f;
296 if ((dsf == 1 && stype == 0 && frame[4] & 0x07 ) ||
298 return &dv_profiles[2];
306 return &dv_profiles[1];
309 if (dsf == dv_profiles[i].dsf && stype == dv_profiles[i].video_stype)
310 return &dv_profiles[
i];
317 if ((frame[3] & 0x7f) == 0x3f && frame[80 * 5 + 48 + 3] == 0xff)
318 return &dv_profiles[dsf];
343 if (h == dv_profiles[i].
height &&
345 w == dv_profiles[i].
width)
346 return &dv_profiles[
i];
356 av_log(logctx, loglevel,
"Frame size: %dx%d; pixel format: %s, " const DVprofile * avpriv_dv_frame_profile2(AVCodecContext *codec, const DVprofile *sys, const uint8_t *frame, unsigned buf_size)
void ff_dv_print_profiles(void *logctx, int loglevel)
Print all allowed DV profiles into logctx at specified logging level.
static const uint8_t dv_audio_shuffle625[12][9]
int coded_width
Bitstream width / height, may be different from width/height e.g.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
#define FF_ARRAY_ELEMS(a)
static DVwork_chunk work_chunks_dv25ntsc[1 *10 *27]
output residual component w
static const uint8_t block_sizes_dv100[8]
static const uint8_t dv_audio_shuffle525[10][9]
enum AVPixelFormat pix_fmt
static DVwork_chunk work_chunks_dv100palp[2 *12 *27]
static uint32_t dv_idct_factor_sd[2 *2 *22 *64]
void av_log(void *avcl, int level, const char *fmt,...)
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
const DVprofile * avpriv_dv_codec_profile(AVCodecContext *codec)
static DVwork_chunk work_chunks_dv100pali[4 *12 *27]
int width
picture width / height.
main external API structure.
static uint32_t dv_idct_factor_hd1080[2 *4 *16 *64]
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
BYTE int const BYTE int int int height
synthesis window for stochastic i
static DVwork_chunk work_chunks_dv100ntscp[2 *10 *27]
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
common internal and external API header
static const uint8_t block_sizes_dv2550[8]
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
static DVwork_chunk work_chunks_dv50pal[2 *12 *27]
static DVwork_chunk work_chunks_dv25pal411[1 *12 *27]
static DVwork_chunk work_chunks_dv25pal[1 *12 *27]
static uint32_t dv_idct_factor_hd720[2 *4 *16 *64]
const DVprofile * avpriv_dv_frame_profile(const DVprofile *sys, const uint8_t *frame, unsigned buf_size)
static DVwork_chunk work_chunks_dv50ntsc[2 *10 *27]
static const DVprofile dv_profiles[]
static DVwork_chunk work_chunks_dv100ntsci[4 *10 *27]
const char * av_get_pix_fmt_name(enum AVPixelFormat pix_fmt)
Return the short name for a pixel format, NULL in case pix_fmt is unknown.