Libav
Macros | Functions | Variables
vp9.c File Reference
#include "libavutil/avassert.h"
#include "avcodec.h"
#include "get_bits.h"
#include "internal.h"
#include "videodsp.h"
#include "vp56.h"
#include "vp9.h"
#include "vp9data.h"

Go to the source code of this file.

Macros

#define VP9_SYNCCODE   0x498342
#define MAX_PROB   255
#define assign(var, type, n)   var = (type)p; p += s->sb_cols * n * sizeof(*var)

Functions

static void vp9_decode_flush (AVCodecContext *avctx)
static int update_size (AVCodecContext *avctx, int w, int h)
static av_always_inline int get_bits_with_sign (GetBitContext *gb, int n)
static av_always_inline int inv_recenter_nonneg (int v, int m)
static int update_prob (VP56RangeCoder *c, int p)
static int decode_frame_header (AVCodecContext *avctx, const uint8_t *data, int size, int *ref)
static int decode_subblock (AVCodecContext *avctx, int row, int col, VP9Filter *lflvl, ptrdiff_t yoff, ptrdiff_t uvoff, enum BlockLevel bl)
static void loopfilter_subblock (AVCodecContext *avctx, VP9Filter *lflvl, int row, int col, ptrdiff_t yoff, ptrdiff_t uvoff)
static void set_tile_offset (int *start, int *end, int idx, int log2_n, int n)
static int vp9_decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame, const uint8_t *data, int size)
static int vp9_decode_packet (AVCodecContext *avctx, void *frame, int *got_frame, AVPacket *avpkt)
static av_cold int vp9_decode_free (AVCodecContext *avctx)
static av_cold int vp9_decode_init (AVCodecContext *avctx)

Variables

AVCodec ff_vp9_decoder

Macro Definition Documentation

#define VP9_SYNCCODE   0x498342

Definition at line 34 of file vp9.c.

Referenced by decode_frame_header().

#define MAX_PROB   255

Definition at line 35 of file vp9.c.

Referenced by update_prob().

#define assign (   var,
  type,
 
)    var = (type)p; p += s->sb_cols * n * sizeof(*var)

Referenced by update_size().

Function Documentation

static void vp9_decode_flush ( AVCodecContext avctx)
static

Definition at line 37 of file vp9.c.

Referenced by update_size().

static int update_size ( AVCodecContext avctx,
int  w,
int  h 
)
static

Definition at line 46 of file vp9.c.

Referenced by decode_frame_header().

static av_always_inline int get_bits_with_sign ( GetBitContext gb,
int  n 
)
static

Definition at line 99 of file vp9.c.

Referenced by decode_frame_header().

static av_always_inline int inv_recenter_nonneg ( int  v,
int  m 
)
static

Definition at line 105 of file vp9.c.

Referenced by update_prob().

static int update_prob ( VP56RangeCoder c,
int  p 
)
static

Definition at line 115 of file vp9.c.

Referenced by decode_frame_header().

static int decode_frame_header ( AVCodecContext avctx,
const uint8_t data,
int  size,
int *  ref 
)
static

Definition at line 175 of file vp9.c.

Referenced by vp9_decode_frame().

static int decode_subblock ( AVCodecContext avctx,
int  row,
int  col,
VP9Filter lflvl,
ptrdiff_t  yoff,
ptrdiff_t  uvoff,
enum BlockLevel  bl 
)
static

Definition at line 655 of file vp9.c.

Referenced by vp9_decode_frame().

static void loopfilter_subblock ( AVCodecContext avctx,
VP9Filter lflvl,
int  row,
int  col,
ptrdiff_t  yoff,
ptrdiff_t  uvoff 
)
static

Definition at line 758 of file vp9.c.

Referenced by vp9_decode_frame().

static void set_tile_offset ( int *  start,
int *  end,
int  idx,
int  log2_n,
int  n 
)
static

Definition at line 999 of file vp9.c.

Referenced by vp9_decode_frame().

static int vp9_decode_frame ( AVCodecContext avctx,
AVFrame frame,
int *  got_frame,
const uint8_t data,
int  size 
)
static

Definition at line 1007 of file vp9.c.

Referenced by vp9_decode_packet().

static int vp9_decode_packet ( AVCodecContext avctx,
void frame,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 1182 of file vp9.c.

static av_cold int vp9_decode_free ( AVCodecContext avctx)
static

Definition at line 1231 of file vp9.c.

Referenced by vp9_decode_init().

static av_cold int vp9_decode_init ( AVCodecContext avctx)
static

Definition at line 1245 of file vp9.c.

Variable Documentation

AVCodec ff_vp9_decoder
Initial value:
{
.name = "vp9",
.long_name = NULL_IF_CONFIG_SMALL("Google VP9"),
.priv_data_size = sizeof(VP9Context),
.capabilities = CODEC_CAP_DR1,
}

Definition at line 1268 of file vp9.c.