On Fri May 16 07:16:15 2025 +0000, Conor McCarthy wrote:
Setting `output_plane_align = 1` has no effect on the issue. Calling `gst_video_info_align()` doesn't change the stride; it only sets the padding. The code line I mentioned above is the minimum stride we will get from `gst_video_info_from_caps()`, and I see no way to change the caps to deal with the issue either.
I added a video processor test in `mf/tests/transform.c`, but it's a draft at this point. The change in the first commit doesn't fix the failure in this test since the video processor is not fixed. Changing NV12 alignment to 3 in `mfplat/mediatype.c` `video_formats[]` fixes this, but that raises the question, should we fix this issue entirely in mfplat (including changing `MFCalculateImageSize()`) and handle any regressions from games making assumptions about alignment?