I have to deal with images in the format given above. However, I have found conflicting information about it.
According to another stack overflow answer the UV values follow eachother, while according to Wikipedia the V values lie AFTER the U values in memory. Which one is correct, or if they both are, what is the difference?
Could it be a NV12 vs NV21 problem? However, this site states that they should simply be switched.
Maybe it has something to do with the image being planar, semi-planar or not planar, though I have no idea what these terms mean.
Can someone clarify this a bit?
For NV21, the order is V/U. The Wikipedia description of NV21 is correct.
The diagram in the StackOverflow response you cited has an error. A couple people in the comments pointed this out.