FFmpeg
Macros | Functions | Variables
avcodec.c File Reference
#include "config.h"
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/bprint.h"
#include "libavutil/channel_layout.h"
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/thread.h"
#include "avcodec.h"
#include "bsf.h"
#include "decode.h"
#include "encode.h"
#include "frame_thread_encoder.h"
#include "internal.h"
#include "thread.h"
#include "libavutil/ffversion.h"

Go to the source code of this file.

Macros

#define LICENSE_PREFIX   "libavcodec license: "
 

Functions

unsigned avcodec_version (void)
 Return the LIBAVCODEC_VERSION_INT constant. More...
 
const char * avcodec_configuration (void)
 Return the libavcodec build-time configuration. More...
 
const char * avcodec_license (void)
 Return the libavcodec license. More...
 
int avcodec_default_execute (AVCodecContext *c, int(*func)(AVCodecContext *c2, void *arg2), void *arg, int *ret, int count, int size)
 
int avcodec_default_execute2 (AVCodecContext *c, int(*func)(AVCodecContext *c2, void *arg2, int jobnr, int threadnr), void *arg, int *ret, int count)
 
static void lock_avcodec (const AVCodec *codec)
 
static void unlock_avcodec (const AVCodec *codec)
 
static int64_t get_bit_rate (AVCodecContext *ctx)
 
int attribute_align_arg avcodec_open2 (AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options)
 Initialize the AVCodecContext to use the given AVCodec. More...
 
void avcodec_flush_buffers (AVCodecContext *avctx)
 Reset the internal codec state / flush internal buffers. More...
 
void avsubtitle_free (AVSubtitle *sub)
 Free all allocated data in the given subtitle struct. More...
 
av_cold int avcodec_close (AVCodecContext *avctx)
 Close a given AVCodecContext and free all the data associated with it (but not the AVCodecContext itself). More...
 
static const char * unknown_if_null (const char *str)
 
void avcodec_string (char *buf, int buf_size, AVCodecContext *enc, int encode)
 
int avcodec_is_open (AVCodecContext *s)
 

Variables

const char av_codec_ffversion [] = "FFmpeg version " FFMPEG_VERSION
 
static AVMutex codec_mutex = AV_MUTEX_INITIALIZER
 

Detailed Description

AVCodecContext functions for libavcodec

Definition in file avcodec.c.

Macro Definition Documentation

◆ LICENSE_PREFIX

#define LICENSE_PREFIX   "libavcodec license: "

Function Documentation

◆ avcodec_default_execute2()

int avcodec_default_execute2 ( AVCodecContext c,
int(*)(AVCodecContext *c2, void *arg2, int jobnr, int threadnr)  func,
void *  arg,
int ret,
int  count 
)

Definition at line 80 of file avcodec.c.

Referenced by init_context_defaults().

◆ lock_avcodec()

static void lock_avcodec ( const AVCodec codec)
static

Definition at line 95 of file avcodec.c.

Referenced by avcodec_open2().

◆ unlock_avcodec()

static void unlock_avcodec ( const AVCodec codec)
static

Definition at line 101 of file avcodec.c.

Referenced by avcodec_open2().

◆ get_bit_rate()

static int64_t get_bit_rate ( AVCodecContext ctx)
static

Definition at line 107 of file avcodec.c.

Referenced by avcodec_open2(), and avcodec_string().

◆ unknown_if_null()

static const char* unknown_if_null ( const char *  str)
static

Definition at line 514 of file avcodec.c.

Referenced by avcodec_string().

Variable Documentation

◆ av_codec_ffversion

const char av_codec_ffversion[] = "FFmpeg version " FFMPEG_VERSION

Definition at line 44 of file avcodec.c.

◆ codec_mutex

AVMutex codec_mutex = AV_MUTEX_INITIALIZER
static

Definition at line 93 of file avcodec.c.

Referenced by lock_avcodec(), and unlock_avcodec().