FFmpeg
Data Structures | Macros | Functions | Variables
vpx_rac.h File Reference
#include <stdint.h>
#include "config.h"
#include "libavutil/attributes.h"
#include "bytestream.h"

Go to the source code of this file.

Data Structures

struct  VPXRangeCoder
 

Macros

#define vpx_rac_get_prob   vpx_rac_get_prob
 

Functions

int ff_vpx_init_range_decoder (VPXRangeCoder *c, const uint8_t *buf, int buf_size)
 
static av_always_inline int vpx_rac_is_end (VPXRangeCoder *c)
 returns 1 if the end of the stream has been reached, 0 otherwise. More...
 
static av_always_inline unsigned int vpx_rac_renorm (VPXRangeCoder *c)
 
static av_always_inline int vpx_rac_get_prob (VPXRangeCoder *c, uint8_t prob)
 
static av_always_inline int vpx_rac_get_prob_branchy (VPXRangeCoder *c, int prob)
 
static av_always_inline int vpx_rac_get (VPXRangeCoder *c)
 

Variables

const uint8_t ff_vpx_norm_shift [256]
 

Detailed Description

Common VP5-VP9 range decoder stuff

Definition in file vpx_rac.h.

Macro Definition Documentation

◆ vpx_rac_get_prob

#define vpx_rac_get_prob   vpx_rac_get_prob

Definition at line 82 of file vpx_rac.h.

Function Documentation

◆ ff_vpx_init_range_decoder()

int ff_vpx_init_range_decoder ( VPXRangeCoder c,
const uint8_t *  buf,
int  buf_size 
)

◆ vpx_rac_is_end()

static av_always_inline int vpx_rac_is_end ( VPXRangeCoder c)
static

returns 1 if the end of the stream has been reached, 0 otherwise.

Definition at line 51 of file vpx_rac.h.

Referenced by decode_mb_row_no_filter(), decode_tiles(), vp5_parse_coeff(), vp6_parse_coeff(), vp78_decode_mv_mb_modes(), and vp7_decode_frame_header().

◆ vpx_rac_renorm()

static av_always_inline unsigned int vpx_rac_renorm ( VPXRangeCoder c)
static

◆ vpx_rac_get_prob()

static av_always_inline int vpx_rac_get_prob ( VPXRangeCoder c,
uint8_t  prob 
)
static

Definition at line 83 of file vpx_rac.h.

◆ vpx_rac_get_prob_branchy()

static av_always_inline int vpx_rac_get_prob_branchy ( VPXRangeCoder c,
int  prob 
)
static

◆ vpx_rac_get()

static av_always_inline int vpx_rac_get ( VPXRangeCoder c)
static

Variable Documentation

◆ ff_vpx_norm_shift

const uint8_t ff_vpx_norm_shift[256]

Definition at line 27 of file vpx_rac.c.

Referenced by vpx_rac_renorm().