From 7a52d40ae23c148f27116cb1f6e897b9143b372c Mon Sep 17 00:00:00 2001 From: Peter Hillman <peterh@wetafx.co.nz> Date: Tue, 21 Jan 2020 12:04:13 +1300 Subject: [PATCH 07/23] bypass SSE optimization when skipping subsampled channels Signed-off-by: Peter Hillman <peterh@wetafx.co.nz> --- OpenEXR/IlmImf/ImfScanLineInputFile.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/IlmImf/ImfScanLineInputFile.cpp +++ b/IlmImf/ImfScanLineInputFile.cpp @@ -1419,6 +1419,14 @@ ScanLineInputFile::setFrameBuffer (const offset+=2; break; } + + // + // optimization mode cannot currently skip subsampled channels + // + if (i.channel().xSampling!=1 || i.channel().ySampling!=1) + { + optimizationPossible = false; + } ++i; }