I need to create a yuv image in NV21 format for testing purpose.
From this posting, Displaying YUV Image in Android, I see it does:
YuvImage yuvImage = new YuvImage(data, PictureFormat.NV21, width, height, null);
How can I get 'data'? to passing in yuvImage? Can I load it from a resource file, what should be the resource file format?