crblib/imutil.c
// warning! the float version is *not* the same as the int version!
warning. the float version is *not* the same as the int version!
warning . the float version is * not * the same as the int version!
void RGB_to_YUVf(float Red,float Green,float Blue,float *Y,float *U,float *V)
{
    *Y =  0.2989f*Red + 0.5867f*Green + 0.1144f*Blue;
    *U = -0.1687f*Red - 0.3312f*Green + 0.5000f*Blue;
    *V =  0.5000f*Red - 0.4183f*Green - 0.0816f*Blue;
}
void RGB_to_YUVf ( float Red , float Green , float Blue , float * Y , float * U , float * V ) { * Y = 0.2989f * Red + 0.5867f * Green + 0.1144f * Blue ; * U = -0.1687f * Red - 0.3312f * Green + 0.5000f * Blue ; * V = 0.5000f * Red - 0.4183f * Green - 0.0816f * Blue ; }
warning!
warning!