libheif icon indicating copy to clipboard operation
libheif copied to clipboard

Cannot decode into >10 bit depth interleaved

Open dylan-brown-safe opened this issue 4 years ago • 1 comments

When calling heif_decode_image with heif_chroma_interleaved_RRGGBB_LE or similar, there is no decoding option for output bit depth. This means that when HeifContext::decode_image_user calls heif::convert_colorspace, it will pass in a bpp of 0 which is then set to 10 by the interleaved check in that function. This means we cannot request interleaved with a bit depth of 12 or 16.

dylan-brown-safe avatar Jun 03 '21 17:06 dylan-brown-safe

Do you have a sample image that reproduces this?

bradh avatar Dec 31 '23 21:12 bradh