Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

channel.c File Reference

#include <gutenprint/gutenprint.h>
#include "gutenprint-internal.h"
#include <gutenprint/gutenprint-intl-internal.h>
#include <math.h>
#include <string.h>

Go to the source code of this file.

Functions

static void clear_a_channel (stpi_channel_group_t *cg, int channel)
static void stpi_channel_clear (void *vc)
void stp_channel_reset (stp_vars_t *v)
void stp_channel_reset_channel (stp_vars_t *v, int channel)
static void stpi_channel_free (void *vc)
static stpi_subchannel_tget_channel (stp_vars_t *v, unsigned channel, unsigned subchannel)
void stp_channel_add (stp_vars_t *v, unsigned channel, unsigned subchannel, double value)
void stp_channel_set_density_adjustment (stp_vars_t *v, int color, int subchannel, double adjustment)
void stp_channel_set_ink_limit (stp_vars_t *v, double limit)
void stp_channel_set_black_channel (stp_vars_t *v, int channel)
void stp_channel_set_cutoff_adjustment (stp_vars_t *v, int color, int subchannel, double adjustment)
static int input_needs_splitting (const stp_vars_t *v)
void stp_channel_initialize (stp_vars_t *v, stp_image_t *image, int input_channel_count)
static void clear_channel (unsigned short *data, unsigned width, unsigned depth)
static int scale_channel (unsigned short *data, unsigned width, unsigned depth, unsigned short density)
static int scan_channel (unsigned short *data, unsigned width, unsigned depth)
static unsigned ink_sum (const unsigned short *data, int total_channels)
static int limit_ink (const stp_vars_t *v)
static int mem_eq (const unsigned short *i1, const unsigned short *i2, int count)
void stp_channel_convert (const stp_vars_t *v, unsigned *zero_mask)
unsigned short * stp_channel_get_input (const stp_vars_t *v)
unsigned short * stp_channel_get_output (const stp_vars_t *v)


Function Documentation

static void clear_a_channel stpi_channel_group_t cg,
int  channel
[static]
 

Definition at line 76 of file channel.c.

References STP_SAFE_FREE.

Referenced by stp_channel_reset_channel(), and stpi_channel_clear().

static void clear_channel unsigned short *  data,
unsigned  width,
unsigned  depth
[static]
 

Definition at line 342 of file channel.c.

Referenced by stp_channel_convert().

static stpi_subchannel_t* get_channel stp_vars_t v,
unsigned  channel,
unsigned  subchannel
[static]
 

Definition at line 130 of file channel.c.

References stpi_channel_group_t::c, stpi_channel_group_t::channel_count, stpi_channel_t::sc, stp_get_component_data(), and stpi_channel_t::subchannel_count.

Referenced by stp_channel_set_cutoff_adjustment(), and stp_channel_set_density_adjustment().

static unsigned ink_sum const unsigned short *  data,
int  total_channels
[inline, static]
 

Definition at line 397 of file channel.c.

Referenced by limit_ink().

static int input_needs_splitting const stp_vars_t v  )  [static]
 

Definition at line 237 of file channel.c.

References stpi_channel_group_t::c, stpi_channel_group_t::channel_count, stpi_channel_group_t::input_channels, stp_get_component_data(), stpi_channel_t::subchannel_count, and stpi_channel_group_t::total_channels.

Referenced by stp_channel_convert(), and stp_channel_initialize().

static int limit_ink const stp_vars_t v  )  [static]
 

Definition at line 407 of file channel.c.

References stpi_channel_group_t::data, stpi_channel_group_t::ink_limit, ink_sum(), stpi_channel_group_t::max_density, stp_get_component_data(), and stpi_channel_group_t::total_channels.

Referenced by stp_channel_convert().

static int mem_eq const unsigned short *  i1,
const unsigned short *  i2,
int  count
[inline, static]
 

Definition at line 436 of file channel.c.

Referenced by stp_channel_convert().

static int scale_channel unsigned short *  data,
unsigned  width,
unsigned  depth,
unsigned short  density
[static]
 

Definition at line 351 of file channel.c.

Referenced by stp_channel_convert().

static int scan_channel unsigned short *  data,
unsigned  width,
unsigned  depth
[static]
 

Definition at line 384 of file channel.c.

Referenced by stp_channel_convert().

void stp_channel_add stp_vars_t v,
unsigned  channel,
unsigned  subchannel,
double  value
 

Definition at line 144 of file channel.c.

References stpi_channel_group_t::black_channel, stpi_channel_group_t::c, stpi_channel_group_t::channel_count, stpi_subchannel_t::cutoff, stpi_subchannel_t::s_density, stpi_channel_t::sc, stp_allocate_component_data(), stp_get_component_data(), stp_realloc(), stp_zalloc(), stpi_channel_free(), stpi_channel_t::subchannel_count, and stpi_subchannel_t::value.

Referenced by olympus_do_print(), ps_print_internal(), raw_print(), and stp_dither_set_inks_full().

void stp_channel_convert const stp_vars_t v,
unsigned *  zero_mask
 

Definition at line 446 of file channel.c.

References stpi_channel_group_t::black_channel, stpi_channel_group_t::c, clear_channel(), stpi_channel_group_t::data, stpi_channel_group_t::input_channels, stpi_channel_group_t::input_data, input_needs_splitting(), limit_ink(), stpi_channel_t::lut, mem_eq(), stpi_subchannel_t::s_density, stpi_channel_t::sc, scale_channel(), scan_channel(), STP_CHANNEL_LIMIT, stp_get_component_data(), stpi_channel_t::subchannel_count, stpi_channel_group_t::total_channels, and stpi_channel_group_t::width.

Referenced by stpi_color_traditional_get_row().

unsigned short* stp_channel_get_input const stp_vars_t v  ) 
 

Definition at line 588 of file channel.c.

References stpi_channel_group_t::input_data, and stp_get_component_data().

Referenced by ps_print_internal(), raw_print(), and stpi_color_traditional_get_row().

unsigned short* stp_channel_get_output const stp_vars_t v  ) 
 

Definition at line 596 of file channel.c.

References stpi_channel_group_t::data, and stp_get_component_data().

Referenced by olympus_do_print(), olympus_get_cached_output(), and stp_dither().

void stp_channel_initialize stp_vars_t v,
stp_image_t image,
int  input_channel_count
 

Definition at line 257 of file channel.c.

References stpi_channel_group_t::black_channel, stpi_channel_group_t::c, stpi_channel_group_t::channel_count, stpi_subchannel_t::cutoff, stpi_channel_group_t::data, stpi_channel_group_t::initialized, stpi_channel_group_t::input_channels, stpi_channel_group_t::input_data, input_needs_splitting(), stpi_channel_t::lut, stpi_channel_group_t::max_density, stpi_subchannel_t::s_density, stpi_channel_t::sc, stp_allocate_component_data(), stp_get_component_data(), stp_image_width(), stp_malloc(), stp_zalloc(), stpi_channel_free(), stpi_channel_t::subchannel_count, stpi_channel_group_t::total_channels, stpi_subchannel_t::value, and stpi_channel_group_t::width.

Referenced by initialize_channels().

void stp_channel_reset stp_vars_t v  ) 
 

Definition at line 105 of file channel.c.

References stp_get_component_data(), and stpi_channel_clear().

Referenced by olympus_do_print(), ps_print_internal(), and raw_print().

void stp_channel_reset_channel stp_vars_t v,
int  channel
 

Definition at line 114 of file channel.c.

References clear_a_channel(), and stp_get_component_data().

Referenced by stp_dither_set_inks_full().

void stp_channel_set_black_channel stp_vars_t v,
int  channel
 

Definition at line 216 of file channel.c.

References stpi_channel_group_t::black_channel, STP_DBG_INK, stp_dprintf(), and stp_get_component_data().

Referenced by setup_inks().

void stp_channel_set_cutoff_adjustment stp_vars_t v,
int  color,
int  subchannel,
double  adjustment
 

Definition at line 225 of file channel.c.

References stpi_subchannel_t::cutoff, get_channel(), STP_DBG_INK, and stp_dprintf().

Referenced by setup_inks().

void stp_channel_set_density_adjustment stp_vars_t v,
int  color,
int  subchannel,
double  adjustment
 

Definition at line 182 of file channel.c.

References get_channel(), stpi_subchannel_t::s_density, STP_DBG_INK, stp_dprintf(), and stp_get_string_parameter().

Referenced by canon_do_print(), lexmark_do_print(), pcl_do_print(), set_ink_ranges(), and setup_inks().

void stp_channel_set_ink_limit stp_vars_t v,
double  limit
 

Definition at line 206 of file channel.c.

References stpi_channel_group_t::ink_limit, STP_DBG_INK, stp_dprintf(), and stp_get_component_data().

Referenced by initialize_channels().

static void stpi_channel_clear void *  vc  )  [static]
 

Definition at line 87 of file channel.c.

References stpi_channel_group_t::c, stpi_channel_group_t::channel_count, clear_a_channel(), stpi_channel_group_t::data, stpi_channel_group_t::initialized, stpi_channel_group_t::input_channels, stpi_channel_group_t::input_data, STP_SAFE_FREE, and stpi_channel_group_t::total_channels.

Referenced by stp_channel_reset(), and stpi_channel_free().

static void stpi_channel_free void *  vc  )  [static]
 

Definition at line 123 of file channel.c.

References stp_free(), and stpi_channel_clear().

Referenced by stp_channel_add(), and stp_channel_initialize().


Generated on Thu Feb 10 19:29:31 2005 for libgutenprint API Reference by  doxygen 1.4.1