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 <[email protected]>
  • Loading branch information
antond-weta authored Nov 10, 2023
1 parent fca936a commit 231d0e9
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 231d0e9

Please sign in to comment.