You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check the bt.601 YUV to RGB formala is correct.
This is reference code used by libyuv
void YUVToRGBReference(int y, int u, int v, int* r, int* g, int* b) {
*r = RoundToByte((y - 16) * 1.164 + (v - 128) * 1.596);
*g = RoundToByte((y - 16) * 1.164 + (u - 128) * -0.391 + (v - 128) * -0.813);
*b = RoundToByte((y - 16) * 1.164 + (u - 128) * 2.018);
}
which matches this
http://stackoverflow.com/questions/11306802/yuv420p-to-rgb-image-conversion
Microsoft documents it with more accuracy
https://msdn.microsoft.com/en-us/library/windows/desktop/dd206750%28v=vs.85%29.a
spx
This also shows some of the conversions
http://en.wikipedia.org/wiki/YUV#Numerical_approximations
Original issue reported on code.google.com by [email protected] on 6 Feb 2015 at 11:04
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 6 Feb 2015 at 11:04The text was updated successfully, but these errors were encountered: