Author: post
Date: 2012-12-09 14:58:03 +0100 (Sun, 09 Dec 2012)
New Revision: 502
Modified:
RawSpeed/DngDecoder.cpp
Log:
Fix image pitch in uncompressed DNGs with more than 1 component/pixel. Thanks
to Alex Tutubalin
Modified: RawSpeed/DngDecoder.cpp
===================================================================
--- RawSpeed/DngDecoder.cpp 2012-12-09 10:19:39 UTC (rev 501)
+++ RawSpeed/DngDecoder.cpp 2012-12-09 13:58:03 UTC (rev 502)
@@ -216,7 +216,7 @@
if (bps != 8 && bps != 16)
big_endian = true;
try {
- readUncompressedRaw(in, size, pos, width*bps / 8, bps, big_endian
? BitOrder_Jpeg : BitOrder_Plain);
+ readUncompressedRaw(in, size, pos, mRaw->getCpp()* width * bps /
8, bps, big_endian ? BitOrder_Jpeg : BitOrder_Plain);
} catch(IOException &ex) {
if (i > 0)
mRaw->setError(ex.what());
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit