FFmpeg
Macros | Functions
avcodec.c File Reference
#include "libavutil/opt.h"
#include "libavcodec/codec.h"
#include "libavcodec/codec_desc.h"
#include "libavcodec/codec_internal.h"
#include "libavcodec/internal.h"

Go to the source code of this file.

Macros

#define AV_LOG(...)   av_log(NULL, AV_LOG_FATAL, __VA_ARGS__)
 
#define ERR_INTERNAL(msg, ...)
 
#define ERR(msg)   ERR_INTERNAL(msg, )
 
#define ERR_EXT(msg, ...)   ERR_INTERNAL(msg, , __VA_ARGS__)
 
#define CHECK(TYPE, type)   (codec2->cb_type == FF_CODEC_CB_TYPE_ ## TYPE && !codec2->cb.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 (   ...)    av_log(NULL, AV_LOG_FATAL, __VA_ARGS__)

Definition at line 31 of file avcodec.c.

◆ 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)    ERR_INTERNAL(msg, )

Definition at line 37 of file avcodec.c.

◆ ERR_EXT

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

Definition at line 38 of file avcodec.c.

◆ CHECK

#define CHECK (   TYPE,
  type 
)    (codec2->cb_type == FF_CODEC_CB_TYPE_ ## TYPE && !codec2->cb.type)

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 59 of file avcodec.c.