88 { 1024, 768, 35, 31 },
89 { 1024, 768, 70, 32 },
90 { 1280, 720, 30, 31 },
91 { 1280, 720, 31, 32 },
92 { 1280, 960, 45, 32 },
93 { 1280, 960, 46, 40 },
94 { 1280, 1024, 42, 32 },
95 { 1600, 1200, 32, 40 },
96 { 1600, 1200, 33, 42 },
97 { 1920, 1088, 30, 40 },
98 { 1920, 1088, 55, 42 },
99 { 2048, 1024, 30, 40 },
100 { 2048, 1024, 62, 42 },
101 { 2048, 1088, 60, 42 },
102 { 3680, 1536, 26, 50 },
103 { 4096, 2048, 30, 51 },
104 { 4096, 2048, 59, 52 },
105 { 4096, 2160, 60, 52 },
108 static const struct {
118 { 176, 144, 16, 12 },
119 { 1280, 720, 1, 31 },
120 { 1280, 720, 5, 31 },
121 { 1280, 720, 9, 40 },
122 { 1280, 720, 10, 50 },
123 { 1920, 1080, 1, 40 },
124 { 1920, 1080, 5, 50 },
125 { 1920, 1080, 13, 50 },
126 { 1920, 1080, 14, 51 },
127 { 3840, 2160, 5, 51 },
128 { 3840, 2160, 6, 60 },
129 { 3840, 2160, 16, 60 },
130 { 7680, 4320, 5, 60 },
131 { 7680, 4320, 6, 0 },
134 static const struct {
141 { 2500000, 100, 20 },
142 { 2500000, 244, 13 },
143 { 100000000, 77, 50 },
144 { 100000000, 100, 50 },
145 { 100000000, 244, 41 },
146 { 999999999, 77, 0 },
147 { 999999999, 100, 62 },
149 { 32 * 1200, 66, 10 },
150 { 32 * 1500, 100, 10 },
151 { 96 * 1200, 66, 11 },
152 { 96 * 1500, 100, 9 },
153 { 144 * 1200, 66, 11 },
154 { 144 * 1500, 100, 11 },
157 static const struct {
166 {
"Bluray 1080p 40Mb/s", 100, 40000000, 1920, 1080, 4, 41 },
167 {
"Bluray 1080p 24Mb/s", 100, 24000000, 1920, 1080, 4, 40 },
168 {
"Bluray 720p 40Mb/s", 100, 40000000, 1280, 720, 6, 41 },
169 {
"Bluray 720p 24Mb/s", 100, 24000000, 1280, 720, 6, 40 },
170 {
"Bluray PAL 40Mb/s", 100, 40000000, 720, 576, 6, 41 },
171 {
"Bluray PAL 24Mb/s", 100, 24000000, 720, 576, 6, 32 },
172 {
"Bluray PAL 16Mb/s", 100, 16800000, 720, 576, 6, 31 },
173 {
"Bluray PAL 12Mb/s", 100, 12000000, 720, 576, 5, 30 },
174 {
"Bluray NTSC 40Mb/s", 100, 40000000, 720, 480, 6, 41 },
175 {
"Bluray NTSC 24Mb/s", 100, 24000000, 720, 480, 6, 32 },
176 {
"Bluray NTSC 16Mb/s", 100, 16800000, 720, 480, 6, 31 },
177 {
"Bluray NTSC 12Mb/s", 100, 12000000, 720, 480, 6, 30 },
185 #define CHECK(expected, format, ...) do { \
186 if (expected ? (!level || level->level_idc != expected) \
188 av_log(NULL, AV_LOG_ERROR, "Incorrect level for " \
189 format ": expected %d, got %d.\n", __VA_ARGS__, \
190 expected, level ? level->level_idc : -1); \