Commit a71abb71 authored by Jason Garrett-Glaser's avatar Jason Garrett-Glaser

VP8: shave a few clocks off check_intra_pred_mode

Originally committed as revision 24458 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a58ed9a2
...@@ -929,12 +929,11 @@ void xchg_mb_border(uint8_t *top_border, uint8_t *src_y, uint8_t *src_cb, uint8_ ...@@ -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) static int check_intra_pred_mode(int mode, int mb_x, int mb_y)
{ {
if (mode == DC_PRED8x8) { if (mode == DC_PRED8x8) {
if (!(mb_x|mb_y)) if (!mb_x) {
mode = DC_128_PRED8x8; mode = mb_y ? TOP_DC_PRED8x8 : DC_128_PRED8x8;
else if (!mb_y) } else if (!mb_y) {
mode = LEFT_DC_PRED8x8; mode = mb_x ? LEFT_DC_PRED8x8 : DC_128_PRED8x8;
else if (!mb_x) }
mode = TOP_DC_PRED8x8;
} }
return mode; return mode;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment