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