From 231d0e96ef49887a5434fbc46c1524506b42d68e Mon Sep 17 00:00:00 2001 From: Anton Dukhovnikov Date: Sat, 11 Nov 2023 05:44:27 +1300 Subject: [PATCH] Fix issue with decompressing fp32 dwa files (#1591) There was an issue with the data type not passed to the DCT decompressor in the DWA decoder. That caused 32 bit DWA images to look squashed, as the decompressed 16 bit values were not getting expanded back to 32 bit. Signed-off-by: Anton Dukhovnikov --- src/lib/OpenEXRCore/internal_dwa_compressor.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/OpenEXRCore/internal_dwa_compressor.h b/src/lib/OpenEXRCore/internal_dwa_compressor.h index 03ad606695..219cc3f3e6 100644 --- a/src/lib/OpenEXRCore/internal_dwa_compressor.h +++ b/src/lib/OpenEXRCore/internal_dwa_compressor.h @@ -1047,6 +1047,7 @@ DwaCompressor_uncompress ( me->alloc_fn, me->free_fn, &(cd->_dctData), outBufferEnd); if (rv != EXR_ERR_SUCCESS) return rv; + cd->_dctData._type = chan->data_type; outBufferEnd += chan->width * chan->bytes_per_element; } }