On Tue Apr 14 03:14:19 2026 +0000, Yuxuan Shui wrote:
... by calling `IMF2DBuffer::Lock`. ... Sorry, I meant `IMF2DBuffer::Lock2D` There really is no way to get pitch info from an `IMFMediaBuffer`, right? Am I missing something?
Slight correction (and additional context) to my comment: The video I used to test is a 162x120 video. If I set the output pixel format to YV12: - When locked with `IMFMediaBuffer_Lock`, the Y plane size is 176x128, clearly aligned up to 16 bytes. - When locked with `IMF2DBuffer2_Lock2DSize`, the returned pitch is 256 bytes and Y plane size is 256x128. So if `IMF2DBuffer` is not available, how does a game figure out what the real pitch of the buffer returned by `IMFMediaBuffer_Lock` is? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10654#note_136016