FFmpeg
|
#include "avcodec.h"
#include "get_bits.h"
#include "internal.h"
#include "thread.h"
#include "videodsp.h"
#include "vp56.h"
#include "vp9.h"
#include "vp9data.h"
#include "vp9dsp.h"
#include "libavutil/avassert.h"
Go to the source code of this file.
Data Structures | |
struct | VP9mvrefPair |
struct | VP9Frame |
struct | VP9Filter |
struct | VP9Block |
struct | VP9Context |
Macros | |
#define | VP9_SYNCCODE 0x498342 |
#define | CUR_FRAME 0 |
#define | LAST_FRAME 1 |
#define | assign(var, type, n) var = (type) p; p += s->sb_cols * n * sizeof(*var) |
#define | INVALID_MV 0x80008000U |
#define | RETURN_DIRECT_MV(mv) |
#define | RETURN_MV(mv) |
#define | RETURN_SCALE_MV(mv, scale) |
#define | SPLAT_CTX(var, val, n) |
#define | SET_CTXS(dir, off, n) |
#define | MERGE(la, end, step, rd) |
#define | MERGE_CTX(step, rd) |
#define | DECODE_Y_COEF_LOOP(step, mode_index, v) |
#define | SPLAT(la, end, step, cond) |
#define | SPLAT_CTX(step) |
#define | DECODE_UV_COEF_LOOP(step) |
#define | SPLAT_ZERO_CTX(v, n) |
#define | SPLAT_ZERO_YUV(dir, var, off, n) |
Enumerations | |
enum | CompPredMode { PRED_SINGLEREF, PRED_COMPREF, PRED_SWITCHABLE } |
enum | BlockLevel { BL_64X64, BL_32X32, BL_16X16, BL_8X8 } |
enum | BlockSize { BS_64x64, BS_64x32, BS_32x64, BS_32x32, BS_32x16, BS_16x32, BS_16x16, BS_16x8, BS_8x16, BS_8x8, BS_8x4, BS_4x8, BS_4x4, N_BS_SIZES } |
Functions | |
static int | vp9_alloc_frame (AVCodecContext *ctx, VP9Frame *f) |
static void | vp9_unref_frame (AVCodecContext *ctx, VP9Frame *f) |
static int | vp9_ref_frame (AVCodecContext *ctx, VP9Frame *dst, VP9Frame *src) |
static int | update_size (AVCodecContext *ctx, int w, int h) |
static int | update_block_buffers (AVCodecContext *ctx) |
static av_always_inline int | get_sbits_inv (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 *ctx, const uint8_t *data, int size, int *ref) |
static av_always_inline void | clamp_mv (VP56mv *dst, const VP56mv *src, VP9Context *s) |
static void | find_ref_mvs (VP9Context *s, VP56mv *pmv, int ref, int z, int idx, int sb) |
static av_always_inline int | read_mv_component (VP9Context *s, int idx, int hp) |
static void | fill_mv (VP9Context *s, VP56mv *mv, int mode, int sb) |
static av_always_inline void | setctx_2d (uint8_t *ptr, int w, int h, ptrdiff_t stride, int v) |
static void | decode_mode (AVCodecContext *ctx) |
static av_always_inline int | decode_coeffs_b_generic (VP56RangeCoder *c, int16_t *coef, int n_coeffs, int is_tx32x32, unsigned(*cnt)[6][3], unsigned(*eob)[6][2], uint8_t(*p)[6][11], int nnz, const int16_t *scan, const int16_t(*nb)[2], const int16_t *band_counts, const int16_t *qmul) |
static int | decode_coeffs_b (VP56RangeCoder *c, int16_t *coef, int n_coeffs, unsigned(*cnt)[6][3], unsigned(*eob)[6][2], uint8_t(*p)[6][11], int nnz, const int16_t *scan, const int16_t(*nb)[2], const int16_t *band_counts, const int16_t *qmul) |
static int | decode_coeffs_b32 (VP56RangeCoder *c, int16_t *coef, int n_coeffs, unsigned(*cnt)[6][3], unsigned(*eob)[6][2], uint8_t(*p)[6][11], int nnz, const int16_t *scan, const int16_t(*nb)[2], const int16_t *band_counts, const int16_t *qmul) |
static void | decode_coeffs (AVCodecContext *ctx) |
static av_always_inline int | check_intra_mode (VP9Context *s, int mode, uint8_t **a, uint8_t *dst_edge, ptrdiff_t stride_edge, uint8_t *dst_inner, ptrdiff_t stride_inner, uint8_t *l, int col, int x, int w, int row, int y, enum TxfmMode tx, int p) |
static void | intra_recon (AVCodecContext *ctx, ptrdiff_t y_off, ptrdiff_t uv_off) |
static av_always_inline void | mc_luma_dir (VP9Context *s, vp9_mc_func(*mc)[2], uint8_t *dst, ptrdiff_t dst_stride, const uint8_t *ref, ptrdiff_t ref_stride, ThreadFrame *ref_frame, ptrdiff_t y, ptrdiff_t x, const VP56mv *mv, int bw, int bh, int w, int h) |
static av_always_inline void | mc_chroma_dir (VP9Context *s, vp9_mc_func(*mc)[2], uint8_t *dst_u, uint8_t *dst_v, ptrdiff_t dst_stride, const uint8_t *ref_u, ptrdiff_t src_stride_u, const uint8_t *ref_v, ptrdiff_t src_stride_v, ThreadFrame *ref_frame, ptrdiff_t y, ptrdiff_t x, const VP56mv *mv, int bw, int bh, int w, int h) |
static void | inter_recon (AVCodecContext *ctx) |
static av_always_inline void | mask_edges (struct VP9Filter *lflvl, int is_uv, int row_and_7, int col_and_7, int w, int h, int col_end, int row_end, enum TxfmMode tx, int skip_inter) |
static void | decode_b (AVCodecContext *ctx, int row, int col, struct VP9Filter *lflvl, ptrdiff_t yoff, ptrdiff_t uvoff, enum BlockLevel bl, enum BlockPartition bp) |
static void | decode_sb (AVCodecContext *ctx, int row, int col, struct VP9Filter *lflvl, ptrdiff_t yoff, ptrdiff_t uvoff, enum BlockLevel bl) |
static void | decode_sb_mem (AVCodecContext *ctx, int row, int col, struct VP9Filter *lflvl, ptrdiff_t yoff, ptrdiff_t uvoff, enum BlockLevel bl) |
static void | loopfilter_sb (AVCodecContext *ctx, struct 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 av_always_inline void | adapt_prob (uint8_t *p, unsigned ct0, unsigned ct1, int max_count, int update_factor) |
static void | adapt_probs (VP9Context *s) |
static void | free_buffers (VP9Context *s) |
static av_cold int | vp9_decode_free (AVCodecContext *ctx) |
static int | vp9_decode_frame (AVCodecContext *ctx, void *frame, int *got_frame, AVPacket *pkt) |
static void | vp9_decode_flush (AVCodecContext *ctx) |
static int | init_frames (AVCodecContext *ctx) |
static av_cold int | vp9_decode_init (AVCodecContext *ctx) |
static av_cold int | vp9_decode_init_thread_copy (AVCodecContext *avctx) |
static int | vp9_decode_update_thread_context (AVCodecContext *dst, const AVCodecContext *src) |
Variables | |
static const uint8_t | bwh_tab [2][N_BS_SIZES][2] |
AVCodec | ff_vp9_decoder |
#define VP9_SYNCCODE 0x498342 |
Definition at line 35 of file vp9.c.
Referenced by decode_frame_header().
#define CUR_FRAME 0 |
Definition at line 130 of file vp9.c.
Referenced by decode_b(), decode_frame_header(), decode_mode(), decode_sb(), decode_sb_mem(), find_ref_mvs(), intra_recon(), loopfilter_sb(), and vp9_decode_frame().
#define LAST_FRAME 1 |
Definition at line 131 of file vp9.c.
Referenced by decode_mode(), find_ref_mvs(), vp9_alloc_frame(), and vp9_decode_frame().
Referenced by update_size().
#define INVALID_MV 0x80008000U |
Referenced by find_ref_mvs().
#define RETURN_DIRECT_MV | ( | mv | ) |
#define RETURN_MV | ( | mv | ) |
Referenced by decode_coeffs().
Referenced by decode_mode().
#define MERGE_CTX | ( | step, | |
rd | |||
) |
Referenced by decode_coeffs().
#define DECODE_Y_COEF_LOOP | ( | step, | |
mode_index, | |||
v | |||
) |
Referenced by decode_coeffs().
#define SPLAT | ( | la, | |
end, | |||
step, | |||
cond | |||
) |
#define SPLAT_CTX | ( | step | ) |
#define DECODE_UV_COEF_LOOP | ( | step | ) |
Referenced by decode_coeffs().
enum CompPredMode |
enum BlockLevel |
enum BlockSize |
|
static |
Definition at line 263 of file vp9.c.
Referenced by vp9_decode_frame().
|
static |
Definition at line 288 of file vp9.c.
Referenced by vp9_decode_flush(), vp9_decode_frame(), vp9_decode_free(), vp9_decode_update_thread_context(), and vp9_ref_frame().
|
static |
Definition at line 294 of file vp9.c.
Referenced by vp9_decode_frame(), and vp9_decode_update_thread_context().
|
static |
Definition at line 311 of file vp9.c.
Referenced by decode_frame_header().
|
static |
Definition at line 359 of file vp9.c.
Referenced by vp9_decode_frame().
|
static |
Definition at line 397 of file vp9.c.
Referenced by decode_frame_header().
|
static |
Definition at line 403 of file vp9.c.
Referenced by update_prob().
|
static |
Definition at line 409 of file vp9.c.
Referenced by decode_frame_header().
|
static |
Definition at line 466 of file vp9.c.
Referenced by vp9_decode_frame().
|
static |
|
static |
|
static |
|
static |
Definition at line 1198 of file vp9.c.
Referenced by decode_mode().
|
static |
Definition at line 1271 of file vp9.c.
Referenced by decode_b(), and decode_mode().
|
static |
Definition at line 1317 of file vp9.c.
Referenced by decode_b().
|
static |
Definition at line 2016 of file vp9.c.
Referenced by decode_coeffs_b(), and decode_coeffs_b32().
|
static |
|
static |
Definition at line 2133 of file vp9.c.
Referenced by decode_coeffs().
|
static |
Definition at line 2143 of file vp9.c.
Referenced by decode_b().
|
static |
Definition at line 2304 of file vp9.c.
Referenced by intra_recon().
|
static |
Definition at line 2439 of file vp9.c.
Referenced by decode_b().
|
static |
Definition at line 2509 of file vp9.c.
Referenced by inter_recon().
|
static |
Definition at line 2541 of file vp9.c.
Referenced by inter_recon().
|
static |
Definition at line 2586 of file vp9.c.
Referenced by decode_b().
|
static |
Definition at line 2781 of file vp9.c.
Referenced by decode_b().
|
static |
Definition at line 2914 of file vp9.c.
Referenced by decode_sb(), and decode_sb_mem().
|
static |
Definition at line 3085 of file vp9.c.
Referenced by vp9_decode_frame().
|
static |
Definition at line 3160 of file vp9.c.
Referenced by vp9_decode_frame().
|
static |
Definition at line 3207 of file vp9.c.
Referenced by vp9_decode_frame().
|
static |
Definition at line 3444 of file vp9.c.
Referenced by vp9_decode_frame().
|
static |
Definition at line 3452 of file vp9.c.
Referenced by adapt_probs().
|
static |
Definition at line 3470 of file vp9.c.
Referenced by vp9_decode_frame().
|
static |
Definition at line 3692 of file vp9.c.
Referenced by vp9_decode_free(), and vp9_decode_update_thread_context().
|
static |
Definition at line 3699 of file vp9.c.
Referenced by init_frames().
|
static |
|
static |
|
static |
Definition at line 3969 of file vp9.c.
Referenced by vp9_decode_init(), and vp9_decode_init_thread_copy().
|
static |
|
static |
|
static |
|
static |
Definition at line 253 of file vp9.c.
Referenced by decode_b(), decode_coeffs(), decode_mode(), inter_recon(), and intra_recon().
AVCodec ff_vp9_decoder |