FFmpeg
Loading...
Searching...
No Matches
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),
.flush = davs2_flush,
.p.wrapper_name = "libdavs2",
}
static av_cold void close(AVCodecParserContext *s)
Definition apv_parser.c:197
#define FF_CODEC_CAP_NOT_INIT_THREADSAFE
The codec is not known to be init-threadsafe (i.e.
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
#define FF_CODEC_CAP_AUTO_THREADS
Codec handles avctx->thread_count == 0 (auto) internally.
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:608
#define AV_CODEC_CAP_OTHER_THREADS
Codec supports multithreading through a method other than slice- or frame-level multithreading.
Definition codec.h:112
#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:79
@ AV_CODEC_ID_AVS2
Definition codec_id.h:243
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
static av_cold int davs2_init(AVCodecContext *avctx)
Definition libdavs2.c:43
static int davs2_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition libdavs2.c:188
static void davs2_flush(AVCodecContext *avctx)
Definition libdavs2.c:142
static av_cold int davs2_end(AVCodecContext *avctx)
Definition libdavs2.c:174

Definition at line 224 of file libdavs2.c.