Skip to content

Commit

Permalink
Fix issue with decompressing fp32 dwa files (#1591)
Browse files Browse the repository at this point in the history
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 Mar 23, 2024
1 parent 122be49 commit dff3e14
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 @@ -1122,6 +1122,7 @@ DwaCompressor_uncompress (
rv = DctCoderChannelData_push_row (&(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 dff3e14

Please sign in to comment.