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

dither-ed.c File Reference

#include <gutenprint/gutenprint.h>
#include "gutenprint-internal.h"
#include <gutenprint/gutenprint-intl-internal.h>
#include <string.h>
#include "dither-impl.h"
#include "dither-inlined-functions.h"

Go to the source code of this file.

Defines

#define UPDATE_COLOR(color, dither)

Functions

static int update_dither (stpi_dither_t *d, int channel, int width, int direction, int *error0, int *error1)
static int print_color (const stpi_dither_t *d, stpi_dither_channel_t *dc, int x, int y, unsigned char bit, int length, int dontprint, int stpi_dither_type, const unsigned char *mask)
static int shared_ed_initializer (stpi_dither_t *d, int row, int duplicate_line, int zero_mask, int length, int direction, int ****error, int **ndither)
static void shared_ed_deinitializer (stpi_dither_t *d, int ***error, int *ndither)
void stpi_dither_ed (stp_vars_t *v, int row, const unsigned short *raw, int duplicate_line, int zero_mask, const unsigned char *mask)


Define Documentation

#define UPDATE_COLOR color,
dither   ) 
 

Value:

(                                          \
((dither) >= 0)? (color) + ((dither) >> 3) : (color) - ((-(dither)) >> 3))

Definition at line 44 of file dither-ed.c.

Referenced by stpi_dither_ed().


Function Documentation

static int print_color const stpi_dither_t d,
stpi_dither_channel_t dc,
int  x,
int  y,
unsigned char  bit,
int  length,
int  dontprint,
int  stpi_dither_type,
const unsigned char *  mask
[inline, static]
 

Definition at line 123 of file dither-ed.c.

References ink_defn::bits, D_ADAPTIVE_BASE, D_ORDERED, D_ORDERED_BASE, ditherpoint(), dither_segment::is_same_ink, dither_segment::lower, ink_defn::range, dither_segment::range_span, set_row_ends(), dither_segment::upper, ink_defn::value, and dither_segment::value_span.

Referenced by stpi_dither_ed().

static void shared_ed_deinitializer stpi_dither_t d,
int ***  error,
int *  ndither
[static]
 

Definition at line 388 of file dither-ed.c.

References CHANNEL_COUNT, and STP_SAFE_FREE.

Referenced by stpi_dither_ed().

static int shared_ed_initializer stpi_dither_t d,
int  row,
int  duplicate_line,
int  zero_mask,
int  length,
int  direction,
int ****  error,
int **  ndither
[static]
 

Definition at line 335 of file dither-ed.c.

References CHANNEL, CHANNEL_COUNT, stp_malloc(), and stpi_dither_get_errline().

Referenced by stpi_dither_ed().

void stpi_dither_ed stp_vars_t v,
int  row,
const unsigned short *  raw,
int  duplicate_line,
int  zero_mask,
const unsigned char *  mask
 

Definition at line 402 of file dither-ed.c.

References ADVANCE_BIDIRECTIONAL, CHANNEL, CHANNEL_COUNT, D_ADAPTIVE_BASE, dither::dst_width, dither::error_rows, print_color(), shared_ed_deinitializer(), shared_ed_initializer(), dither::src_width, stp_get_component_data(), stpi_dither_ed, stpi_dither_ordered, stpi_dither_reverse_row_ends(), dither::stpi_dither_type, UPDATE_COLOR, and update_dither().

static int update_dither stpi_dither_t d,
int  channel,
int  width,
int  direction,
int *  error0,
int *  error1
[inline, static]
 

Definition at line 55 of file dither-ed.c.

References CHANNEL.

Referenced by stpi_dither_ed().


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