src/dye/convertDye.c File Reference

#include "dye.h"

Include dependency graph for convertDye.c:


Functions

void dyeRGBtoHSV (float *H, float *S, float *V, float R, float G, float B)
void dyeHSVtoRGB (float *R, float *G, float *B, float H, float S, float V)
void dyeRGBtoHSL (float *H, float *S, float *L, float R, float G, float B)
void dyeHSLtoRGB (float *R, float *G, float *B, float H, float S, float L)
void dyeRGBtoXYZ (float *X, float *Y, float *Z, float R, float G, float B)
void dyeXYZtoRGB (float *R, float *G, float *B, float X, float Y, float Z)
float dyeLcbrt (float t)
float dyeLcubed (float t)
void dyeXYZtoLAB (float *L, float *A, float *B, float X, float Y, float Z)
void dyeXYZtoLUV (float *L, float *U, float *V, float X, float Y, float Z)
void dyeLABtoXYZ (float *X, float *Y, float *Z, float L, float A, float B)
void dyeLUVtoXYZ (float *X, float *Y, float *Z, float L, float U, float V)
void dyeIdentity (float *A, float *B, float *C, float a, float b, float c)
int dyeConvert (dyeColor *col, int outSpace)

Variables

float dyeRGBtoXYZMatx [9]
float dyeXYZtoRGBMatx [9]
float dyeWhiteXYZ_n [3] = {0.950456f, 1.0f, 1.088754f}
float dyeWhiteuvp_n [2] = {0.197839f, 0.468342f}
dyeConverter dyeSimpleConvert [DYE_MAX_SPACE+1][DYE_MAX_SPACE+1]

Function Documentation

int dyeConvert ( dyeColor col,
int  outSpace 
)

void dyeHSLtoRGB ( float *  R,
float *  G,
float *  B,
float  H,
float  S,
float  L 
)

void dyeHSVtoRGB ( float *  R,
float *  G,
float *  B,
float  H,
float  S,
float  V 
)

void dyeIdentity ( float *  A,
float *  B,
float *  C,
float  a,
float  b,
float  c 
)

void dyeLABtoXYZ ( float *  X,
float *  Y,
float *  Z,
float  L,
float  A,
float  B 
)

float dyeLcbrt ( float  t  ) 

float dyeLcubed ( float  t  ) 

void dyeLUVtoXYZ ( float *  X,
float *  Y,
float *  Z,
float  L,
float  U,
float  V 
)

void dyeRGBtoHSL ( float *  H,
float *  S,
float *  L,
float  R,
float  G,
float  B 
)

void dyeRGBtoHSV ( float *  H,
float *  S,
float *  V,
float  R,
float  G,
float  B 
)

void dyeRGBtoXYZ ( float *  X,
float *  Y,
float *  Z,
float  R,
float  G,
float  B 
)

void dyeXYZtoLAB ( float *  L,
float *  A,
float *  B,
float  X,
float  Y,
float  Z 
)

void dyeXYZtoLUV ( float *  L,
float *  U,
float *  V,
float  X,
float  Y,
float  Z 
)

void dyeXYZtoRGB ( float *  R,
float *  G,
float *  B,
float  X,
float  Y,
float  Z 
)


Variable Documentation

float dyeRGBtoXYZMatx[9]

Initial value:

 {
  0.412453f, 0.212671f, 0.019334f,
  0.357580f, 0.715160f, 0.119193f,
  0.180423f, 0.072169f, 0.950227f}

dyeConverter dyeSimpleConvert[DYE_MAX_SPACE+1][DYE_MAX_SPACE+1]

Initial value:

 
{
  {NULL,          NULL,          NULL,          NULL,          NULL,          NULL,          NULL},
  {NULL,          dyeIdentity,   NULL,          dyeHSVtoRGB,   NULL,          NULL,          NULL},
  {NULL,          NULL,          dyeIdentity,   dyeHSLtoRGB,   NULL,          NULL,          NULL},
  {NULL,          dyeRGBtoHSV,   dyeRGBtoHSL,   dyeIdentity,   dyeRGBtoXYZ,   NULL,          NULL},
  {NULL,          NULL,          NULL,          dyeXYZtoRGB,   dyeIdentity,   dyeXYZtoLAB,   dyeXYZtoLUV},  
  {NULL,          NULL,          NULL,          NULL,          dyeLABtoXYZ,   dyeIdentity,   NULL},
  {NULL,          NULL,          NULL,          NULL,          dyeLUVtoXYZ,   NULL,          dyeIdentity}
  }

float dyeWhiteuvp_n[2] = {0.197839f, 0.468342f}

float dyeWhiteXYZ_n[3] = {0.950456f, 1.0f, 1.088754f}

float dyeXYZtoRGBMatx[9]

Initial value:

 {
  3.240479f,-0.969256f, 0.055648f,
  -1.537150f, 1.875992f,-0.204043f,
  -0.498535f, 0.041556f, 1.057311f}


Generated on Thu Jan 1 01:06:32 2009 for Teem by  doxygen 1.5.6