We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db217f2 commit 11cad77Copy full SHA for 11cad77
src/lib/OpenEXR/ImfCompositeDeepScanLine.cpp
@@ -238,6 +238,20 @@ CompositeDeepScanLine::setFrameBuffer(const FrameBuffer& fr)
238
239
for(FrameBuffer::ConstIterator q=fr.begin();q!=fr.end();q++)
240
{
241
+
242
+ //
243
+ // Frame buffer must have xSampling and ySampling set to 1
244
+ // (Sampling in FrameBuffers must match sampling in file,
245
+ // and Header::sanityCheck enforces sampling in deep files is 1)
246
247
248
+ if(q.slice().xSampling!=1 || q.slice().ySampling!=1)
249
+ {
250
+ THROW (IEX_NAMESPACE::ArgExc, "X and/or y subsampling factors "
251
+ "of \"" << q.name() << "\" channel in framebuffer "
252
+ "are not 1");
253
+ }
254
255
string name(q.name());
256
if(name=="ZBack")
257
0 commit comments