Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

Color Functions

Functions


Function Documentation

u32 COLOR_ConvertRgb2YCbYCr u8  R,
u8  G,
u8  B
 

Convert RGB to YCbYCr format.

Parameters:
R Red amount (0..255)
G Green amount (0..255)
B Blue amount (0..255)
Returns:
The specified RGB color packed as YCbYCr format.
Use this function to convert RGB values into YCbYCr format. (YCbYCr is also known as UYVY)

Note:
You must compile your code with -msoft-float option, otherwise it won't work.
Thanks to Desktopman for raising this up!

u8 COLOR_GetBValue u32  YCbYCr  ) 
 

Get blue amount from a YCbYCr color.

Parameters:
YCbYCr The color to get the blue value from in YCbYCr format
Returns:
The blue amount. It's in range between 0..248
Use this function to get the blue amount from a color specified in YCbYCr format

Todo:
Not tested yet
See also:
COLOR_ConvertRgb2YCbYCr()
COLOR_GetRValue()
COLOR_GetGValue()

u8 COLOR_GetGValue u32  YCbYCr  ) 
 

Get green amount from a YCbYCr color.

Parameters:
YCbYCr The color to get the green value from in YCbYCr format
Returns:
The green amount. It's in range between 0..252
Use this function to get the red amount from a color specified in YCbYCr format

Todo:
Not tested yet
See also:
COLOR_ConvertRgb2YCbYCr()
COLOR_GetRValue()
COLOR_GetBValue()

u8 COLOR_GetRValue u32  YCbYCr  ) 
 

Get red amount from a YCbYCr color.

Parameters:
YCbYCr The color to get the red value from in YCbYCr format
Returns:
The red amount. It's in range between 0..252
Use this function to get the red amount from a color specified in YCbYCr format

Todo:
Not tested yet
See also:
COLOR_ConvertRgb2YCbYCr()
COLOR_GetGValue()
COLOR_GetBValue()


Generated on Thu Jun 26 23:13:53 2003 for Open GC Library by doxygen1.3