Created
August 16, 2014 09:19
-
-
Save LibRaw/d61c11d9cb5aff0b78bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/RawSpeed/DngDecoder.cpp b/RawSpeed/DngDecoder.cpp | |
index 139fa25..b11265d 100644 | |
--- a/RawSpeed/DngDecoder.cpp | |
+++ b/RawSpeed/DngDecoder.cpp | |
@@ -410,9 +410,10 @@ RawImage DngDecoder::decodeRawInternal() { | |
else | |
table[i] = intable[len-1]; | |
} | |
- for (int y = 0; y < mRaw->dim.y; y++) { | |
+ iPoint2D udim = mRaw->getUncroppedDim(); | |
+ for (int y = 0; y < udim.y; y++) { | |
- uint32 cw = mRaw->dim.x * mRaw->getCpp(); | |
- ushort16* pixels = (ushort16*)mRaw->getData(0, y); | |
+ uint32 cw = udim.x * mRaw->getCpp(); | |
+ ushort16* pixels = (ushort16*)mRaw->getDataUncropped(0, y); | |
for (uint32 x = 0; x < cw; x++) { | |
pixels[x] = table[pixels[x]]; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment