FFmpeg
Data Fields
VP8Context Struct Reference

#include <vp8.h>

Data Fields

VP8ThreadDatathread_data
 
AVCodecContextavctx
 
enum AVPixelFormat pix_fmt
 
int actually_webp
 
VP8Frameframep [4]
 
VP8Framenext_framep [4]
 
VP8Framecurframe
 
VP8Frameprev_frame
 
uint16_t mb_width
 
uint16_t mb_height
 
ptrdiff_t linesize
 
ptrdiff_t uvlinesize
 
uint8_t keyframe
 
uint8_t deblock_filter
 
uint8_t mbskip_enabled
 
uint8_t profile
 
VP8mvbounds mv_bounds
 
int8_t sign_bias [4]
 one state [0, 1] per ref frame type More...
 
int ref_count [3]
 
struct {
   uint8_t   enabled
 
   uint8_t   absolute_vals
 
   uint8_t   update_map
 
   uint8_t   update_feature_data
 
   int8_t   base_quant [4]
 
   int8_t   filter_level [4]
 base loop filter level More...
 
segmentation
 Base parameters for segmentation, i.e. More...
 
struct {
   uint8_t   simple
 
   uint8_t   level
 
   uint8_t   sharpness
 
filter
 
VP8Macroblockmacroblocks
 
uint8_t * intra4x4_pred_mode_top
 
uint8_t intra4x4_pred_mode_left [4]
 
struct {
   int16_t   luma_qmul [2]
 
   int16_t   luma_dc_qmul [2]
 luma dc-only block quant More...
 
   int16_t   chroma_qmul [2]
 
qmat [4]
 Macroblocks can have one of 4 different quants in a frame when segmentation is enabled. More...
 
struct {
   int   yac_qi
 
   int   ydc_delta
 
   int   y2dc_delta
 
   int   y2ac_delta
 
   int   uvdc_delta
 
   int   uvac_delta
 
quant
 
struct {
   uint8_t   enabled
 whether each mb can have a different strength based on mode/ref More...
 
   uint8_t   update
 
   int8_t   mode [VP8_MVMODE_SPLIT+1]
 filter strength adjustment for the following macroblock modes: [0-3] - i16x16 (always zero) [4] - i4x4 [5] - zero mv [6] - inter modes except for zero or split mv [7] - split mv i16x16 modes never have any adjustment More...
 
   int8_t   ref [4]
 filter strength adjustment for macroblocks that reference: [0] - intra / VP8_FRAME_CURRENT [1] - VP8_FRAME_PREVIOUS [2] - VP8_FRAME_GOLDEN [3] - altref / VP8_FRAME_ALTREF More...
 
lf_delta
 
uint8_t(* top_border )[16+8+8]
 
uint8_t(* top_nnz )[9]
 
VPXRangeCoder c
 header context, includes mb modes and motion vectors More...
 
struct {
   const uint8_t *   input
 
   uint32_t   range
 
   uint32_t   value
 
   int   bit_count
 
coder_state_at_header_end
 
int header_partition_size
 
struct {
   uint8_t   segmentid [3]
 
   uint8_t   mbskip
 
   uint8_t   intra
 
   uint8_t   last
 
   uint8_t   golden
 
   uint8_t   pred16x16 [4]
 
   uint8_t   pred8x8c [3]
 
   uint8_t   token [4][16][3][NUM_DCT_TOKENS - 1]
 
   uint8_t   mvc [2][19]
 
