TL DR: MSDN is correct
To test this (or at least make sure there is no bit level interlacing), you can use ffmpeg , which is a widely used video tool. I did the following experiment:
- Create a file containing some text (I took an example of Lorem Ipsum text)
- Tell
ffmpeg to read it as a small size I420 video frame - Tell
ffmpeg to convert it to NV12 format - Print
Here is an example command line for (2) and (3):
ffmpeg -s 96x4 -i example_i420.yuv -pix_fmt nv12 example_nv12.yuv
Here is what I got in the output:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tem incididunt ut labore et dolore magna aliqua. Announcement of the announcement minim veniam, quis nostrud Gym ullamco laboris nisi ut aliquip ex ea commodo. Duis aute irure dolor representation in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat irrelevant, s utnett uirn acduilppias cqiunig oeflfiitc, I as edde sdeor uenitu smmooldl itte mapnoirm iindc iedsitd ulnatb ourtu ml.a bLoorree me ti pdsoulmo rdeo laim lmo cUotn seenci
I highlighted color samples (U and V) in bold. Obviously, these are the same values (ASCII letters), only in scrambled order. If any bit-wise interlacing was done, I would get different values.
Therefore, the description on the WLC VLC (BTW it is not Wikipedia) is incorrect. Someone named "Edwardw" added an "illustration" representing the pixels here , and then changed it to a "bit" here . I hope someone changes this to be less misleading (a wiki requires registration, so I can't edit it).
source share