half size option for dcraw_emu

The "-h" option for dcraw_emu, which sets the half_size flag on imgdata.params, seems to only work for certain files or camera models -- is this by design? In particular, at https://github.com/LibRaw/LibRaw/blob/master/src/libraw_cxx.cpp#L3033-L3037, it looks like the half_size flag is only obeyed if filters is nonzero. I am not familiar enough with the code to understand when or how it gets set to something nonzero, so I'm hoping that someone here can help shed some light.

Forums: 

The -h option is only

The -h option is only suitable for bayer-patter files.

If the file is not bayer-mosaiced, or demosaiced by some intermediate software (linear DNG), -h is omitted

-- Alex Tutubalin @LibRaw LLC

Does dcraw_emu have any

Does dcraw_emu have any option to resize the output other than -h, with the caveats as you described?

No. Only full-size and half

No. Only full-size and half-size (for bayer). Or cropped.

-- Alex Tutubalin @LibRaw LLC