FFmpeg
Loading...
Searching...
No Matches
av1_levels.c File Reference
#include <stddef.h>
#include <inttypes.h>
#include "libavutil/log.h"
#include "libavcodec/av1_levels.h"

Go to the source code of this file.

Macros

#define CHECK(expected, format, ...)
 

Functions

int main (void)
 

Variables

struct { 
 
   int   width 
 
   int   height 
 
   float   framerate 
 
   int   level_idx 
 
test_sizes [] 
 
struct { 
 
   int64_t   bitrate 
 
   int   tier 
 
   int   level_idx 
 
test_bitrate [] 
 
struct { 
 
   int   tiles 
 
   int   tile_cols 
 
   int   level_idx 
 
test_tiles [] 
 

Macro Definition Documentation

◆ CHECK

#define CHECK ( expected,
format,
... )
Value:
do { \
if (level ? (level->level_idx != expected) \
: !level) { \
av_log(NULL, AV_LOG_ERROR, "Incorrect level for " \
format ": expected %d, got %d.\n", __VA_ARGS__, \
expected, level ? level->level_idx : -1); \
return 1; \
} \
} while (0)
static const char *const format[]
Definition af_aiir.c:444
#define NULL
Definition coverity.c:32
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition log.h:210
uint8_t level
Definition svq3.c:208

Referenced by main().

Function Documentation

◆ main()

int main ( void )

Definition at line 83 of file av1_levels.c.

Variable Documentation

◆ width

int width

Definition at line 27 of file av1_levels.c.

◆ height

int height

Definition at line 28 of file av1_levels.c.

◆ framerate

◆ level_idx

int level_idx

Definition at line 30 of file av1_levels.c.

Referenced by LCEVC_BLOCK_FUNC(), and main().

◆ [struct]

const struct { ... } test_sizes[]
Initial value:
= {
{ 426, 240, 30.0, 0 },
{ 640, 360, 30.0, 1 },
{ 854, 480, 30.0, 4 },
{ 1280, 720, 30.0, 5 },
{ 1920, 1080, 30.0, 8 },
{ 1920, 1080, 60.0, 9 },
{ 3840, 2160, 30.0, 12 },
{ 3840, 2160, 60.0, 13 },
{ 3840, 2160, 120.0, 14 },
{ 7680, 4320, 30.0, 16 },
{ 7680, 4320, 60.0, 17 },
{ 7680, 4320, 120.0, 18 },
}

Referenced by main().

◆ bitrate

◆ tier

int tier

Definition at line 48 of file av1_levels.c.

Referenced by ff_av1_guess_level(), ff_make_codec_str(), and main().

◆ [struct]

const struct { ... } test_bitrate[]
Initial value:
= {
{ 1500000, 0, 0 },
{ 3000000, 0, 1 },
{ 6000000, 0, 4 },
{ 10000000, 0, 5 },
{ 12000000, 0, 8 },
{ 30000000, 1, 8 },
{ 20000000, 0, 9 },
{ 50000000, 1, 9 },
{ 30000000, 0, 12 },
{ 100000000, 1, 12 },
{ 40000000, 0, 13 },
{ 160000000, 1, 13 },
{ 60000000, 0, 14 },
{ 240000000, 1, 14 },
{ 100000000, 0, 17 },
{ 480000000, 1, 17 },
{ 160000000, 0, 18 },
{ 800000000, 1, 18 },
}

Referenced by main().

◆ tiles

◆ tile_cols

◆ [struct]

const struct { ... } test_tiles[]
Initial value:
= {
{ 8, 4, 0 },
{ 16, 6, 4 },
{ 32, 8, 8 },
{ 64, 8, 12 },
{ 128, 16, 16 },
}

Referenced by main().