Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals  

src/main/color-corrected.c File Reference

#include <gimp-print/gimp-print.h>
#include "gimp-print-internal.h"
#include <gimp-print/gimp-print-intl-internal.h>
#include <math.h>
#include <string.h>
#include "lut.h"

Go to the source code of this file.

Defines

#define COLOR_TO_COLOR_FUNC(T, bits)
#define FAST_COLOR_TO_COLOR_FUNC(T, bits)

Functions

void calc_rgb_to_hsl (unsigned short *rgb, double *hue, double *sat, double *lightness)
double hsl_value (double n1, double n2, double hue)
void calc_hsl_to_rgb (unsigned short *rgb, double h, double s, double l)
double update_saturation (double sat, double adjust, double isat)
double interpolate_value (const double *vec, double val)
void update_saturation_from_rgb (unsigned short *rgb, double adjust, double isat)
double adjust_hue (const double *hue_map, double hue, size_t points)
void adjust_hsl (unsigned short *rgbout, lut_t *lut, double ssat, double isat, int split_saturation)
void adjust_hsl_bright (unsigned short *rgbout, lut_t *lut, double ssat, double isat, int split_saturation)
void lookup_rgb (lut_t *lut, unsigned short *rgbout, const unsigned short *red, const unsigned short *green, const unsigned short *blue)


Define Documentation

#define COLOR_TO_COLOR_FUNC T,
bits   
 

Definition at line 345 of file color-corrected.c.

#define FAST_COLOR_TO_COLOR_FUNC T,
bits   
 

Definition at line 433 of file color-corrected.c.


Function Documentation

void adjust_hsl unsigned short *    rgbout,
lut_t   lut,
double    ssat,
double    isat,
int    split_saturation
[inline, static]
 

Definition at line 222 of file color-corrected.c.

References adjust_hue(), calc_hsl_to_rgb(), calc_rgb_to_hsl(), stp_cached_curve_t::d_cache, lut_t::hue_map, interpolate_value(), lut_t::lum_map, lut_t::sat_map, and update_saturation().

void adjust_hsl_bright unsigned short *    rgbout,
lut_t   lut,
double    ssat,
double    isat,
int    split_saturation
[inline, static]
 

Definition at line 295 of file color-corrected.c.

References adjust_hue(), calc_hsl_to_rgb(), calc_rgb_to_hsl(), lut_t::hue_map, interpolate_value(), lut_t::lum_map, and update_saturation().

double adjust_hue const double *    hue_map,
double    hue,
size_t    points
[inline, static]
 

Definition at line 208 of file color-corrected.c.

References interpolate_value().

void calc_hsl_to_rgb unsigned short *    rgb,
double    h,
double    s,
double    l
[inline, static]
 

Definition at line 140 of file color-corrected.c.

References hsl_value().

void calc_rgb_to_hsl unsigned short *    rgb,
double *    hue,
double *    sat,
double *    lightness
[inline, static]
 

Definition at line 47 of file color-corrected.c.

References FMIN, and max.

double hsl_value double    n1,
double    n2,
double    hue
[inline, static]
 

Definition at line 123 of file color-corrected.c.

double interpolate_value const double *    vec,
double    val
[inline, static]
 

Definition at line 187 of file color-corrected.c.

Referenced by adjust_hsl(), adjust_hsl_bright(), and adjust_hue().

void lookup_rgb lut_t   lut,
unsigned short *    rgbout,
const unsigned short *    red,
const unsigned short *    green,
const unsigned short *    blue
[inline, static]
 

Definition at line 327 of file color-corrected.c.

References lut_t::steps.

double update_saturation double    sat,
double    adjust,
double    isat
[inline, static]
 

Definition at line 171 of file color-corrected.c.

References FMIN.

void update_saturation_from_rgb unsigned short *    rgb,
double    adjust,
double    isat
[inline, static]
 

Definition at line 199 of file color-corrected.c.

References calc_hsl_to_rgb(), calc_rgb_to_hsl(), and update_saturation().


Generated on Wed May 12 20:21:35 2004 for libgimpprint API Reference by doxygen1.2.17