Skip to content

Commit

Permalink
Fix issue with decompressing fp32 dwa files (AcademySoftwareFoundatio…
Browse files Browse the repository at this point in the history
…n#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 <antond@wetafx.co.nz>
  • Loading branch information
antond-weta authored and cary-ilm committed Feb 12, 2024
1 parent 8c76e19 commit 2d5032b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/OpenEXRCore/internal_dwa_compressor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 2d5032b

Please sign in to comment.