FFmpeg
Loading...
Searching...
No Matches
avcodec.c File Reference

Go to the source code of this file.

Macros

#define AV_LOG(...)
 
#define ERR_INTERNAL(msg, ...)
 
#define ERR(msg)
 
#define ERR_EXT(msg, ...)
 
#define ARRAY_CHECK(field, var, type, is_sentinel, check, sentinel_check)
 
#define CHECK(TYPE, type)
 

Functions

static const char * get_type_string (enum AVMediaType type)
 
static int priv_data_size_wrong (const FFCodec *codec)
 
int main (void)
 

Macro Definition Documentation

◆ AV_LOG

#define AV_LOG ( ...)
Value:
av_log(NULL, AV_LOG_FATAL, __VA_ARGS__)
#define NULL
Definition coverity.c:32
#define AV_LOG_FATAL
Something went wrong and recovery is not possible.
Definition log.h:204
#define av_log(a,...)

Definition at line 31 of file avcodec.c.

Referenced by main(), and priv_data_size_wrong().

◆ ERR_INTERNAL

#define ERR_INTERNAL ( msg,
... )
Value:
do { \
AV_LOG(msg, codec->name __VA_ARGS__); \
ret = 1; \
} while (0)

Definition at line 32 of file avcodec.c.

◆ ERR

#define ERR ( msg)
Value:
#define ERR_INTERNAL(msg,...)
Definition avcodec.c:32

Definition at line 37 of file avcodec.c.

Referenced by main().

◆ ERR_EXT

#define ERR_EXT ( msg,
... )
Value:
ERR_INTERNAL(msg, , __VA_ARGS__)

Definition at line 38 of file avcodec.c.

Referenced by main().

◆ ARRAY_CHECK

#define ARRAY_CHECK ( field,
var,
type,
is_sentinel,
check,
sentinel_check )
Value:
do { \
const type *ptr = codec2->field; \
if (!ptr) \
break; \
type var = *ptr; \
if (is_sentinel) { \
ERR("Codec %s sets " #field ", but without valid elements.\n"); \
break; \
} \
do { \
if (!(check)) { \
ERR("Codec's %s " #field " array contains invalid element\n");\
break; \
} \
++ptr; \
var = *ptr; \
} while (!(is_sentinel)); \
if (!(sentinel_check)) { \
ERR("Codec's %s " #field " array has malformed sentinel\n"); \
break; \
} \
} while (0)
cl_device_type type
#define check(x, y, S, v)

Definition at line 59 of file avcodec.c.

Referenced by main().

◆ CHECK

#define CHECK ( TYPE,
type )
Value:
(codec2->cb_type == FF_CODEC_CB_TYPE_ ## TYPE && !codec2->cb.type)
#define TYPE
Definition ffv1dec.c:90

Referenced by main().

Function Documentation

◆ get_type_string()

static const char * get_type_string ( enum AVMediaType type)
static

Definition at line 25 of file avcodec.c.

Referenced by main().

◆ priv_data_size_wrong()

static int priv_data_size_wrong ( const FFCodec * codec)
static

Definition at line 40 of file avcodec.c.

Referenced by main().

◆ main()

int main ( void )

Definition at line 83 of file avcodec.c.