On Thu May 15 04:53:07 2025 +0000, Conor McCarthy wrote:
The video is 650x850, and while `MFCalculateImageSize()` returns `828750`, `gst_video_info_from_caps()` fills `src_video_info` in `wg_transform_read_data()` with a size of `831300`. The caps object has no paddings, but the gstreamer source has in `video-info.c` for NV12:
info->stride[0] = GST_ROUND_UP_4 (width);
Okay, it would be nice to add a test with these sizes to mfplat `image_size_tests` tests.
Then we should return the same kind of buffers as native, so it would be better to fix GStreamer alignment (by requesting a smaller alignment, if possible, similar to how we request a larger alignment with H264) rather than the other way around.
Does this work if you set `output_plane_align = 1` with non-H264 decoders?
A test in `mf/tests/transform.c` with such size would be nice too.