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

src/main/channel.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>

Go to the source code of this file.

Data Structures

struct  stpi_channel_group_t
struct  stpi_channel_t
struct  stpi_subchannel_t

Functions

void clear_a_channel (stpi_channel_group_t *cg, int channel)
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)
void stpi_channel_free (void *vc)
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)
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)
void clear_channel (unsigned short *data, unsigned width, unsigned depth)
int scale_channel (unsigned short *data, unsigned width, unsigned depth, unsigned short density)
int scan_channel (unsigned short *data, unsigned width, unsigned depth)
unsigned ink_sum (const unsigned short *data, int total_channels)
int limit_ink (const stp_vars_t *v)
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

void clear_a_channel stpi_channel_group_t   cg,
int    channel
[static]
 

Definition at line 76 of file channel.c.

References stpi_channel_group_t::c, stpi_channel_group_t::channel_count, stpi_channel_t::lut, stpi_channel_t::sc, STP_SAFE_FREE, and stpi_channel_t::subchannel_count.

Referenced by stp_channel_reset_channel(), and stpi_channel_clear().

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

Definition at line 341 of file channel.c.

Referenced by stp_channel_convert().

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().

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

Definition at line 396 of file channel.c.

Referenced by limit_ink().

int input_needs_splitting const stp_vars_t   v [static]
 

Definition at line 236 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().

int limit_ink const stp_vars_t   v [static]
 

Definition at line 406 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(), stpi_channel_group_t::total_channels, and stpi_channel_group_t::width.

Referenced by stp_channel_convert().

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

Definition at line 435 of file channel.c.

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

Definition at line 350 of file channel.c.

Referenced by stp_channel_convert().

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

Definition at line 383 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 445 of file channel.c.

References stpi_channel_group_t::black_channel, stpi_channel_group_t::c, stpi_channel_group_t::channel_count, 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 587 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 595 of file channel.c.

References stpi_channel_group_t::data, and stp_get_component_data().

Referenced by olympus_do_print(), and stp_dither().

void stp_channel_initialize stp_vars_t   v,
stp_image_t   image,
int    input_channel_count
 

Definition at line 256 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 215 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 224 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 lexmark_do_print(), pcl_do_print(), and setup_inks().

void stp_channel_set_ink_limit stp_vars_t   v,
double    limit
 

Definition at line 205 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().

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().

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 Wed May 12 20:21:35 2004 for libgimpprint API Reference by doxygen1.2.17