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

Go to the source code of this file.

Macros

#define CODEC2_MODE_MAX   8
 
#define CODEC2_AVOPTIONS(desc, classname, min_val, default_val, option_flags)
 
#define CODEC2_EXTRADATA_SIZE   4
 

Functions

static void codec2_make_extradata (uint8_t *ptr, int mode)
 
static uint8_t codec2_mode_from_extradata (uint8_t *ptr)
 

Macro Definition Documentation

◆ CODEC2_MODE_MAX

#define CODEC2_MODE_MAX   8

Definition at line 30 of file codec2utils.h.

◆ CODEC2_AVOPTIONS

#define 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, 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.

◆ CODEC2_EXTRADATA_SIZE

#define CODEC2_EXTRADATA_SIZE   4

Definition at line 48 of file codec2utils.h.

Function Documentation

◆ codec2_make_extradata()

static void codec2_make_extradata ( uint8_t *  ptr,
int  mode 
)
inlinestatic

Definition at line 51 of file codec2utils.h.

Referenced by codec2raw_read_header(), and libcodec2_init_encoder().

◆ codec2_mode_from_extradata()

static uint8_t codec2_mode_from_extradata ( uint8_t *  ptr)
inlinestatic

Definition at line 59 of file codec2utils.h.

Referenced by codec2_read_header_common(), and libcodec2_init_decoder().

CODEC2_MODE_MAX
#define CODEC2_MODE_MAX
Definition: codec2utils.h:30
mode
mode
Definition: ebur128.h:83
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:235
desc
const char * desc
Definition: libsvtav1.c:75
AV_OPT_TYPE_CONST
@ AV_OPT_TYPE_CONST
Definition: opt.h:244