VP8: shave a few clocks off check_intra_pred_mode

Originally committed as revision 24458 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Jason Garrett-Glaser 2010-07-23 10:24:38 +00:00
parent a58ed9a2e7
commit a71abb714e

View File

@ -929,12 +929,11 @@ void xchg_mb_border(uint8_t *top_border, uint8_t *src_y, uint8_t *src_cb, uint8_
static int check_intra_pred_mode(int mode, int mb_x, int mb_y)
{
if (mode == DC_PRED8x8) {
if (!(mb_x|mb_y))
mode = DC_128_PRED8x8;
else if (!mb_y)
mode = LEFT_DC_PRED8x8;
else if (!mb_x)
mode = TOP_DC_PRED8x8;
if (!mb_x) {
mode = mb_y ? TOP_DC_PRED8x8 : DC_128_PRED8x8;
} else if (!mb_y) {
mode = mb_x ? LEFT_DC_PRED8x8 : DC_128_PRED8x8;
}
}
return mode;
}