22 #ifndef AVCODEC_CAVS_H
23 #define AVCODEC_CAVS_H
29 #define SLICE_MAX_START_CODE 0x000001af
30 #define EXT_START_CODE 0x000001b5
31 #define USER_START_CODE 0x000001b2
32 #define CAVS_START_CODE 0x000001b0
33 #define PIC_I_START_CODE 0x000001b3
34 #define PIC_PB_START_CODE 0x000001b6
44 #define ESCAPE_CODE 59
55 #define MV_BWD_OFFS 12
175 uint8_t *
cy, *cu, *cv;
199 int pred_mode_Y[3*3];
211 uint8_t left_border_y[26], left_border_u[10], left_border_v[10];
212 uint8_t intern_border_y[26];
215 void (*intra_pred_l[8])(uint8_t *d,uint8_t *top,uint8_t *left,
int stride);
216 void (*intra_pred_c[7])(uint8_t *d,uint8_t *top,uint8_t *left,
int stride);
244 static inline void modify_pred(
const int8_t *mod_table,
int *mode)
246 *mode = mod_table[*mode];
287 DCTELEM *dst,
int mul,
int shift,
int coeff_num) {
288 int round = 1 << (shift - 1);
293 while(--coeff_num >= 0){
294 pos += run_buf[coeff_num];
297 "position out of block bounds at pic %d MB(%d,%d)\n",
301 dst[scantab[pos]] = (level_buf[coeff_num]*mul +
round) >> shift;