YUV to RGB compute BT709 coeff...
Posted: 26 Apr 2014 08:59
Hi,
I'am try to found how coeff was calculated on YUV to RGB shader on OpenGl.c module...and what is the last column factor ?
// [R/G/B][Y U V O] from TV range to full range XXX we could also do hue/brightness/constrast/gamma by simply changing the coefficients
const float matrix_bt709_tv2full[12] = {
1.164383561643836, 0.0000, 1.792741071428571, -0.972945075016308,
1.164383561643836, -0.21324861427373, -0.532909328559444, 0.301482665475862,
1.164383561643836, 2.112401785714286, 0.0000, -1.133402217873451 };
Thanks
I'am try to found how coeff was calculated on YUV to RGB shader on OpenGl.c module...and what is the last column factor ?
// [R/G/B][Y U V O] from TV range to full range XXX we could also do hue/brightness/constrast/gamma by simply changing the coefficients
const float matrix_bt709_tv2full[12] = {
1.164383561643836, 0.0000, 1.792741071428571, -0.972945075016308,
1.164383561643836, -0.21324861427373, -0.532909328559444, 0.301482665475862,
1.164383561643836, 2.112401785714286, 0.0000, -1.133402217873451 };
Thanks