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 <[email protected]>
  • Loading branch information
peterhillman committed Feb 4, 2020
1 parent b9997d0 commit 7a52d40
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 7a52d40

Please sign in to comment.