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