FFmpeg
Functions | Variables
av1_levels.c File Reference
#include <stddef.h>
#include "libavutil/macros.h"
#include "av1_levels.h"

Go to the source code of this file.

Functions

const AV1LevelDescriptorff_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. More...
 

Variables

static const AV1LevelDescriptor av1_levels []
 ignore entries which named in spec but no details. More...
 

Function Documentation

◆ ff_av1_guess_level()

const AV1LevelDescriptor* ff_av1_guess_level ( int64_t  bitrate,
int  tier,
int  width,
int  height,
int  tile_rows,
int  tile_cols,
float  fps 
)

Guess the level of a stream from some parameters.

Unknown parameters may be zero, in which case they will be ignored.

Definition at line 48 of file av1_levels.c.

Referenced by main(), and vaapi_encode_av1_init_sequence_params().

Variable Documentation

◆ av1_levels

const AV1LevelDescriptor av1_levels[]
static
Initial value:
= {
{ "2.0", 0, 147456, 2048, 1152, 4423680, 5529600, 150, 1.5, 0, 2, 0, 8, 4 },
{ "2.1", 1, 278784, 2816, 1584, 8363520, 10454400, 150, 3.0, 0, 2, 0, 8, 4 },
{ "3.0", 4, 665856, 4352, 2448, 19975680, 24969600, 150, 6.0, 0, 2, 0, 16, 6 },
{ "3.1", 5, 1065024, 5504, 3096, 31950720, 39938400, 150, 10.0, 0, 2, 0, 16, 6 },
{ "4.0", 8, 2359296, 6144, 3456, 70778880, 77856768, 300, 12.0, 30.0, 4, 4, 32, 8 },
{ "4.1", 9, 2359296, 6144, 3456, 141557760, 155713536, 300, 20.0, 50.0, 4, 4, 32, 8 },
{ "5.0", 12, 8912896, 8192, 4352, 267386880, 273715200, 300, 30.0, 100.0, 6, 4, 64, 8 },
{ "5.1", 13, 8912896, 8192, 4352, 534773760, 547430400, 300, 40.0, 160.0, 8, 4, 64, 8 },
{ "5.2", 14, 8912896, 8192, 4352, 1069547520, 1094860800, 300, 60.0, 240.0, 8, 4, 64, 8 },
{ "5.3", 15, 8912896, 8192, 4352, 1069547520, 1176502272, 300, 60.0, 240.0, 8, 4, 64, 8 },
{ "6.0", 16, 35651584, 16384, 8704, 1069547520, 1176502272, 300, 60.0, 240.0, 8, 4, 128, 16 },
{ "6.1", 17, 35651584, 16384, 8704, 2139095040, 2189721600, 300, 100.0, 480.0, 8, 4, 128, 16 },
{ "6.2", 18, 35651584, 16384, 8704, 4278190080, 4379443200, 300, 160.0, 800.0, 8, 4, 128, 16 },
{ "6.3", 19, 35651584, 16384, 8704, 4278190080, 4706009088, 300, 160.0, 800.0, 8, 4, 128, 16 },
}

ignore entries which named in spec but no details.

Like level 2.2 and 7.0.

Definition at line 26 of file av1_levels.c.

Referenced by ff_av1_guess_level().