FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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

#define AVPRIV_CODEC2_MODE_MAX   8
#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"}
const char * desc
Definition: nvenc.c:68
#define AVPRIV_CODEC2_MODE_MAX
Definition: codec2utils.h:30
mode
Use these values in ebur128_init (or'ed).
Definition: ebur128.h:83

Definition at line 36 of file codec2utils.h.

#define AVPRIV_CODEC2_EXTRADATA_SIZE   4

Function Documentation

int avpriv_codec2_mode_bit_rate ( void logctx,
int  mode 
)

Definition at line 26 of file codec2utils.c.

Referenced by codec2_read_header_common().

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().

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().

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().

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().

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().