Author: post
Date: 2013-09-20 22:11:26 +0200 (Fri, 20 Sep 2013)
New Revision: 584
Modified:
RawSpeed/DngDecoder.cpp
Log:
DNG: Support uncorrected values.
Modified: RawSpeed/DngDecoder.cpp
===================================================================
--- RawSpeed/DngDecoder.cpp 2013-09-20 20:09:56 UTC (rev 583)
+++ RawSpeed/DngDecoder.cpp 2013-09-20 20:11:26 UTC (rev 584)
@@ -397,7 +397,7 @@
}
// Linearization
- if (raw->hasEntry(LINEARIZATIONTABLE)) {
+ if (raw->hasEntry(LINEARIZATIONTABLE) && !uncorrectedRawValues) {
const ushort16* intable =
raw->getEntry(LINEARIZATIONTABLE)->getShortArray();
uint32 len = raw->getEntry(LINEARIZATIONTABLE)->count;
ushort16 table[65536];
@@ -428,7 +428,7 @@
setBlack(raw);
// Apply opcodes to lossy DNG
- if (compression == 0x884c) {
+ if (compression == 0x884c && !uncorrectedRawValues) {
if (raw->hasEntry(OPCODELIST2))
{
// We must apply black/white scaling
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit