color-balance

color-balance

Synopsis

                    ColorBalance;
void                color_balance_init                  (ColorBalance *cb);
void                color_balance_create_lookup_tables  (ColorBalance *cb);
void                color_balance                       (ColorBalance *cb,
                                                         PixelRegion *srcPR,
                                                         PixelRegion *destPR);

Description

Details

ColorBalance

typedef struct {
  gboolean preserve_luminosity;

  gdouble  cyan_red[3];
  gdouble  magenta_green[3];
  gdouble  yellow_blue[3];

  guchar   r_lookup[256];
  guchar   g_lookup[256];
  guchar   b_lookup[256];
} ColorBalance;


color_balance_init ()

void                color_balance_init                  (ColorBalance *cb);


color_balance_create_lookup_tables ()

void                color_balance_create_lookup_tables  (ColorBalance *cb);


color_balance ()

void                color_balance                       (ColorBalance *cb,
                                                         PixelRegion *srcPR,
                                                         PixelRegion *destPR);