About converting YUV(YV12) to RGB with GLSL for iOS
问题 I'm trying to convert YUV(YV12) to RGB with GLSL shader. As below step. read a raw YUV(YV12) data from image file filtering Y, Cb and Cr from the raw YUV(YV12) data mapping texture send Fragment Shader. but result image is not same as raw data. below image is raw data. screenshot of raw image link(Available for download) and below image is convert data. screenshot of convert image link(Available for download) and below is my source code. - (void) readYUVFile { ... NSData* fileData = [NSData