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

michael subversion
Thu Feb 25 13:51:32 CET 2010


Author: michael
Date: Thu Feb 25 13:51:32 2010
New Revision: 22051

Log:
unroll tiny and trivial loop. Same speed but clearer.

Modified:
   trunk/libavcodec/h264.h

Modified: trunk/libavcodec/h264.h
==============================================================================
--- trunk/libavcodec/h264.h	Thu Feb 25 10:10:37 2010	(r22050)
+++ trunk/libavcodec/h264.h	Thu Feb 25 13:51:32 2010	(r22051)
@@ -1430,9 +1430,9 @@ static inline void write_back_motion(H26
                 AV_ZERO128(mvd_dst);
             else{
             AV_COPY64(mvd_dst, mvd_src + 8*3);
-            for(y=0; y<3; y++){
-                AV_COPY16(mvd_dst + 3 + 3 - y, mvd_src + 3 + 8*y);
-            }
+                AV_COPY16(mvd_dst + 3 + 3, mvd_src + 3 + 8*0);
+                AV_COPY16(mvd_dst + 3 + 2, mvd_src + 3 + 8*1);
+                AV_COPY16(mvd_dst + 3 + 1, mvd_src + 3 + 8*2);
             }
         }
 



More information about the ffmpeg-cvslog mailing list