ReactOS 0.4.16-dev-303-g11d5cb8
|
Go to the source code of this file.
Macros | |
#define | RINT(R) ((uint32)((R)>0?((R)+0.5):((R)-0.5))) |
#define | SHIFT 16 |
#define | FIX(x) ((int32)((x) * (1L<<SHIFT) + 0.5)) |
#define | ONE_HALF ((int32)(1<<(SHIFT-1))) |
#define | Code2V(c, RB, RW, CR) ((((c)-(int32)(RB))*(float)(CR))/(float)(((RW)-(RB)!=0) ? ((RW)-(RB)) : 1)) |
#define | CLAMP(f, min, max) ((f)<(min)?(min):(f)>(max)?(max):(f)) |
#define | HICLAMP(f, max) ((f)>(max)?(max):(f)) |
#define | LumaRed luma[0] |
#define | LumaGreen luma[1] |
#define | LumaBlue luma[2] |
Functions | |
void | TIFFCIELabToXYZ (TIFFCIELabToRGB *cielab, uint32 l, int32 a, int32 b, float *X, float *Y, float *Z) |
void | TIFFXYZToRGB (TIFFCIELabToRGB *cielab, float X, float Y, float Z, uint32 *r, uint32 *g, uint32 *b) |
int | TIFFCIELabToRGBInit (TIFFCIELabToRGB *cielab, const TIFFDisplay *display, float *refWhite) |
void | TIFFYCbCrtoRGB (TIFFYCbCrToRGB *ycbcr, uint32 Y, int32 Cb, int32 Cr, uint32 *r, uint32 *g, uint32 *b) |
static float | CLAMPw (float v, float vmin, float vmax) |
int | TIFFYCbCrToRGBInit (TIFFYCbCrToRGB *ycbcr, float *luma, float *refBlackWhite) |
Definition at line 177 of file tif_color.c.
#define Code2V | ( | c, | |
RB, | |||
RW, | |||
CR | |||
) | ((((c)-(int32)(RB))*(float)(CR))/(float)(((RW)-(RB)!=0) ? ((RW)-(RB)) : 1)) |
Definition at line 176 of file tif_color.c.
#define LumaBlue luma[2] |
#define LumaGreen luma[1] |
#define LumaRed luma[0] |
Definition at line 175 of file tif_color.c.
#define SHIFT 16 |
Definition at line 173 of file tif_color.c.
Definition at line 202 of file tif_color.c.
Referenced by TIFFYCbCrToRGBInit().
int TIFFCIELabToRGBInit | ( | TIFFCIELabToRGB * | cielab, |
const TIFFDisplay * | display, | ||
float * | refWhite | ||
) |
Definition at line 123 of file tif_color.c.
Referenced by initCIELabConversion().
void TIFFCIELabToXYZ | ( | TIFFCIELabToRGB * | cielab, |
uint32 | l, | ||
int32 | a, | ||
int32 | b, | ||
float * | X, | ||
float * | Y, | ||
float * | Z | ||
) |
Definition at line 44 of file tif_color.c.
Referenced by DECLAREContigPutFunc().
void TIFFXYZToRGB | ( | TIFFCIELabToRGB * | cielab, |
float | X, | ||
float | Y, | ||
float | Z, | ||
uint32 * | r, | ||
uint32 * | g, | ||
uint32 * | b | ||
) |
Definition at line 76 of file tif_color.c.
Referenced by DECLAREContigPutFunc().
void TIFFYCbCrtoRGB | ( | TIFFYCbCrToRGB * | ycbcr, |
uint32 | Y, | ||
int32 | Cb, | ||
int32 | Cr, | ||
uint32 * | r, | ||
uint32 * | g, | ||
uint32 * | b | ||
) |
Definition at line 181 of file tif_color.c.
Referenced by DECLARESepPutFunc().
int TIFFYCbCrToRGBInit | ( | TIFFYCbCrToRGB * | ycbcr, |
float * | luma, | ||
float * | refBlackWhite | ||
) |
Definition at line 234 of file tif_color.c.
Referenced by initYCbCrConversion().