April 20, 2026
9:30 p.m.
check divisibility?
And that was how I was figuring out the stride. Brief explanation of my observations: Video I used: yuv420p pixel format, size 162x120. I create source reader then set output type to YV12. I check the `MF_MT_DEFAULT_STRIDE` and the bitmap info stride, both are 162. I then `IMFMediaBuffer::Lock` it. The buffer size reported by `Lock` is `33792`. I calculated the Y plan size: `33792 / 3 * 2 = 22528`, and realized that it's not divisible by 162: `22528 = 162*139+10`. So I tried rounding up to 8-bytes `22528 / 168`, doesn't work. Then rounding up to 16-bytes `22528 / 176 = 128`. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10654#note_137171