I've found many sources wich pretend to be the final solution for YUV -> RGB and viceversa conversion.

I've tried to use many of them, in the particoular case of RGB 16 bit, but the colors tends blue and many seems pinky (while they should be white white).

Anyone can link me? Actually I have YUV values, and I want to get sinngle RGB values.

P.S.: what happens when I assign float value to a unsigned char (uint8_t)? The value will be limited to [0,255]?

float v = -0.54;
float z = 256.78;

uint8_t a;

a = v; /* a = 0? */
a = z; /* a = 255? */