   uint8_t   scan [16]
 
prob [2]
 These are all of the updatable probabilities for binary decisions. More...
 
VP8Macroblockmacroblocks_base
 
int invisible
 
int update_last
 update VP8_FRAME_PREVIOUS with the current one More...
 
int update_golden
 VP8_FRAME_NONE if not updated, or which frame to copy if so. More...
 
int update_altref
 
int update_probabilities
 If this flag is not set, all the probability updates are discarded after this frame is decoded. More...
 
int num_coeff_partitions
 All coefficients are contained in separate arith coding contexts. More...
 
VPXRangeCoder coeff_partition [8]
 
int coeff_partition_size [8]
 
VideoDSPContext vdsp
 
VP8DSPContext vp8dsp
 
H264PredContext hpc
 
vp8_mc_func put_pixels_tab [3][3][3]
 
VP8Frame frames [5]
 
uint8_t colorspace
 0 is the only value allowed (meaning bt601) More...
 
uint8_t fullrange
 whether we can skip clamping in dsp functions More...
 
int num_jobs
 
int mb_layout
 This describes the macroblock memory layout. More...
 
int(* decode_mb_row_no_filter )(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr)
 
void(* filter_mb_row )(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr)
 
uint16_t inter_dc_pred [2][2]
 Interframe DC prediction (VP7) [0] VP8_FRAME_PREVIOUS [1] VP8_FRAME_GOLDEN. More...
 
uint8_t feature_enabled [4]
 Macroblock features (VP7) More...
 
uint8_t feature_present_prob [4]
 
uint8_t feature_index_prob [4][3]
 
uint8_t feature_value [4][4]
 

Detailed Description

Definition at line 161 of file vp8.h.

Field Documentation

◆ thread_data

VP8ThreadData* VP8Context::thread_data

Definition at line 162 of file vp8.h.

◆ avctx

AVCodecContext* VP8Context::avctx

Definition at line 163 of file vp8.h.

◆ pix_fmt

enum AVPixelFormat VP8Context::pix_fmt

Definition at line 164 of file vp8.h.

◆ actually_webp

int VP8Context::actually_webp

Definition at line 165 of file vp8.h.

◆ framep

VP8Frame* VP8Context::framep[4]

Definition at line 167 of file vp8.h.

◆ next_framep

VP8Frame* VP8Context::next_framep[4]

Definition at line 168 of file vp8.h.

◆ curframe

VP8Frame* VP8Context::curframe

Definition at line 169 of file vp8.h.

◆ prev_frame

VP8Frame* VP8Context::prev_frame

Definition at line 170 of file vp8.h.

◆ mb_width

uint16_t VP8Context::mb_width

Definition at line 172 of file vp8.h.

◆ mb_height

uint16_t VP8Context::mb_height

Definition at line 173 of file vp8.h.

◆ linesize

ptrdiff_t VP8Context::linesize

Definition at line 174 of file vp8.h.

◆ uvlinesize

ptrdiff_t VP8Context::uvlinesize

Definition at line 175 of file vp8.h.

◆ keyframe

uint8_t VP8Context::keyframe

Definition at line 177 of file vp8.h.

◆ deblock_filter

uint8_t VP8Context::deblock_filter

Definition at line 178 of file vp8.h.

◆ mbskip_enabled

uint8_t VP8Context::mbskip_enabled

Definition at line 179 of file vp8.h.

◆ profile

uint8_t VP8Context::profile

Definition at line 180 of file vp8.h.

◆ mv_bounds

VP8mvbounds VP8Context::mv_bounds

Definition at line 181 of file vp8.h.

◆ sign_bias

int8_t VP8Context::sign_bias[4]

one state [0, 1] per ref frame type

Definition at line 183 of file vp8.h.

◆ ref_count

int VP8Context::ref_count[3]

Definition at line 184 of file vp8.h.

◆ enabled

uint8_t VP8Context::enabled

whether each mb can have a different strength based on mode/ref

Definition at line 192 of file vp8.h.

◆ absolute_vals

uint8_t VP8Context::absolute_vals

Definition at line 193 of file vp8.h.

◆ update_map

uint8_t VP8Context::update_map

Definition at line 194 of file vp8.h.

◆ update_feature_data

uint8_t VP8Context::update_feature_data

Definition at line 195 of file vp8.h.

◆ base_quant

int8_t VP8Context::base_quant[4]

Definition at line 196 of file vp8.h.

◆ filter_level

int8_t VP8Context::filter_level[4]

base loop filter level

Definition at line 197 of file vp8.h.

◆ segmentation

struct { ... } VP8Context::segmentation

Base parameters for segmentation, i.e.

per-macroblock parameters. These must be kept unchanged even if segmentation is not used for a frame, since the values persist between interframes.

◆ simple

uint8_t VP8Context::simple

Definition at line 201 of file vp8.h.

◆ level

uint8_t VP8Context::level

Definition at line 202 of file vp8.h.

◆ sharpness

uint8_t VP8Context::sharpness

Definition at line 203 of file vp8.h.

◆ filter

struct { ... } VP8Context::filter

◆ macroblocks

VP8Macroblock* VP8Context::macroblocks

Definition at line 206 of file vp8.h.

◆ intra4x4_pred_mode_top

uint8_t* VP8Context::intra4x4_pred_mode_top

Definition at line 208 of file vp8.h.

◆ intra4x4_pred_mode_left

uint8_t VP8Context::intra4x4_pred_mode_left[4]

Definition at line 209 of file vp8.h.

◆ luma_qmul

int16_t VP8Context::luma_qmul[2]

Definition at line 218 of file vp8.h.

◆ luma_dc_qmul

int16_t VP8Context::luma_dc_qmul[2]

luma dc-only block quant

Definition at line 219 of file vp8.h.

◆ chroma_qmul

int16_t VP8Context::chroma_qmul[2]

Definition at line 220 of file vp8.h.

◆ qmat

struct { ... } VP8Context::qmat[4]

Macroblocks can have one of 4 different quants in a frame when segmentation is enabled.

If segmentation is disabled, only the first segment's values are used.

◆ yac_qi

int VP8Context::yac_qi

Definition at line 225 of file vp8.h.

◆ ydc_delta

int VP8Context::ydc_delta

Definition at line 226 of file vp8.h.

◆ y2dc_delta

int VP8Context::y2dc_delta

Definition at line 227 of file vp8.h.

◆ y2ac_delta

int VP8Context::y2ac_delta

Definition at line 228 of file vp8.h.

◆ uvdc_delta

int VP8Context::uvdc_delta

Definition at line 229 of file vp8.h.

◆ uvac_delta

int VP8Context::uvac_delta

Definition at line 230 of file vp8.h.

◆ quant

struct { ... } VP8Context::quant

◆ update

uint8_t VP8Context::update

Definition at line 235 of file vp8.h.

◆ mode

int8_t VP8Context::mode[VP8_MVMODE_SPLIT+1]

filter strength adjustment for the following macroblock modes: [0-3] - i16x16 (always zero) [4] - i4x4 [5] - zero mv [6] - inter modes except for zero or split mv [7] - split mv i16x16 modes never have any adjustment

Definition at line 246 of file vp8.h.

◆ ref

int8_t VP8Context::ref[4]

filter strength adjustment for macroblocks that reference: [0] - intra / VP8_FRAME_CURRENT [1] - VP8_FRAME_PREVIOUS [2] - VP8_FRAME_GOLDEN [3] - altref / VP8_FRAME_ALTREF

Definition at line 255 of file vp8.h.

◆ lf_delta

struct { ... } VP8Context::lf_delta

◆ top_border

uint8_t(* VP8Context::top_border)[16+8+8]

Definition at line 258 of file vp8.h.

◆ top_nnz

uint8_t(* VP8Context::top_nnz)[9]

Definition at line 259 of file vp8.h.

◆ c

VPXRangeCoder VP8Context::c

header context, includes mb modes and motion vectors

Definition at line 261 of file vp8.h.

◆ input

const uint8_t* VP8Context::input

Definition at line 269 of file vp8.h.

◆ range

uint32_t VP8Context::range

Definition at line 270 of file vp8.h.

◆ value

uint32_t VP8Context::value

Definition at line 271 of file vp8.h.

◆ bit_count

int VP8Context::bit_count

Definition at line 272 of file vp8.h.

◆ coder_state_at_header_end

struct { ... } VP8Context::coder_state_at_header_end

◆ header_partition_size

int VP8Context::header_partition_size

Definition at line 275 of file vp8.h.

◆ segmentid

uint8_t VP8Context::segmentid[3]

Definition at line 284 of file vp8.h.

◆ mbskip

uint8_t VP8Context::mbskip

Definition at line 285 of file vp8.h.

◆ intra

uint8_t VP8Context::intra

Definition at line 286 of file vp8.h.

◆ last

uint8_t VP8Context::last

Definition at line 287 of file vp8.h.

◆ golden

uint8_t VP8Context::golden

Definition at line 288 of file vp8.h.

◆ pred16x16

uint8_t VP8Context::pred16x16[4]

Definition at line 289 of file vp8.h.

◆ pred8x8c

uint8_t VP8Context::pred8x8c[3]

Definition at line 290 of file vp8.h.

◆ token

uint8_t VP8Context::token[4][16][3][NUM_DCT_TOKENS - 1]

Definition at line 291 of file vp8.h.

◆ mvc

uint8_t VP8Context::mvc[2][19]

Definition at line 292 of file vp8.h.

◆ scan

uint8_t VP8Context::scan[16]

Definition at line 293 of file vp8.h.

◆ prob

struct { ... } VP8Context::prob[2]

These are all of the updatable probabilities for binary decisions.

They are only implicitly reset on keyframes, making it quite likely for an interframe to desync if a prior frame's header was corrupt or missing outright!

◆ macroblocks_base

VP8Macroblock* VP8Context::macroblocks_base

Definition at line 296 of file vp8.h.

◆ invisible

int VP8Context::invisible

Definition at line 297 of file vp8.h.

◆ update_last

int VP8Context::update_last

update VP8_FRAME_PREVIOUS with the current one

Definition at line 298 of file vp8.h.

◆ update_golden

int VP8Context::update_golden

VP8_FRAME_NONE if not updated, or which frame to copy if so.

Definition at line 299 of file vp8.h.

◆ update_altref

int VP8Context::update_altref

Definition at line 300 of file vp8.h.

◆ update_probabilities

int VP8Context::update_probabilities

If this flag is not set, all the probability updates are discarded after this frame is decoded.

Definition at line 306 of file vp8.h.

◆ num_coeff_partitions

int VP8Context::num_coeff_partitions

All coefficients are contained in separate arith coding contexts.

There can be 1, 2, 4, or 8 of these after the header context.

Definition at line 312 of file vp8.h.

◆ coeff_partition

VPXRangeCoder VP8Context::coeff_partition[8]

Definition at line 313 of file vp8.h.

◆ coeff_partition_size

int VP8Context::coeff_partition_size[8]

Definition at line 314 of file vp8.h.

◆ vdsp

VideoDSPContext VP8Context::vdsp

Definition at line 315 of file vp8.h.

◆ vp8dsp

VP8DSPContext VP8Context::vp8dsp

Definition at line 316 of file vp8.h.

◆ hpc

H264PredContext VP8Context::hpc

Definition at line 317 of file vp8.h.

◆ put_pixels_tab

vp8_mc_func VP8Context::put_pixels_tab[3][3][3]

Definition at line 318 of file vp8.h.

◆ frames

VP8Frame VP8Context::frames[5]

Definition at line 319 of file vp8.h.

◆ colorspace

uint8_t VP8Context::colorspace

0 is the only value allowed (meaning bt601)

Definition at line 321 of file vp8.h.

◆ fullrange

uint8_t VP8Context::fullrange

whether we can skip clamping in dsp functions

Definition at line 322 of file vp8.h.

◆ num_jobs

int VP8Context::num_jobs

Definition at line 324 of file vp8.h.

◆ mb_layout

int VP8Context::mb_layout

This describes the macroblock memory layout.

0 -> Only width+height*2+1 macroblocks allocated (frame/single thread). 1 -> Macroblocks for entire frame allocated (sliced thread).

Definition at line 330 of file vp8.h.

◆ decode_mb_row_no_filter

int(* VP8Context::decode_mb_row_no_filter) (AVCodecContext *avctx, void *tdata, int jobnr, int threadnr)

Definition at line 332 of file vp8.h.

◆ filter_mb_row

void(* VP8Context::filter_mb_row) (AVCodecContext *avctx, void *tdata, int jobnr, int threadnr)

Definition at line 333 of file vp8.h.

◆ inter_dc_pred

uint16_t VP8Context::inter_dc_pred[2][2]

Interframe DC prediction (VP7) [0] VP8_FRAME_PREVIOUS [1] VP8_FRAME_GOLDEN.

Definition at line 340 of file vp8.h.

◆ feature_enabled

uint8_t VP8Context::feature_enabled[4]

Macroblock features (VP7)

Definition at line 345 of file vp8.h.

◆ feature_present_prob

uint8_t VP8Context::feature_present_prob[4]

Definition at line 346 of file vp8.h.

◆ feature_index_prob

uint8_t VP8Context::feature_index_prob[4][3]

Definition at line 347 of file vp8.h.

◆ feature_value

uint8_t VP8Context::feature_value[4][4]

Definition at line 348 of file vp8.h.


The documentation for this struct was generated from the following file: