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

marco subversion at mplayerhq.hu
Mon Sep 10 17:55:51 CEST 2007


Author: marco
Date: Mon Sep 10 17:55:51 2007
New Revision: 1332

Log:
disabled the code to check for a zero codeblock

Modified:
   dirac/libavcodec/dirac.c

Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c	(original)
+++ dirac/libavcodec/dirac.c	Mon Sep 10 17:55:51 2007
@@ -3152,6 +3152,7 @@ static void encode_codeblock(DiracContex
     bottom = (subband_height(s, level) * (ypos + 1)) / s->codeblocksv[level];
 
     if (!blockcnt_one) {
+#if 0
         int zero = 1;
         for (y = top; y < bottom; y++) {
             for (x = left; x < right; x++) {
@@ -3161,13 +3162,20 @@ static void encode_codeblock(DiracContex
                 }
             }
         }
-
+#endif
         /* XXX: Check if this is a zero codeblock.  For now just
            encode like it isn't.  */
+        if (!blockcnt_one) {
+#if 0
         dirac_arith_put_bit(&s->arith, ARITH_CONTEXT_ZERO_BLOCK, zero);
+#endif
+        dirac_arith_put_bit(&s->arith, ARITH_CONTEXT_ZERO_BLOCK, 0);
+        }
 
+#if 0
         if (zero)
             return;
+#endif
     }
 
     for (y = top; y < bottom; y++)



More information about the FFmpeg-soc mailing list