FFmpeg
Macros | Functions | Variables
h265_levels.c File Reference
#include "libavutil/common.h"
#include "libavcodec/h265_profile_level.h"

Go to the source code of this file.

Macros

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

Functions

int main (void)
 

Variables

struct {
   int   width
 
   int   height
 
   int   level_idc
 
test_sizes []
 
struct {
   int   width
 
   int   height
 
   int   dpb_size
 
   int   level_idc
 
test_dpb []
 
static const H265RawProfileTierLevel profile_main
 
static const H265RawProfileTierLevel profile_main_12
 
static const H265RawProfileTierLevel profile_main_422_12_intra
 
static const H265RawProfileTierLevel profile_ht_444_14
 
static const H265RawProfileTierLevel profile_main_high_tier
 
struct {
   int64_t   bitrate
 
   const H265RawProfileTierLevel *   ptl
 
   int   level_idc
 
test_bitrate []
 
struct {
   int   slice_segments
 
   int   tile_rows
 
   int   tile_cols
 
   int   level_idc
 
test_fragments []
 

Macro Definition Documentation

#define CHECK (   expected,
  format,
  ... 
)
Value:
do { \
if (expected ? (!level || level->level_idc != expected) \
: !!level) { \
av_log(NULL, AV_LOG_ERROR, "Incorrect level for " \
format ": expected %d, got %d.\n", __VA_ARGS__, \
expected, level ? level->level_idc : -1); \
return 1; \
} \
} while (0)
#define NULL
Definition: coverity.c:32
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample format(the sample packing is implied by the sample format) and sample rate.The lists are not just lists
#define av_log(a,...)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:176
if(ret)
uint8_t level
Definition: svq3.c:207
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame For filters that do not use the this method is called when a frame is wanted on an output For a it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return or at least make progress towards producing a it should return

Referenced by main().

Function Documentation

int main ( void  )

Definition at line 242 of file h265_levels.c.

Variable Documentation

int width

Definition at line 23 of file h265_levels.c.

Referenced by main().

int height

Definition at line 24 of file h265_levels.c.

Referenced by main().

int level_idc

Definition at line 25 of file h265_levels.c.

Referenced by main().

const { ... } test_sizes[]

Referenced by main().

int dpb_size

Definition at line 70 of file h265_levels.c.

Referenced by main().

const { ... } test_dpb[]
Initial value:
= {
{ 176, 144, 8, 30 },
{ 176, 144, 9, 60 },
{ 352, 288, 6, 60 },
{ 352, 288, 7, 63 },
{ 352, 288, 13, 90 },
{ 1280, 720, 6, 93 },
{ 1280, 720, 12, 120 },
{ 1280, 720, 16, 150 },
{ 3840, 2160, 6, 150 },
{ 3840, 2160, 7, 180 },
{ 3840, 2160, 16, 180 },
}

Referenced by main().

const H265RawProfileTierLevel profile_main
static
Initial value:
= {
.general_profile_space = 0,
.general_profile_idc = 1,
.general_tier_flag = 0,
.general_profile_compatibility_flag[1] = 1,
}

Definition at line 101 of file h265_levels.c.

const H265RawProfileTierLevel profile_main_12
static
Initial value:
= {
.general_profile_space = 0,
.general_profile_idc = 4,
.general_tier_flag = 0,
.general_profile_compatibility_flag[4] = 1,
.general_max_12bit_constraint_flag = 1,
.general_max_10bit_constraint_flag = 0,
.general_max_8bit_constraint_flag = 0,
.general_max_422chroma_constraint_flag = 1,
.general_max_420chroma_constraint_flag = 1,
.general_max_monochrome_constraint_flag = 0,
.general_intra_constraint_flag = 0,
.general_one_picture_only_constraint_flag = 0,
.general_lower_bit_rate_constraint_flag = 1,
}

Definition at line 109 of file h265_levels.c.

const H265RawProfileTierLevel profile_main_422_12_intra
static
Initial value:
= {
.general_profile_space = 0,
.general_profile_idc = 4,
.general_tier_flag = 0,
.general_profile_compatibility_flag[4] = 1,
.general_max_12bit_constraint_flag = 1,
.general_max_10bit_constraint_flag = 0,
.general_max_8bit_constraint_flag = 0,
.general_max_422chroma_constraint_flag = 1,
.general_max_420chroma_constraint_flag = 0,
.general_max_monochrome_constraint_flag = 0,
.general_intra_constraint_flag = 1,
.general_one_picture_only_constraint_flag = 0,
}

Definition at line 126 of file h265_levels.c.

const H265RawProfileTierLevel profile_ht_444_14
static
Initial value:
= {
.general_profile_space = 0,
.general_profile_idc = 5,
.general_tier_flag = 0,
.general_profile_compatibility_flag[5] = 1,
.general_max_14bit_constraint_flag = 1,
.general_max_12bit_constraint_flag = 0,
.general_max_10bit_constraint_flag = 0,
.general_max_8bit_constraint_flag = 0,
.general_max_422chroma_constraint_flag = 0,
.general_max_420chroma_constraint_flag = 0,
.general_max_monochrome_constraint_flag = 0,
.general_intra_constraint_flag = 0,
.general_one_picture_only_constraint_flag = 0,
.general_lower_bit_rate_constraint_flag = 1,
}

Definition at line 142 of file h265_levels.c.

const H265RawProfileTierLevel profile_main_high_tier
static
Initial value:
= {
.general_profile_space = 0,
.general_profile_idc = 1,
.general_tier_flag = 1,
.general_profile_compatibility_flag[1] = 1,
}

Definition at line 160 of file h265_levels.c.

int64_t bitrate

Definition at line 169 of file h265_levels.c.

Referenced by main().

const { ... } test_bitrate[]

Referenced by main().

int slice_segments

Definition at line 216 of file h265_levels.c.

Referenced by main().

int tile_rows

Definition at line 217 of file h265_levels.c.

Referenced by h265_metadata_guess_level(), and main().

int tile_cols

Definition at line 218 of file h265_levels.c.

Referenced by h265_metadata_guess_level(), and main().

const { ... } test_fragments[]
Initial value:
= {
{ 4, 1, 1, 30 },
{ 32, 1, 1, 93 },
{ 70, 1, 1, 120 },
{ 80, 1, 1, 150 },
{ 201, 1, 1, 180 },
{ 600, 1, 1, 180 },
{ 601, 1, 1, 0 },
{ 1, 2, 1, 90 },
{ 1, 1, 2, 90 },
{ 1, 3, 3, 93 },
{ 1, 4, 2, 120 },
{ 1, 2, 4, 120 },
{ 1, 11, 10, 150 },
{ 1, 10, 11, 180 },
{ 1, 22, 20, 180 },
{ 1, 20, 22, 0 },
}

Referenced by main().