Skip to content

Commit

Permalink
test channels are DCT compressed before DWA decompression (AcademySof…
Browse files Browse the repository at this point in the history
…twareFoundation#845)

Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
  • Loading branch information
peterhillman committed Dec 6, 2020
1 parent 1327e06 commit e0af7a8
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 e0af7a8

Please sign in to comment.