summaryrefslogtreecommitdiff
path: root/libavcodec/cavs.h
diff options
context:
space:
mode:
authorStefan Gehrer <stefan.gehrer@gmx.de>2009-02-10 22:38:02 +0000
committerStefan Gehrer <stefan.gehrer@gmx.de>2009-02-10 22:38:02 +0000
commit6847ab437516fd6f845c4672a789c0c3e219bd22 (patch)
tree43f2ed0a31a1c754a807c3b161270b2b8cbc32ec /libavcodec/cavs.h
parentb9fce052053b230745c7a4dd097e93b03f94af71 (diff)
introduce a macroblock index to avoid a few x*width+y calculations
Originally committed as revision 17138 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cavs.h')
-rw-r--r--libavcodec/cavs.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/cavs.h b/libavcodec/cavs.h
index 8d07aed0ac..5ae664dd33 100644
--- a/libavcodec/cavs.h
+++ b/libavcodec/cavs.h
@@ -166,7 +166,7 @@ typedef struct {
int loop_filter_disable;
int alpha_offset, beta_offset;
int ref_flag;
- int mbx, mby; ///< macroblock coordinates
+ int mbx, mby, mbidx; ///< macroblock coordinates
int flags; ///< availability flags of neighbouring macroblocks
int stc; ///< last start code
uint8_t *cy, *cu, *cv; ///< current MB sample pointers
@@ -212,7 +212,6 @@ typedef struct {
void (*intra_pred_l[8])(uint8_t *d,uint8_t *top,uint8_t *left,int stride);
void (*intra_pred_c[7])(uint8_t *d,uint8_t *top,uint8_t *left,int stride);
uint8_t *col_type_base;
- uint8_t *col_type;
/* scaling factors for MV prediction */
int sym_factor; ///< for scaling in symmetrical B block
@@ -272,7 +271,7 @@ static inline void set_mv_intra(AVSContext *h) {
h->mv[MV_BWD_X0] = ff_cavs_intra_mv;
set_mvs(&h->mv[MV_BWD_X0], BLK_16X16);
if(h->pic_type != FF_B_TYPE)
- *h->col_type = I_8X8;
+ h->col_type_base[h->mbidx] = I_8X8;
}
static inline int dequant(AVSContext *h, DCTELEM *level_buf, uint8_t *run_buf,