jcelaya / hdrmerge

HDR exposure merging
http://jcelaya.github.io/hdrmerge/
Other
362 stars 78 forks source link

LIBRAW_DECODER_FLATFIELD no longer supported #108

Closed AshwinParanjape closed 6 years ago

AshwinParanjape commented 7 years ago

The most recent version of LibRaw (0.17.0) no longer defines LIBRAW_DECODER_FLATFIELD and hence no longer compiles. I fixed it temporarily with

rawProcessor.get_decoder_info(&decoder_info);`
+#ifdef LIBRAW_DECODER_FLATFIELD
if(!decoder_info.decoder_flags & LIBRAW_DECODER_FLATFIELD) {
Log::msg(Log::DEBUG, "LibRaw decoder is not flatfield (", ios::hex, decoder_info.decoder_flags, ").");
} else
+#endif
if (d.idata.filters <= 1000 && d.idata.filters != 9) {
Log::msg(Log::DEBUG, "Unsupported filter array (", d.idata.filters, ").");
Beep6581 commented 6 years ago

Fixed in 413bccd