FFmpeg
Data Structures | Macros | Functions
libvpxdec.c File Reference
#include "config_components.h"
#include <vpx/vpx_decoder.h>
#include <vpx/vpx_frame_buffer.h>
#include <vpx/vp8dx.h>
#include "libavutil/common.h"
#include "libavutil/cpu.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "libvpx.h"
#include "profiles.h"

Go to the source code of this file.

Data Structures

struct  VPxDecoderContext
 

Macros

#define VPX_CODEC_DISABLE_COMPAT   1
 

Functions

static int get_frame_buffer (void *priv, size_t min_size, vpx_codec_frame_buffer_t *fb)
 
static int release_frame_buffer (void *priv, vpx_codec_frame_buffer_t *fb)
 
static av_cold int vpx_init (AVCodecContext *avctx, struct vpx_codec_ctx *decoder, const struct vpx_codec_iface *iface)
 
static int set_pix_fmt (AVCodecContext *avctx, struct vpx_image *img, int has_alpha_channel)
 
static int decode_frame (AVCodecContext *avctx, vpx_codec_ctx_t *decoder, const uint8_t *data, uint32_t data_sz)
 
static int vpx_decode (AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
 
static av_cold int vpx_free (AVCodecContext *avctx)
 

Detailed Description

VP8/9 decoder support via libvpx

Definition in file libvpxdec.c.

Macro Definition Documentation

◆ VPX_CODEC_DISABLE_COMPAT

#define VPX_CODEC_DISABLE_COMPAT   1

Definition at line 28 of file libvpxdec.c.

Function Documentation

◆ get_frame_buffer()

static int get_frame_buffer ( void *  priv,
size_t  min_size,
vpx_codec_frame_buffer_t *  fb 
)
static

Definition at line 52 of file libvpxdec.c.

Referenced by vpx_init().

◆ release_frame_buffer()

static int release_frame_buffer ( void *  priv,
vpx_codec_frame_buffer_t *  fb 
)
static

Definition at line 79 of file libvpxdec.c.

Referenced by vpx_init().

◆ vpx_init()

static av_cold int vpx_init ( AVCodecContext avctx,
struct vpx_codec_ctx *  decoder,
const struct vpx_codec_iface *  iface 
)
static

Definition at line 86 of file libvpxdec.c.

Referenced by vpx_decode().

◆ set_pix_fmt()

static int set_pix_fmt ( AVCodecContext avctx,
struct vpx_image *  img,
int  has_alpha_channel 
)
static

Definition at line 111 of file libvpxdec.c.

Referenced by vpx_decode().

◆ decode_frame()

static int decode_frame ( AVCodecContext avctx,
vpx_codec_ctx_t *  decoder,
const uint8_t *  data,
uint32_t  data_sz 
)
static

Definition at line 200 of file libvpxdec.c.

Referenced by vpx_decode().

◆ vpx_decode()

static int vpx_decode ( AVCodecContext avctx,
AVFrame picture,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 217 of file libvpxdec.c.

◆ vpx_free()

static av_cold int vpx_free ( AVCodecContext avctx)
static

Definition at line 338 of file libvpxdec.c.