22 #ifndef AVCODEC_CAVS_H 23 #define AVCODEC_CAVS_H 32 #define SLICE_MAX_START_CODE 0x000001af 33 #define EXT_START_CODE 0x000001b5 34 #define USER_START_CODE 0x000001b2 35 #define CAVS_START_CODE 0x000001b0 36 #define PIC_I_START_CODE 0x000001b3 37 #define PIC_PB_START_CODE 0x000001b6 47 #define ESCAPE_CODE 59 58 #define MV_BWD_OFFS 12 213 int pred_mode_Y[3*3];
226 uint8_t left_border_y[26], left_border_u[10], left_border_v[10];
This structure describes decoded (raw) audio or video data.
uint8_t * edge_emu_buffer
const cavs_vector ff_cavs_intra_mv
mark block as using intra prediction
const uint8_t ff_cavs_chroma_qp[64]
void ff_cavs_modify_mb_i(AVSContext *h, int *pred_mode_uv)
void ff_cavs_init_mb(AVSContext *h)
initialise predictors for motion vectors and intra prediction
int ff_cavs_init(AVCodecContext *avctx)
void ff_cavs_load_intra_pred_luma(AVSContext *h, uint8_t *top, uint8_t **left, int block)
uint8_t * top_border_y
intra prediction is done with un-deblocked samples they are saved here before deblocking the MB ...
#define DECLARE_ALIGNED(n, t, v)
Declare a variable that is aligned in memory.
bitstream reader API header.
int ff_cavs_next_mb(AVSContext *h)
save predictors for later macroblocks and increase macroblock address
void ff_cavs_load_intra_pred_chroma(AVSContext *h)
int ff_cavs_end(AVCodecContext *avctx)
AVSFrame cur
currently decoded frame
int ff_cavs_init_top_lines(AVSContext *h)
some predictions require data from the top-neighbouring macroblock.
void ff_cavs_mv(AVSContext *h, enum cavs_mv_loc nP, enum cavs_mv_loc nC, enum cavs_mv_pred mode, enum cavs_block size, int ref)
int skip_mode_flag
select between skip_count or one skip_flag per MB
int stream_revision
0 for samples from 2006, 1 for rm52j encoder
const uint8_t ff_cavs_partition_flags[30]
const cavs_vector ff_cavs_dir_mv
mark block as "no prediction from this direction" e.g.
static const int8_t mv[256][2]
void ff_cavs_inter(AVSContext *h, enum cavs_mb mb_type)
typedef void(RENAME(mix_any_func_type))
main external API structure.
int sym_factor
for scaling in symmetrical B block
void ff_cavs_filter(AVSContext *h, enum cavs_mb mb_type)
in-loop deblocking filter for a single macroblock
static int ref[MAX_W *MAX_W]
int flags
availability flags of neighbouring macroblocks
Core video DSP helper functions.
Decoded Picture Buffer (DPB).
static void set_mvs(cavs_vector *mv, enum cavs_block size)
H264ChromaContext h264chroma
mode
Use these values in ebur128_init (or'ed).
int ff_cavs_init_pic(AVSContext *h)