32 { 426, 240, 30.0, 0 },
33 { 640, 360, 30.0, 1 },
34 { 854, 480, 30.0, 4 },
35 { 1280, 720, 30.0, 5 },
36 { 1920, 1080, 30.0, 8 },
37 { 1920, 1080, 60.0, 9 },
38 { 3840, 2160, 30.0, 12 },
39 { 3840, 2160, 60.0, 13 },
40 { 3840, 2160, 120.0, 14 },
41 { 7680, 4320, 30.0, 16 },
42 { 7680, 4320, 60.0, 17 },
43 { 7680, 4320, 120.0, 18 },
88#define CHECK(expected, format, ...) do { \
89 if (level ? (level->level_idx != expected) \
91 av_log(NULL, AV_LOG_ERROR, "Incorrect level for " \
92 format ": expected %d, got %d.\n", __VA_ARGS__, \
93 expected, level ? level->level_idx : -1); \
const AV1LevelDescriptor * ff_av1_guess_level(int64_t bitrate, int tier, int width, int height, int tiles, int tile_cols, float fps)
Guess the level of a stream from some parameters.
#define i(width, name, range_min, range_max)
#define FF_ARRAY_ELEMS(a)
static const struct @373317350235113237103321367343237240077250064253 test_sizes[]
static const struct @306004356063346133342272312040301006006145257205 test_tiles[]
#define CHECK(expected, format,...)
static const struct @356122215220367331355043245070051071314054161356 test_bitrate[]