LibRaw/src/utils/open.cpp | 4 LibRaw/src/utils/open.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LibRaw/src/utils/open.cpp b/LibRaw/src/utils/open.cpp index 79e99ae..a4798d2 100644 --- a/LibRaw/src/utils/open.cpp +++ b/LibRaw/src/utils/open.cpp @@ -593,6 +593,7 @@ int LibRaw::open_datastream(LibRaw_abstract_datastream *stream) else parse_fuji_compressed_header(); } +#if !defined(USE_LIBRAW19_MARGINS) if (imgdata.idata.filters == 9) { // Adjust top/left margins for X-Trans @@ -614,7 +615,9 @@ int LibRaw::open_datastream(LibRaw_abstract_datastream *stream) imgdata.idata.xtrans[c1][c2] = imgdata.idata.xtrans_abs[c1][c2]; } } +#endif } +#if !defined(USE_LIBRAW19_MARGINS) if (!libraw_internal_data.internal_output_params.fuji_width && imgdata.idata.filters >= 1000 && ((imgdata.sizes.top_margin % 2) || (imgdata.sizes.left_margin % 2))) @@ -638,6 +641,7 @@ int LibRaw::open_datastream(LibRaw_abstract_datastream *stream) filt |= FC((c >> 1) + (crop[1]), (c & 1) + (crop[0])) << c * 2; imgdata.idata.filters = filt; } +#endif #ifdef USE_DNGSDK if ( David Partridge reply