FFmpeg
Macros | Functions
codec2utils.h File Reference
#include <stdint.h>

Go to the source code of this file.

Macros

#define AVPRIV_CODEC2_MODE_MAX   8
 
#define AVPRIV_CODEC2_AVOPTIONS(desc, classname, min_val, default_val, option_flags)
 
#define AVPRIV_CODEC2_EXTRADATA_SIZE   4
 

Functions

int avpriv_codec2_mode_bit_rate (void *logctx, int mode)
 
int avpriv_codec2_mode_frame_size (void *logctx, int mode)
 
int avpriv_codec2_mode_block_align (void *logctx, int mode)
 
static void avpriv_codec2_make_extradata (uint8_t *ptr, int mode)
 
static uint16_t avpriv_codec2_version_from_extradata (uint8_t *ptr)
 
static uint8_t avpriv_codec2_mode_from_extradata (uint8_t *ptr)
 

Macro Definition Documentation

◆ AVPRIV_CODEC2_MODE_MAX

#define AVPRIV_CODEC2_MODE_MAX   8

Definition at line 30 of file codec2utils.h.

◆ AVPRIV_CODEC2_AVOPTIONS

#define AVPRIV_CODEC2_AVOPTIONS (   desc,
  classname,
  min_val,
  default_val,
  option_flags 
)
Value:
{ "mode", desc, offsetof(classname, mode), AV_OPT_TYPE_INT, {.i64 = default_val}, min_val, AVPRIV_CODEC2_MODE_MAX, .flags=option_flags, .unit="codec2_mode"},\
{ "3200", "3200", 0, AV_OPT_TYPE_CONST, {.i64 = 0}, .flags=option_flags, .unit="codec2_mode"},\
{ "2400", "2400", 0, AV_OPT_TYPE_CONST, {.i64 = 1}, .flags=option_flags, .unit="codec2_mode"},\
{ "1600", "1600", 0, AV_OPT_TYPE_CONST, {.i64 = 2}, .flags=option_flags, .unit="codec2_mode"},\
{ "1400", "1400", 0, AV_OPT_TYPE_CONST, {.i64 = 3}, .flags=option_flags, .unit="codec2_mode"},\
{ "1300", "1300", 0, AV_OPT_TYPE_CONST, {.i64 = 4}, .flags=option_flags, .unit="codec2_mode"},\
{ "1200", "1200", 0, AV_OPT_TYPE_CONST, {.i64 = 5}, .flags=option_flags, .unit="codec2_mode"},\
{ "700", "700", 0, AV_OPT_TYPE_CONST, {.i64 = 6}, .flags=option_flags, .unit="codec2_mode"},\
{ "700B", "700B", 0, AV_OPT_TYPE_CONST, {.i64 = 7}, .flags=option_flags, .unit="codec2_mode"},\
{ "700C", "700C", 0, AV_OPT_TYPE_CONST, {.i64 = 8}, .flags=option_flags, .unit="codec2_mode"}

Definition at line 36 of file codec2utils.h.

◆ AVPRIV_CODEC2_EXTRADATA_SIZE

#define AVPRIV_CODEC2_EXTRADATA_SIZE   4

Definition at line 62 of file codec2utils.h.

Function Documentation

◆ avpriv_codec2_mode_bit_rate()

int avpriv_codec2_mode_bit_rate ( void *  logctx,
int  mode 
)

Definition at line 26 of file codec2utils.c.

Referenced by codec2_read_header_common().

◆ avpriv_codec2_mode_frame_size()

int avpriv_codec2_mode_frame_size ( void *  logctx,
int  mode 
)

Definition at line 38 of file codec2utils.c.

Referenced by avpriv_codec2_mode_bit_rate(), and codec2_read_header_common().

◆ avpriv_codec2_mode_block_align()

int avpriv_codec2_mode_block_align ( void *  logctx,
int  mode 
)

Definition at line 60 of file codec2utils.c.

Referenced by avpriv_codec2_mode_bit_rate(), and codec2_read_header_common().

◆ avpriv_codec2_make_extradata()

static void avpriv_codec2_make_extradata ( uint8_t ptr,
int  mode 
)
inlinestatic

Definition at line 65 of file codec2utils.h.

Referenced by codec2raw_read_header(), and libcodec2_init_encoder().

◆ avpriv_codec2_version_from_extradata()

static uint16_t avpriv_codec2_version_from_extradata ( uint8_t ptr)
inlinestatic

Definition at line 74 of file codec2utils.h.

Referenced by codec2_read_header().

◆ avpriv_codec2_mode_from_extradata()

static uint8_t avpriv_codec2_mode_from_extradata ( uint8_t ptr)
inlinestatic

Definition at line 78 of file codec2utils.h.

Referenced by codec2_read_header_common(), and libcodec2_init_decoder().

AVPRIV_CODEC2_MODE_MAX
#define AVPRIV_CODEC2_MODE_MAX
Definition: codec2utils.h:30
desc
const char * desc
Definition: nvenc.c:79
mode
mode
Definition: ebur128.h:83
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:223
AV_OPT_TYPE_CONST
@ AV_OPT_TYPE_CONST
Definition: opt.h:232