FFmpeg
Data Structures | Functions | Variables
libdavs2.c File Reference
#include "avcodec.h"
#include "internal.h"
#include "davs2.h"

Go to the source code of this file.

Data Structures

struct  DAVS2Context
 

Functions

static av_cold int davs2_init (AVCodecContext *avctx)
 
static int davs2_dump_frames (AVCodecContext *avctx, davs2_picture_t *pic, int *got_frame, davs2_seq_info_t *headerset, int ret_type, AVFrame *frame)
 
static void davs2_flush (AVCodecContext *avctx)
 
static int send_delayed_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame)
 
static av_cold int davs2_end (AVCodecContext *avctx)
 
static int davs2_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 

Variables

AVCodec ff_libdavs2_decoder
 

Function Documentation

◆ davs2_init()

static av_cold int davs2_init ( AVCodecContext avctx)
static

Definition at line 41 of file libdavs2.c.

◆ davs2_dump_frames()

static int davs2_dump_frames ( AVCodecContext avctx,
davs2_picture_t *  pic,
int got_frame,
davs2_seq_info_t *  headerset,
int  ret_type,
AVFrame frame 
)
static

Definition at line 62 of file libdavs2.c.

Referenced by davs2_decode_frame(), and send_delayed_frame().

◆ davs2_flush()

static void davs2_flush ( AVCodecContext avctx)
static

Definition at line 133 of file libdavs2.c.

◆ send_delayed_frame()

static int send_delayed_frame ( AVCodecContext avctx,
AVFrame frame,
int got_frame 
)
static

Definition at line 148 of file libdavs2.c.

Referenced by davs2_decode_frame().

◆ davs2_end()

static av_cold int davs2_end ( AVCodecContext avctx)
static

Definition at line 165 of file libdavs2.c.

◆ davs2_decode_frame()

static int davs2_decode_frame ( AVCodecContext avctx,
void *  data,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 178 of file libdavs2.c.

Variable Documentation

◆ ff_libdavs2_decoder

AVCodec ff_libdavs2_decoder
Initial value:
= {
.name = "libdavs2",
.long_name = NULL_IF_CONFIG_SMALL("libdavs2 AVS2-P2/IEEE1857.4"),
.priv_data_size = sizeof(DAVS2Context),
.close = davs2_end,
.caps_internal = FF_CODEC_CAP_AUTO_THREADS,
.wrapper_name = "libdavs2",
}

Definition at line 215 of file libdavs2.c.

davs2_decode_frame
static int davs2_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: libdavs2.c:178
AVPixelFormat
AVPixelFormat
Pixel format.
Definition: pixfmt.h:64
init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
davs2_init
static av_cold int davs2_init(AVCodecContext *avctx)
Definition: libdavs2.c:41
AV_CODEC_ID_AVS2
@ AV_CODEC_ID_AVS2
Definition: codec_id.h:243
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
AV_CODEC_CAP_OTHER_THREADS
#define AV_CODEC_CAP_OTHER_THREADS
Codec supports multithreading through a method other than slice- or frame-level multithreading.
Definition: codec.h:122
pix_fmts
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:309
AV_PIX_FMT_YUV420P
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:66
flush
static void flush(AVCodecContext *avctx)
Definition: aacdec_template.c:592
FF_CODEC_CAP_AUTO_THREADS
#define FF_CODEC_CAP_AUTO_THREADS
Codec handles avctx->thread_count == 0 (auto) internally.
Definition: internal.h:80
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
davs2_flush
static void davs2_flush(AVCodecContext *avctx)
Definition: libdavs2.c:133
davs2_end
static av_cold int davs2_end(AVCodecContext *avctx)
Definition: libdavs2.c:165
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:65
AV_CODEC_CAP_DELAY
#define AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: codec.h:77
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
DAVS2Context
Definition: libdavs2.c:29