Hello,
There is a need to convert NV12 / NV21 to D3D supported surface format like D3DFMT_R8G8B8.
NV21 is same as NV12, except that Cb and Cr samples are swapped. All you need to do, is to reverse the order.
More references: "Recommended 8-Bit YUV Formats for Video Rendering", "Color Converter DSP" and "DirectXMath Library color functions ( XMColorYUVToRGB )"
Thank you!