April 6, 2026
8:09 p.m.
7/8: That should depend on the sign of the height.
YUV is always top-down and Windows actually rejects a negative sign for the output (see the test [here](https://gitlab.winehq.org/wine/wine/-/blob/master/dlls/iyuv_32/tests/iyuv_32...)). So the output stride is always negative (as it's always a bottom-up RGB image).
I think you need to do the same checks in DecompressBegin() as you do in DecompressQuery(). Maybe I'm wrong about that, though. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10549#note_135166