[FFmpeg-soc] [soc]: r4710 - jpeg2000/j2kdec.c

jai_menon subversion at mplayerhq.hu
Mon Jul 13 15:18:35 CEST 2009


Author: jai_menon
Date: Mon Jul 13 15:18:34 2009
New Revision: 4710

Log:
cosmetics : reindent after last commit.

Modified:
   jpeg2000/j2kdec.c

Modified: jpeg2000/j2kdec.c
==============================================================================
--- jpeg2000/j2kdec.c	Mon Jul 13 13:29:39 2009	(r4709)
+++ jpeg2000/j2kdec.c	Mon Jul 13 15:18:34 2009	(r4710)
@@ -797,24 +797,24 @@ static int decode_tile(J2kDecoderContext
         FFSWAP(int *, src[0], src[2]);
 
     if (s->precision <= 8) {
-    for (; y < tile->comp[0].coord[1][1] - s->image_offset_y; y++){
-        uint8_t *dst;
+        for (; y < tile->comp[0].coord[1][1] - s->image_offset_y; y++){
+            uint8_t *dst;
 
-        x = tile->comp[0].coord[0][0] - s->image_offset_x;
-        dst = line + x * s->ncomponents;
+            x = tile->comp[0].coord[0][0] - s->image_offset_x;
+            dst = line + x * s->ncomponents;
 
-        for (; x < tile->comp[0].coord[0][1] - s->image_offset_x; x++)
-            for (compno = 0; compno < s->ncomponents; compno++){
-                *src[compno] += 1 << (s->cbps[compno]-1);
-                if (*src[compno] < 0)
-                    *src[compno] = 0;
-                else if (*src[compno] >= (1 << s->cbps[compno]))
-                    *src[compno] = (1 << s->cbps[compno]) - 1;
-                *dst++ = *src[compno]++;
-            }
+            for (; x < tile->comp[0].coord[0][1] - s->image_offset_x; x++)
+                for (compno = 0; compno < s->ncomponents; compno++){
+                    *src[compno] += 1 << (s->cbps[compno]-1);
+                    if (*src[compno] < 0)
+                        *src[compno] = 0;
+                    else if (*src[compno] >= (1 << s->cbps[compno]))
+                        *src[compno] = (1 << s->cbps[compno]) - 1;
+                    *dst++ = *src[compno]++;
+                }
 
-        line += s->picture.linesize[0];
-    }
+            line += s->picture.linesize[0];
+        }
     } else {
         for (; y < tile->comp[0].coord[1][1] - s->image_offset_y; y++) {
             uint16_t *dst;


More information about the FFmpeg-soc mailing list