src/dye/dye.h File Reference

#include <stdio.h>
#include <math.h>
#include <ctype.h>
#include <teem/air.h>
#include <teem/biff.h>
#include <teem/ell.h>

Include dependency graph for dye.h:

This graph shows which files directly or indirectly include this file:


Data Structures

struct  dyeColor

Defines

#define DYE_EXPORT   extern
#define DYE   dyeBiffKey
#define DYE_MAX_SPACE   6
#define DYE_VALID_SPACE(spc)   (AIR_IN_OP(dyeSpaceUnknown, (spc), dyeSpaceLast))

Typedefs

typedef void(* dyeConverter )(float *, float *, float *, float, float, float)

Enumerations

enum  {
  dyeSpaceUnknown, dyeSpaceHSV, dyeSpaceHSL, dyeSpaceRGB,
  dyeSpaceXYZ, dyeSpaceLAB, dyeSpaceLUV, dyeSpaceLast
}

Functions

DYE_EXPORT int dyeStrToSpace (char *str)
DYE_EXPORT dyeColordyeColorInit (dyeColor *col)
DYE_EXPORT dyeColordyeColorSet (dyeColor *col, int space, float v0, float v1, float v2)
DYE_EXPORT int dyeColorGet (float *v0P, float *v1P, float *v2P, dyeColor *col)
DYE_EXPORT int dyeColorGetAs (float *v0P, float *v1P, float *v2P, dyeColor *col, int space)
DYE_EXPORT dyeColordyeColorNew ()
DYE_EXPORT dyeColordyeColorCopy (dyeColor *c1, dyeColor *c0)
DYE_EXPORT dyeColordyeColorNix (dyeColor *col)
DYE_EXPORT int dyeColorParse (dyeColor *col, char *str)
DYE_EXPORT char * dyeColorSprintf (char *str, dyeColor *col)
DYE_EXPORT void dyeRGBtoHSV (float *H, float *S, float *V, float R, float G, float B)
DYE_EXPORT void dyeHSVtoRGB (float *R, float *G, float *B, float H, float S, float V)
DYE_EXPORT void dyeRGBtoHSL (float *H, float *S, float *L, float R, float G, float B)
DYE_EXPORT void dyeHSLtoRGB (float *R, float *G, float *B, float H, float S, float L)
DYE_EXPORT void dyeRGBtoXYZ (float *X, float *Y, float *Z, float R, float G, float B)
DYE_EXPORT void dyeXYZtoRGB (float *R, float *G, float *B, float X, float Y, float Z)
DYE_EXPORT void dyeXYZtoLAB (float *L, float *A, float *B, float X, float Y, float Z)
DYE_EXPORT void dyeXYZtoLUV (float *L, float *U, float *V, float X, float Y, float Z)
DYE_EXPORT void dyeLABtoXYZ (float *X, float *Y, float *Z, float L, float A, float B)
DYE_EXPORT void dyeLUVtoXYZ (float *X, float *Y, float *Z, float L, float U, float V)
DYE_EXPORT int dyeConvert (dyeColor *col, int space)

Variables

DYE_EXPORT const char * dyeBiffKey
DYE_EXPORT char dyeSpaceToStr [][AIR_STRLEN_SMALL]
DYE_EXPORT dyeConverter dyeSimpleConvert [DYE_MAX_SPACE+1][DYE_MAX_SPACE+1]

Define Documentation

#define DYE   dyeBiffKey

#define DYE_EXPORT   extern

#define DYE_MAX_SPACE   6

#define DYE_VALID_SPACE ( spc   )     (AIR_IN_OP(dyeSpaceUnknown, (spc), dyeSpaceLast))


Typedef Documentation

typedef void(* dyeConverter)(float *, float *, float *, float, float, float)


Enumeration Type Documentation

anonymous enum

Enumerator:
dyeSpaceUnknown 
dyeSpaceHSV 
dyeSpaceHSL 
dyeSpaceRGB 
dyeSpaceXYZ 
dyeSpaceLAB 
dyeSpaceLUV 
dyeSpaceLast 


Function Documentation

DYE_EXPORT dyeColor* dyeColorCopy ( dyeColor c1,
dyeColor c0 
)

DYE_EXPORT int dyeColorGet ( float *  v0P,
float *  v1P,
float *  v2P,
dyeColor col 
)

DYE_EXPORT int dyeColorGetAs ( float *  v0P,
float *  v1P,
float *  v2P,
dyeColor col,
int  space 
)

DYE_EXPORT dyeColor* dyeColorInit ( dyeColor col  ) 

DYE_EXPORT dyeColor* dyeColorNew (  ) 

DYE_EXPORT dyeColor* dyeColorNix ( dyeColor col  ) 

DYE_EXPORT int dyeColorParse ( dyeColor col,
char *  str 
)

DYE_EXPORT dyeColor* dyeColorSet ( dyeColor col,
int  space,
float  v0,
float  v1,
float  v2 
)

DYE_EXPORT char* dyeColorSprintf ( char *  str,
dyeColor col 
)

DYE_EXPORT int dyeConvert ( dyeColor col,
int  space 
)

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

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

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

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

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

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

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

DYE_EXPORT int dyeStrToSpace ( char *  str  ) 

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

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

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


Variable Documentation

DYE_EXPORT const char* dyeBiffKey

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

DYE_EXPORT char dyeSpaceToStr[][AIR_STRLEN_SMALL]


Generated on Sat May 9 03:55:12 2009 for Teem by  doxygen 1.5.9