|
@@ -4943,6 +4943,11 @@ void tnsHSL2RGB(real *hsl, real *rgb) {
|
|
rgb[2] = hue2rgb(p, q, hsl[0] - 1./3);
|
|
rgb[2] = hue2rgb(p, q, hsl[0] - 1./3);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+void tnsYUV2RGB(real* yuv,real* rgb){
|
|
|
|
+ rgb[0] = (yuv[0] + 1.28033 * yuv[2]) * 0.2126;
|
|
|
|
+ rgb[1] = (yuv[0] - 0.21482 * yuv[1] - 0.38059 * yuv[2]) * 0.7152;
|
|
|
|
+ rgb[2] = (yuv[0] + 2.12798 * yuv[1]) * 0.0722;
|
|
|
|
+}
|
|
|
|
|
|
void tnsClearAll(){
|
|
void tnsClearAll(){
|
|
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT);
|
|
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT);
|