[FFmpeg-soc] [soc]: r3862 - dirac/libavcodec/dirac.h

conrad subversion at mplayerhq.hu
Thu Dec 4 22:10:31 CET 2008


Author: conrad
Date: Thu Dec  4 22:10:30 2008
New Revision: 3862

Log:
Simplify mean calculation in intra dc pred (simply different rounding than C)


Modified:
   dirac/libavcodec/dirac.h

Modified: dirac/libavcodec/dirac.h
==============================================================================
--- dirac/libavcodec/dirac.h	(original)
+++ dirac/libavcodec/dirac.h	Thu Dec  4 22:10:30 2008
@@ -382,9 +382,8 @@ int intra_dc_coeff_prediction(DiracConte
                 + coeff[-s->padded_width - 1]);
         if (pred > 0)
             pred = (pred + 1) / 3;
-        else /* XXX: For now just do what the reference
-                implementation does.  Check this. */
-            pred = -((-pred)+1)/3;
+        else
+            pred = (pred - 1) / 3;
     } else if (x > 0) {
         /* Just use the coefficient left of this one. */
         pred = coeff[-1];



More information about the FFmpeg-soc mailing list