Visualization Library 2.0.0-b5
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
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)) ? ((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, TIFFDisplay *display, float *refWhite) |
void | TIFFYCbCrtoRGB (TIFFYCbCrToRGB *ycbcr, uint32 Y, int32 Cb, int32 Cr, uint32 *r, uint32 *g, uint32 *b) |
int | TIFFYCbCrToRGBInit (TIFFYCbCrToRGB *ycbcr, float *luma, float *refBlackWhite) |
Definition at line 179 of file tif_color.c.
Referenced by TIFFYCbCrtoRGB().
#define Code2V | ( | c, | |
RB, | |||
RW, | |||
CR | |||
) | ((((c)-(int32)(RB))*(float)(CR))/(float)(((RW)-(RB)) ? ((RW)-(RB)) : 1)) |
Definition at line 178 of file tif_color.c.
Referenced by TIFFYCbCrToRGBInit().
Definition at line 176 of file tif_color.c.
Referenced by TIFFYCbCrToRGBInit().
Definition at line 180 of file tif_color.c.
Referenced by TIFFYCbCrtoRGB().
#define LumaBlue luma[2] |
Referenced by TIFFYCbCrToRGBInit().
#define LumaGreen luma[1] |
Referenced by TIFFYCbCrToRGBInit().
#define LumaRed luma[0] |
Referenced by TIFFYCbCrToRGBInit().
#define ONE_HALF ((int32)(1<<(SHIFT-1))) |
Definition at line 177 of file tif_color.c.
Referenced by TIFFYCbCrToRGBInit().
#define RINT | ( | R | ) | ((uint32)((R)>0?((R)+0.5):((R)-0.5))) |
Definition at line 73 of file tif_color.c.
Referenced by TIFFXYZToRGB().
#define SHIFT 16 |
Definition at line 175 of file tif_color.c.
Referenced by TIFFYCbCrtoRGB(), and TIFFYCbCrToRGBInit().
int TIFFCIELabToRGBInit | ( | TIFFCIELabToRGB * | cielab, |
TIFFDisplay * | display, | ||
float * | refWhite | ||
) |
Definition at line 125 of file tif_color.c.
void TIFFCIELabToXYZ | ( | TIFFCIELabToRGB * | cielab, |
uint32 | l, | ||
int32 | a, | ||
int32 | b, | ||
float * | X, | ||
float * | Y, | ||
float * | Z | ||
) |
Definition at line 46 of file tif_color.c.
References F, TIFFCIELabToRGB::X0, TIFFCIELabToRGB::Y0, and TIFFCIELabToRGB::Z0.
Referenced by DECLAREContigPutFunc().
void TIFFXYZToRGB | ( | TIFFCIELabToRGB * | cielab, |
float | X, | ||
float | Y, | ||
float | Z, | ||
uint32 * | r, | ||
uint32 * | g, | ||
uint32 * | b | ||
) |
Definition at line 78 of file tif_color.c.
References TIFFCIELabToRGB::bstep, TIFFDisplay::d_mat, TIFFDisplay::d_Vrwb, TIFFDisplay::d_Vrwg, TIFFDisplay::d_Vrwr, TIFFDisplay::d_Y0B, TIFFDisplay::d_Y0G, TIFFDisplay::d_Y0R, TIFFDisplay::d_YCB, TIFFDisplay::d_YCG, TIFFDisplay::d_YCR, TIFFCIELabToRGB::display, TIFFCIELabToRGB::gstep, i, int, TIFFCIELabToRGB::range, RINT, TIFFCIELabToRGB::rstep, TIFFmax, TIFFmin, TIFFCIELabToRGB::Yb2b, TIFFCIELabToRGB::Yg2g, and TIFFCIELabToRGB::Yr2r.
Referenced by DECLAREContigPutFunc().
void TIFFYCbCrtoRGB | ( | TIFFYCbCrToRGB * | ycbcr, |
uint32 | Y, | ||
int32 | Cb, | ||
int32 | Cr, | ||
uint32 * | r, | ||
uint32 * | g, | ||
uint32 * | b | ||
) |
Definition at line 183 of file tif_color.c.
References TIFFYCbCrToRGB::Cb_b_tab, TIFFYCbCrToRGB::Cb_g_tab, CLAMP, TIFFYCbCrToRGB::clamptab, TIFFYCbCrToRGB::Cr_g_tab, TIFFYCbCrToRGB::Cr_r_tab, HICLAMP, int, SHIFT, and TIFFYCbCrToRGB::Y_tab.
int TIFFYCbCrToRGBInit | ( | TIFFYCbCrToRGB * | ycbcr, |
float * | luma, | ||
float * | refBlackWhite | ||
) |
Definition at line 212 of file tif_color.c.
References _TIFFmemset(), TIFFYCbCrToRGB::Cb_b_tab, TIFFYCbCrToRGB::Cb_g_tab, TIFFYCbCrToRGB::clamptab, Code2V, TIFFYCbCrToRGB::Cr_g_tab, TIFFYCbCrToRGB::Cr_r_tab, F, FIX, i, LumaBlue, LumaGreen, LumaRed, ONE_HALF, SHIFT, TIFFroundup, and TIFFYCbCrToRGB::Y_tab.
Visualization Library 2.0.0-b5 Reference Documentation
Updated on Mon Feb 10 2020 02:44:57.
© Copyright Michele Bosi. All rights reserved.