LibRaw
Mon, 05/27/2019 - 17:37
Permalink
You can do this: in parseNikonMakernote find processing of tag == 0xbf3c6c20 and edit it like this:
if (WhiteBalanceAdj_active) { +#if 1 + union { + double dbl; + unsigned long long lng; + } un; + un.dbl = getreal(12); + if ((un.lng != 0x3FF0000000000000ULL) && + (un.lng != 0x000000000000F03FULL)) { + cam_mul[0] = un.dbl; + cam_mul[2] = getreal(12); + cam_mul[1] = cam_mul[3] = 1.0; + i -= 16; + } else i -= 8; +#else cam_mul[0] = getreal(12); cam_mul[2] = getreal(12); cam_mul[1] = cam_mul[3] = 1.0; i -= 16; +#endif
More information about text formats
You can do this:
You can do this:
in parseNikonMakernote find processing of tag == 0xbf3c6c20 and edit it like this:
if (WhiteBalanceAdj_active) {
+#if 1
+ union {
+ double dbl;
+ unsigned long long lng;
+ } un;
+ un.dbl = getreal(12);
+ if ((un.lng != 0x3FF0000000000000ULL) &&
+ (un.lng != 0x000000000000F03FULL)) {
+ cam_mul[0] = un.dbl;
+ cam_mul[2] = getreal(12);
+ cam_mul[1] = cam_mul[3] = 1.0;
+ i -= 16;
+ } else i -= 8;
+#else
cam_mul[0] = getreal(12);
cam_mul[2] = getreal(12);
cam_mul[1] = cam_mul[3] = 1.0;
i -= 16;
+#endif