convert YUV422 to RGB24
问题 I tried to write an YUV422 to RGB24 converter, but the result of the converted data seems to be strange. The result is a violet touched greyscale Picture with some light green dots... Does anyone has an idea? inline void convert_yuv442_2_rgb24(const unsigned char* source, unsigned char* destination, unsigned long width, unsigned long height) { unsigned char data[3]; for(unsigned long i = 0, c = 0; i < width * height * 2; i += 2, c += 3) { // 16Bit YUV422 -> 24Bit YUV data[0] = source[i+0];