On Mon Apr 20 21:30:57 2026 +0000, Yuxuan Shui wrote:
Oh right, I am dumb. I was only thinking about wine and forgot h264 would also be going through IMFTransform on Windows. I'll do what you suggested. OK I tried rawvideo in avi container. and additionally i think I must avoid doing pixel format conversion to avoid involving mf transforms? after doing that, i noticed that the `IMF2DBuffer` interface was gone from the samples. so likely that was mf transforms related.
now what I saw was quite odd, my input video is i420 161x120, the output i got is somehow 160x121. huh? the output buffer size is 29040, which is `160x121 * 3/2`. but `MF_MT_FRAME_SIZE` still reports 161x120. (not sure if this information is relevant, but i also tried using a raw rgb32 video with pixel format conversion to yuv, which i believe would be using transforms. this time I got buffer size 29160, which is `162x120 * 3/2`, which is exactly what's expected. and `IMF2DBuffer` interface again becomes available.) -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10654#note_138197