Author: post
Date: 2010-11-22 19:41:14 +0100 (Mon, 22 Nov 2010)
New Revision: 302

Modified:
   RawSpeed/LJpegPlain.cpp
Log:
Remove right side skip in subsampled decoding - didn't work properly anyway.

Modified: RawSpeed/LJpegPlain.cpp
===================================================================
--- RawSpeed/LJpegPlain.cpp     2010-11-22 18:19:20 UTC (rev 301)
+++ RawSpeed/LJpegPlain.cpp     2010-11-22 18:41:14 UTC (rev 302)
@@ -174,7 +174,7 @@
   offset[slices] = offset[slices-1];        // Extra offset to avoid branch in 
loop.
 
   if (skipX)
-    slice_width[slicesW.size()-1] -= skipX;
+    ThrowRDE("LJpegPlain::decodeScanLeftGeneric: Cannot skip right border in 
subsampled mode");
 
   // Predictors for components
   int p[4];
@@ -243,12 +243,6 @@
       // Check if we are still within the file.
       bits->checkPos();
     }
-    if (skipX) {
-      for (uint32 i = 0; i < skipX; i += maxSuperH) {
-        for (uint32 j = 0; j < pixGroup; i++)
-          HuffDecode(dctbl[i]);
-      }
-    }
     // Update predictors
     for (uint32 i = 0; i < comps; i++) {
       p[i] = predict[i];


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to