[FFmpeg-cvslog] r16304 - trunk/libavcodec/h264.c

michael subversion
Wed Dec 24 04:23:38 CET 2008


Author: michael
Date: Wed Dec 24 04:23:38 2008
New Revision: 16304

Log:
Optimize pred_pskip_motion()
7 cpu cycles faster on pentium dual.

Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	Wed Dec 24 03:20:07 2008	(r16303)
+++ trunk/libavcodec/h264.c	Wed Dec 24 04:23:38 2008	(r16304)
@@ -873,8 +873,8 @@ static inline void pred_pskip_motion(H26
     tprintf(h->s.avctx, "pred_pskip: (%d) (%d) at %2d %2d\n", top_ref, left_ref, h->s.mb_x, h->s.mb_y);
 
     if(top_ref == PART_NOT_AVAILABLE || left_ref == PART_NOT_AVAILABLE
-       || (top_ref == 0  && *(uint32_t*)h->mv_cache[0][ scan8[0] - 8 ] == 0)
-       || (left_ref == 0 && *(uint32_t*)h->mv_cache[0][ scan8[0] - 1 ] == 0)){
+       || !( top_ref | *(uint32_t*)h->mv_cache[0][ scan8[0] - 8 ])
+       || !(left_ref | *(uint32_t*)h->mv_cache[0][ scan8[0] - 1 ])){
 
         *mx = *my = 0;
         return;




More information about the ffmpeg-cvslog mailing list