39 { 640, 480, 2, 0, 0, 1, 1, 640, 480, 0, 0, 1, 0 },
40 { 176, 120, 2, 0, 0, 9, 2, 176, 120, 0, 0, 1, 1 },
41 { 176, 144, 2, 0, 1, 10, 3, 176, 144, 0, 0, 1, 2 },
42 { 352, 240, 2, 0, 0, 9, 2, 352, 240, 0, 0, 1, 1 },
43 { 352, 288, 2, 0, 1, 10, 3, 352, 288, 0, 0, 1, 2 },
44 { 704, 480, 2, 0, 0, 9, 2, 704, 480, 0, 0, 1, 1 },
45 { 704, 576, 2, 0, 1, 10, 3, 704, 576, 0, 0, 1, 2 },
46 { 720, 480, 1, 1, 0, 4, 2, 704, 480, 8, 0, 3, 1 },
47 { 720, 576, 1, 1, 1, 3, 3, 704, 576, 8, 0, 3, 2 },
49 { 1280, 720, 1, 0, 1, 7, 1, 1280, 720, 0, 0, 3, 3 },
50 { 1280, 720, 1, 0, 1, 6, 1, 1280, 720, 0, 0, 3, 3 },
51 { 1920, 1080, 1, 1, 1, 4, 1, 1920, 1080, 0, 0, 3, 3 },
52 { 1920, 1080, 1, 1, 1, 3, 1, 1920, 1080, 0, 0, 3, 3 },
53 { 1920, 1080, 1, 0, 1, 7, 1, 1920, 1080, 0, 0, 3, 3 },
54 { 1920, 1080, 1, 0, 1, 6, 1, 1920, 1080, 0, 0, 3, 3 },
55 { 2048, 1080, 0, 0, 1, 2, 1, 2048, 1080, 0, 0, 4, 4 },
56 { 4096, 2160, 0, 0, 1, 2, 1, 4096, 2160, 0, 0, 4, 4 },
58 { 3840, 2160, 1, 0, 1, 7, 1, 3840, 2160, 0, 0, 3, 3 },
59 { 3840, 2160, 1, 0, 1, 6, 1, 3840, 2160, 0, 0, 3, 3 },
60 { 7680, 4320, 1, 0, 1, 7, 1, 3840, 2160, 0, 0, 3, 3 },
61 { 7680, 4320, 1, 0, 1, 6, 1, 3840, 2160, 0, 0, 3, 3 },
100 static const struct {
124 unsigned luma_depth = 8, luma_offset = 16;
126 int chroma_x_shift, chroma_y_shift;
244 if ((source->
width % (1<<chroma_x_shift)) || (source->
height % (1<<chroma_y_shift))) {
245 av_log(avctx,
AV_LOG_ERROR,
"Dimensions must be an integer multiple of the chroma subsampling\n");
295 unsigned version_major;
296 unsigned video_format, picture_coding_mode;
308 if (version_major < 2)
310 else if (version_major > 2)
313 if (video_format > 20
U)
317 *source = dirac_source_parameters_defaults[video_format];
333 if (picture_coding_mode != 0) {
335 picture_coding_mode);