Skip to content

Commit

Permalink
bypass SSE optimization when skipping subsampled channels
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
  • Loading branch information
peterhillman committed Jan 20, 2020
1 parent 2c5c1ae commit 8b97a01
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions OpenEXR/IlmImf/ImfScanLineInputFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1432,6 +1432,14 @@ ScanLineInputFile::setFrameBuffer (const FrameBuffer &frameBuffer)
// not possible.
break;
}

//
// optimization mode cannot currently skip subsampled channels
//
if (i.channel().xSampling!=1 || i.channel().ySampling!=1)
{
optimizationPossible = false;
}
++i;
}

Expand Down

0 comments on commit 8b97a01

Please sign in to comment.