[FFmpeg-soc] [soc]: r720 - dirac/libavcodec/dirac.c

marco subversion at mplayerhq.hu
Sun Aug 12 12:54:27 CEST 2007


Author: marco
Date: Sun Aug 12 12:54:27 2007
New Revision: 720

Log:
measure the cycles for motion compensation

Modified:
   dirac/libavcodec/dirac.c

Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c	(original)
+++ dirac/libavcodec/dirac.c	Sun Aug 12 12:54:27 2007
@@ -2309,12 +2309,16 @@ static int dirac_motion_compensation(AVC
        because for every blocks all the parameters are the same.  For
        now this code just copies the behavior as described in the
        specification.  */
+    {
+        START_TIMER;
     for (y = 0; y < height; y++)
         for (x = 0; x < width; x++) {
             coeffs[y * s->padded_width + x] += motion_comp(avctx, x, y,
                                                            ref1, ref2,
                                                            coeffs, comp);
         }
+    STOP_TIMER("motioncomp");
+    }
 
     av_free(s->ref1data);
     av_free(s->ref2data);



More information about the FFmpeg-soc mailing list