Hi,
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).
Giovanni.