How can you convert:
YV12 (FOOURCC code: 0x32315659)
to
NV21 (FOURCC code: 0x3132564E)
(YCrCb 4:2:0 Planar)
These are both common formats for Android video handling, but there is no example online converting directly between the two. You can go through RGB but I assume that will be too inefficient.
Ideally in C# or Java, but can convert code from whatever else...
The input is a byte[], and the width and height are known.
I have been trying to follow the Wikipedia Article but cannot get it to function cleanly.
For the bounty: a function taking the byte[] and outputting a byte[] in the other format.