37 { 640, 480, 2, 0, 0, 1, 1, 640, 480, 0, 0, 1, 0 },
38 { 176, 120, 2, 0, 0, 9, 2, 176, 120, 0, 0, 1, 1 },
39 { 176, 144, 2, 0, 1, 10, 3, 176, 144, 0, 0, 1, 2 },
40 { 352, 240, 2, 0, 0, 9, 2, 352, 240, 0, 0, 1, 1 },
41 { 352, 288, 2, 0, 1, 10, 3, 352, 288, 0, 0, 1, 2 },
42 { 704, 480, 2, 0, 0, 9, 2, 704, 480, 0, 0, 1, 1 },
43 { 704, 576, 2, 0, 1, 10, 3, 704, 576, 0, 0, 1, 2 },
44 { 720, 480, 1, 1, 0, 4, 2, 704, 480, 8, 0, 3, 1 },
45 { 720, 576, 1, 1, 1, 3, 3, 704, 576, 8, 0, 3, 2 },
46 { 1280, 720, 1, 0, 1, 7, 1, 1280, 720, 0, 0, 3, 3 },
47 { 1280, 720, 1, 0, 1, 6, 1, 1280, 720, 0, 0, 3, 3 },
48 { 1920, 1080, 1, 1, 1, 4, 1, 1920, 1080, 0, 0, 3, 3 },
49 { 1920, 1080, 1, 1, 1, 3, 1, 1920, 1080, 0, 0, 3, 3 },
50 { 1920, 1080, 1, 0, 1, 7, 1, 1920, 1080, 0, 0, 3, 3 },
51 { 1920, 1080, 1, 0, 1, 6, 1, 1920, 1080, 0, 0, 3, 3 },
52 { 2048, 1080, 0, 0, 1, 2, 1, 2048, 1080, 0, 0, 4, 4 },
53 { 4096, 2160, 0, 0, 1, 2, 1, 4096, 2160, 0, 0, 4, 4 },
54 { 3840, 2160, 1, 0, 1, 7, 1, 3840, 2160, 0, 0, 3, 3 },
55 { 3840, 2160, 1, 0, 1, 6, 1, 3840, 2160, 0, 0, 3, 3 },
56 { 7680, 4320, 1, 0, 1, 7, 1, 3840, 2160, 0, 0, 3, 3 },
57 { 7680, 4320, 1, 0, 1, 6, 1, 3840, 2160, 0, 0, 3, 3 },
120 unsigned luma_depth = 8, luma_offset = 16;
122 int chroma_x_shift, chroma_y_shift;
174 frame_rate.
den, frame_rate.
num, 1<<30);
240 if ((source->
width % (1<<chroma_x_shift)) || (source->
height % (1<<chroma_y_shift))) {
241 av_log(avctx,
AV_LOG_ERROR,
"Dimensions must be a integer multiply of the chroma subsampling\n");
291 unsigned version_major;
292 unsigned video_format, picture_coding_mode;
304 if (version_major < 2)
306 else if (version_major > 2)
309 if (video_format > 20
U)
313 *source = dirac_source_parameters_defaults[video_format];
328 if (picture_coding_mode != 0) {
330 picture_coding_mode);