Linux Game Programming for PC & Embedded Systems using SDL
Presented by
Fore June
Author of Windows Fan, Linux Fan

Sample program for converting RGB to YCbCr to DCT coefficients and vice versa.

common.h
rgb_ybr.h
dct_video.h
encode.h
dctplayer.cpp
encode.cpp
dct_video.cpp
rgb_ybr.cpp
Makefile
sample_video.raw



../rgbybr/rgb_ybr.h:
#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