Author: post
Date: 2009-08-27 08:29:27 +0200 (Thu, 27 Aug 2009)
New Revision: 122
Modified:
RawSpeed/ArwDecoder.cpp
Log:
- Fixed curve mistake. Still not sure if it should be applied.
Modified: RawSpeed/ArwDecoder.cpp
===================================================================
--- RawSpeed/ArwDecoder.cpp 2009-08-26 20:53:22 UTC (rev 121)
+++ RawSpeed/ArwDecoder.cpp 2009-08-27 06:29:27 UTC (rev 122)
@@ -163,11 +163,11 @@
for (guint y=0; y < h; y++) {
gushort* dest = (gushort*)&data[y*pitch];
for(guint x =0 ; x < w; x+=2) {
- guint g1 = curve[*in++];
- guint g2 = curve[*in++];
- dest[x] = g1 | ((g2&0xf)<<8);
- guint g3 = curve[*in++];
- dest[x+1] = (g2>>2) | (g3<<4);
+ guint g1 = *in++;
+ guint g2 = *in++;
+ dest[x] = curve[g1 | ((g2&0xf)<<8)];
+ guint g3 = *in++;
+ dest[x+1] = curve[(g2>>2) | (g3<<4)];
}
}
return;
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit