FFmpeg
Functions | Variables
vp5.c File Reference
#include <string.h>
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "vp56.h"
#include "vp56data.h"
#include "vp5data.h"
#include "vpx_rac.h"

Go to the source code of this file.

Functions

static int vp5_parse_header (VP56Context *s, const uint8_t *buf, int buf_size)
 
static void vp5_parse_vector_adjustment (VP56Context *s, VP56mv *vect)
 
static void vp5_parse_vector_models (VP56Context *s)
 
static int vp5_parse_coeff_models (VP56Context *s)
 
static int vp5_parse_coeff (VP56Context *s)
 
static void vp5_default_models_init (VP56Context *s)
 
static av_cold int vp5_decode_init (AVCodecContext *avctx)
 
static av_cold int vp56_free (AVCodecContext *avctx)
 

Variables

const FFCodec ff_vp5_decoder
 

Detailed Description

VP5 compatible video decoder

Definition in file vp5.c.

Function Documentation

◆ vp5_parse_header()

static int vp5_parse_header ( VP56Context *  s,
const uint8_t *  buf,
int  buf_size 
)
static

Definition at line 38 of file vp5.c.

Referenced by vp5_decode_init().

◆ vp5_parse_vector_adjustment()

static void vp5_parse_vector_adjustment ( VP56Context *  s,
VP56mv vect 
)
static

Definition at line 91 of file vp5.c.

Referenced by vp5_decode_init().

◆ vp5_parse_vector_models()

static void vp5_parse_vector_models ( VP56Context *  s)
static

Definition at line 115 of file vp5.c.

Referenced by vp5_decode_init().

◆ vp5_parse_coeff_models()

static int vp5_parse_coeff_models ( VP56Context *  s)
static

Definition at line 138 of file vp5.c.

Referenced by vp5_decode_init().

◆ vp5_parse_coeff()

static int vp5_parse_coeff ( VP56Context *  s)
static

Definition at line 185 of file vp5.c.

Referenced by vp5_decode_init().

◆ vp5_default_models_init()

static void vp5_default_models_init ( VP56Context *  s)
static

Definition at line 269 of file vp5.c.

Referenced by vp5_decode_init().

◆ vp5_decode_init()

static av_cold int vp5_decode_init ( AVCodecContext avctx)
static

Definition at line 284 of file vp5.c.

◆ vp56_free()

static av_cold int vp56_free ( AVCodecContext avctx)
static

Definition at line 303 of file vp5.c.

Variable Documentation

◆ ff_vp5_decoder

const FFCodec ff_vp5_decoder
Initial value:
= {
.p.name = "vp5",
CODEC_LONG_NAME("On2 VP5"),
.p.type = AVMEDIA_TYPE_VIDEO,
.p.id = AV_CODEC_ID_VP5,
.priv_data_size = sizeof(VP56Context),
.close = vp56_free,
.p.capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}

Definition at line 309 of file vp5.c.

vp5_decode_init
static av_cold int vp5_decode_init(AVCodecContext *avctx)
Definition: vp5.c:284
FF_CODEC_CAP_INIT_CLEANUP
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: codec_internal.h:42
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:286
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:271
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:366
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
AV_CODEC_ID_VP5
@ AV_CODEC_ID_VP5
Definition: codec_id.h:142
ff_vp56_decode_frame
int ff_vp56_decode_frame(AVCodecContext *avctx, AVFrame *rframe, int *got_frame, AVPacket *avpkt)
Definition: vp56.c:570
vp56_free
static av_cold int vp56_free(AVCodecContext *avctx)
Definition: vp5.c:303
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201