On Tue May 23 18:52:28 2023 +0000, Rémi Bernon wrote:
Sure, but I was thinking that stride isn't necessarily the same as the size to copy on each pixel line.
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.