FFmpeg
Data Structures | Functions | Variables
avcodec_internal.h File Reference
#include "libavutil/frame.h"
#include "packet.h"

Go to the source code of this file.

Data Structures

struct  SideDataMap
 

Functions

int ff_decode_receive_frame (struct AVCodecContext *avctx, struct AVFrame *frame)
 avcodec_receive_frame() implementation for decoders. More...
 
int ff_encode_receive_frame (struct AVCodecContext *avctx, struct AVFrame *frame)
 avcodec_receive_frame() implementation for encoders. More...
 
int ff_encode_preinit (struct AVCodecContext *avctx)
 
int ff_decode_preinit (struct AVCodecContext *avctx)
 Perform decoder initialization and validation. More...
 
void ff_decode_flush_buffers (struct AVCodecContext *avctx)
 
void ff_encode_flush_buffers (struct AVCodecContext *avctx)
 
struct AVCodecInternalff_decode_internal_alloc (void)
 
struct AVCodecInternalff_encode_internal_alloc (void)
 
void ff_codec_close (struct AVCodecContext *avctx)
 

Variables

const SideDataMap ff_sd_global_map []
 A map between packet and frame side data types. More...
 

Function Documentation

◆ ff_decode_receive_frame()

int ff_decode_receive_frame ( struct AVCodecContext avctx,
struct AVFrame frame 
)

avcodec_receive_frame() implementation for decoders.

Definition at line 765 of file decode.c.

Referenced by avcodec_receive_frame().

◆ ff_encode_receive_frame()

int ff_encode_receive_frame ( struct AVCodecContext avctx,
struct AVFrame frame 
)

avcodec_receive_frame() implementation for encoders.

Definition at line 852 of file encode.c.

Referenced by avcodec_receive_frame().

◆ ff_encode_preinit()

int ff_encode_preinit ( struct AVCodecContext avctx)

Definition at line 732 of file encode.c.

Referenced by avcodec_open2().

◆ ff_decode_preinit()

int ff_decode_preinit ( struct AVCodecContext avctx)

Perform decoder initialization and validation.

Called when opening the decoder, before the FFCodec.init() call.

Definition at line 1791 of file decode.c.

Referenced by avcodec_open2().

◆ ff_decode_flush_buffers()

void ff_decode_flush_buffers ( struct AVCodecContext avctx)

Definition at line 2115 of file decode.c.

Referenced by avcodec_flush_buffers().

◆ ff_encode_flush_buffers()

void ff_encode_flush_buffers ( struct AVCodecContext avctx)

Definition at line 865 of file encode.c.

Referenced by avcodec_flush_buffers().

◆ ff_decode_internal_alloc()

struct AVCodecInternal* ff_decode_internal_alloc ( void  )

Definition at line 2132 of file decode.c.

Referenced by avcodec_open2(), and init_thread().

◆ ff_encode_internal_alloc()

struct AVCodecInternal* ff_encode_internal_alloc ( void  )

Definition at line 875 of file encode.c.

Referenced by avcodec_open2().

◆ ff_codec_close()

void ff_codec_close ( struct AVCodecContext avctx)

Definition at line 415 of file avcodec.c.

Referenced by avcodec_close(), avcodec_free_context(), and avcodec_open2().

Variable Documentation

◆ ff_sd_global_map

const SideDataMap ff_sd_global_map[]

A map between packet and frame side data types.

Terminated with an entry where packet=AV_PKT_DATA_NB.

Definition at line 57 of file avcodec.c.

Referenced by ff_decode_frame_props(), ff_decode_frame_props_from_pkt(), ff_decode_preinit(), and ff_encode_preinit().