[PATCH v3 7/8] mflat/buffer: Support YV12, I420 and IYUV image formats.

Giovanni Mascellani gmascellani at codeweavers.com
Thu Jun 16 09:09:01 CDT 2022


Il 16/06/22 14:51, Nikolay Sivov ha scritto:
> We should figure out better tests for 2/8 first. According to msdn 
> description IYUV and YV12 are similar, but IMC2/4 are using different 
> strides.

My understanding is that they're using the same strides, they're just 
organizing UV data in a different way.

Specifically, IMC2 has a half-stride of U data, than a half-stride of V 
data, and it keeps interleaving. YV12 has all the V data in half-strides 
and then all the U data in half-strides. They occupy the same exact 
bytes, but with the U and V planes interleaved in the case of IMC2 and 
kept together in the case of YV12 (and then IMC4 and IYUV are just the 
same, except swapping U and V).


More information about the wine-devel mailing list