[FFmpeg-cvslog] r21306 - trunk/libavcodec/h264.h

michael subversion
Tue Jan 19 00:31:14 CET 2010


Author: michael
Date: Tue Jan 19 00:31:14 2010
New Revision: 21306

Log:
Optimize top non_zero_count_cache init.

Modified:
   trunk/libavcodec/h264.h

Modified: trunk/libavcodec/h264.h
==============================================================================
--- trunk/libavcodec/h264.h	Tue Jan 19 00:30:21 2010	(r21305)
+++ trunk/libavcodec/h264.h	Tue Jan 19 00:31:14 2010	(r21306)
@@ -970,16 +970,13 @@ static av_always_inline int fill_caches(
         if(for_deblock){
             *(uint32_t*)&h->non_zero_count_cache[4+8*0]= 0;
         }else{
-        h->non_zero_count_cache[4+8*0]=
-        h->non_zero_count_cache[5+8*0]=
-        h->non_zero_count_cache[6+8*0]=
-        h->non_zero_count_cache[7+8*0]=
 
         h->non_zero_count_cache[1+8*0]=
         h->non_zero_count_cache[2+8*0]=
 
         h->non_zero_count_cache[1+8*3]=
-        h->non_zero_count_cache[2+8*3]= CABAC && !IS_INTRA(mb_type) ? 0 : 64;
+        h->non_zero_count_cache[2+8*3]=
+        *(uint32_t*)&h->non_zero_count_cache[4+8*0]= CABAC && !IS_INTRA(mb_type) ? 0 : 0x40404040;
         }
 
     }



More information about the ffmpeg-cvslog mailing list