Hello Everyone.

I was taking a look at the MSDN's (integer) solution for RGB to YUV here . It seems the RGB to YUV is all good, but when I convert back, I get all sorts of red and white spots on any image I use. The macros I'm using are as follows:

Code:
#define __get_r(y,u,v)((298 * ((y)-16)                   + 409 * ((v)-128) + 128) >> 8)
#define __get_g(y,u,v)((298 * ((y)-16) - 100 * ((u)-128) - 208 * ((v)-128) + 128) >> 8)
#define __get_b(y,u,v)((298 * ((y)-16) + 516 * ((u)-128)                   + 128) >> 8)
The clipping is done when I use the macros. Does anyone else have this problem, or is it just my code?

Thanks,
Biubid_boy.