On 26/02/16 10:55, Laurent Pinchart wrote:
I don't quite understand what you mean. The checks apply to all planes.
My point is that if you add a check to ensure that the pitch is identical in all planes, the other tests on the pitch don't have to be repeated for every plane.
Hmm... The other tests also depend on the plane's bpp, so I'm not sure if any of those can be skipped.
But I agree, the loop with the checks does look somewhat complex, and there's probably room for improvement.
Tomi