color.h File Reference

Color space convertion. More...


Defines

#define ROUND(_x)   ((_x) < 0 ? (int) ((_x) - 0.5) : (int) ((_x) + 0.5))
#define CLIP(_x)   ((_x) < 0 ? 0 : ((_x) > 255 ? 255 : ROUND((_x))))

Functions

void convert_RGB_to_YCbCr (coeff_t **R, coeff_t **G, coeff_t **B, coeff_t **Y, coeff_t **Cb, coeff_t **Cr, int width, int height)
void convert_YCbCr_to_RGB (coeff_t **Y, coeff_t **Cb, coeff_t **Cr, coeff_t **R, coeff_t **G, coeff_t **B, int width, int height)
void clip_channel (coeff_t **channel, int width, int height)


Detailed Description

This file contains routines for color space conversion.

References

International Telecommunications Union, ITU-R BT.601

Generated on Fri May 27 14:50:00 2011 for EPSILON by  doxygen 1.5.6