Author: post
Date: 2009-12-20 12:35:38 +0100 (Sun, 20 Dec 2009)
New Revision: 178
Modified:
RawSpeed/DngDecoder.cpp
Log:
DNG decoder: Shift CFA if cropping uneven number of pixels. Fixes Leica X1 DNG.
Modified: RawSpeed/DngDecoder.cpp
===================================================================
--- RawSpeed/DngDecoder.cpp 2009-12-20 10:52:05 UTC (rev 177)
+++ RawSpeed/DngDecoder.cpp 2009-12-20 11:35:38 UTC (rev 178)
@@ -302,6 +302,10 @@
new_size = iPoint2D(sz[0], sz[1]);
}
mRaw->subFrame(top_left, new_size);
+ if (top_left.x %2 == 1)
+ mRaw->cfa.shiftLeft();
+ if (top_left.y %2 == 1)
+ mRaw->cfa.shiftDown();
}
#endif
// Linearization
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit