Skip to content

Commit

Permalink
test channels are DCT compressed before DWA decompression (#845)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
  • Loading branch information
peterhillman authored Oct 6, 2020
1 parent eec0dba commit 7abf780
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OpenEXR/IlmImf/ImfDwaCompressor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2681,6 +2681,10 @@ DwaCompressor::uncompress
int gChan = _cscSets[csc].idx[1];
int bChan = _cscSets[csc].idx[2];

if (_channelData[rChan].compression != LOSSY_DCT || _channelData[gChan].compression != LOSSY_DCT || _channelData[bChan].compression != LOSSY_DCT)
{
throw IEX_NAMESPACE::BaseExc("Bad DWA compression type detected");
}

LossyDctDecoderCsc decoder
(rowPtrs[rChan],
Expand Down

0 comments on commit 7abf780

Please sign in to comment.