[FFmpeg-cvslog] r24458 - trunk/libavcodec/vp8.c
darkshikari
subversion
Fri Jul 23 12:24:38 CEST 2010
Author: darkshikari
Date: Fri Jul 23 12:24:38 2010
New Revision: 24458
Log:
VP8: shave a few clocks off check_intra_pred_mode
Modified:
trunk/libavcodec/vp8.c
Modified: trunk/libavcodec/vp8.c
==============================================================================
--- trunk/libavcodec/vp8.c Fri Jul 23 12:09:46 2010 (r24457)
+++ trunk/libavcodec/vp8.c Fri Jul 23 12:24:38 2010 (r24458)
@@ -929,12 +929,11 @@ void xchg_mb_border(uint8_t *top_border,
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;
}
More information about the ffmpeg-cvslog
mailing list