FFmpeg
Data Structures | Functions | Variables
libdavs2.c File Reference
#include "libavutil/cpu.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "avs2.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, AVFrame *frame, int *got_frame, AVPacket *avpkt)
 

Variables

const FFCodec ff_libdavs2_decoder
 

Function Documentation

◆ davs2_init()

static av_cold int davs2_init ( AVCodecContext avctx)
static

Definition at line 43 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 64 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 142 of file libdavs2.c.

Referenced by davs2_end().

◆ send_delayed_frame()

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

Definition at line 157 of file libdavs2.c.

Referenced by davs2_decode_frame().

◆ davs2_end()

static av_cold int davs2_end ( AVCodecContext avctx)
static

Definition at line 174 of file libdavs2.c.

◆ davs2_decode_frame()

static int davs2_decode_frame ( AVCodecContext avctx,
AVFrame frame,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 188 of file libdavs2.c.

Variable Documentation

◆ ff_libdavs2_decoder

const FFCodec ff_libdavs2_decoder
Initial value:
= {
.p.name = "libdavs2",
CODEC_LONG_NAME("libdavs2 AVS2-P2/IEEE1857.4"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(DAVS2Context),
.close = davs2_end,
.flush = davs2_flush,
.p.wrapper_name = "libdavs2",
}

Definition at line 224 of file libdavs2.c.

davs2_init
static av_cold int davs2_init(AVCodecContext *avctx)
Definition: libdavs2.c:43
AV_CODEC_ID_AVS2
@ AV_CODEC_ID_AVS2
Definition: codec_id.h:248
FF_CODEC_CAP_NOT_INIT_THREADSAFE
#define FF_CODEC_CAP_NOT_INIT_THREADSAFE
The codec is not known to be init-threadsafe (i.e.
Definition: codec_internal.h:35
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:311
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:124
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:296
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:368
davs2_flush
static void davs2_flush(AVCodecContext *avctx)
Definition: libdavs2.c:142
davs2_decode_frame
static int davs2_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition: libdavs2.c:188
davs2_end
static av_cold int davs2_end(AVCodecContext *avctx)
Definition: libdavs2.c:174
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:76
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
FF_CODEC_CAP_AUTO_THREADS
#define FF_CODEC_CAP_AUTO_THREADS
Codec handles avctx->thread_count == 0 (auto) internally.
Definition: codec_internal.h:73
DAVS2Context
Definition: libdavs2.c:31