Mercurial > libavcodec.hg
changeset 12243:788445bf10c0 libavcodec
VP8: shave a few clocks off check_intra_pred_mode
author | darkshikari |
---|---|
date | Fri, 23 Jul 2010 10:24:38 +0000 |
parents | a2f6d8c61b9c |
children | 49c9a10309dd |
files | vp8.c |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/vp8.c Fri Jul 23 06:41:35 2010 +0000 +++ b/vp8.c Fri Jul 23 10:24:38 2010 +0000 @@ -929,12 +929,11 @@ 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; }