On Tue May 23 20:53:11 2023 +0000, Nikolay Sivov wrote:
Right, maybe it's not. What I noticed was an unconditional 4 multiplier, which is ought to depend on format as well. Unless it never does in practice, for d3d9 formats we will ever get. Regarding using MFCopyImage(), it's worth noting that this change, for positive stride, will produce Height of memcpy() calls, comparing to one before it.
shouldn't we optimize CopyImage then? (when src/dst stride are equal and positive)