FFmpeg
Functions | Variables
vp5.c File Reference
#include <stdlib.h>
#include <string.h>
#include "avcodec.h"
#include "internal.h"
#include "vp56.h"
#include "vp56data.h"
#include "vp5data.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)
 

Variables

const AVCodec 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 37 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 87 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 111 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 134 of file vp5.c.

Referenced by vp5_decode_init().

◆ vp5_parse_coeff()

static int vp5_parse_coeff ( VP56Context *  s)
static

Definition at line 181 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 265 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 280 of file vp5.c.

Variable Documentation

◆ ff_vp5_decoder

const AVCodec ff_vp5_decoder
Initial value:
= {
.name = "vp5",
.long_name = NULL_IF_CONFIG_SMALL("On2 VP5"),
.priv_data_size = sizeof(VP56Context),
.close = ff_vp56_free,
.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 299 of file vp5.c.

vp5_decode_init
static av_cold int vp5_decode_init(AVCodecContext *avctx)
Definition: vp5.c:280
init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
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
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
AV_CODEC_ID_VP5
@ AV_CODEC_ID_VP5
Definition: codec_id.h:139
ff_vp56_decode_frame
int ff_vp56_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: vp56.c:568
ff_vp56_free
av_cold int ff_vp56_free(AVCodecContext *avctx)
Definition: vp56.c:835
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201