Sample program for converting RGB to YCbCr and vice versa.
#ifndef RGB_YCBCR #define RGB_YCBCR void rgb2ycbcr( RGB &rgb, YCbCr &ycb ); void rgb2y( RGB &rgb, short &y ); void ycbcr2rgb( YCbCr &ycb, RGB &rgb ); void macroblock2ycbcr ( RGB *macro16x16, YCbCr_MACRO *ycbcr_macro ); void ycbcr2macroblock( YCbCr_MACRO *ycbcr_macro, RGB *macro16x16 ); #endif