#include <string.h>
#include <gimp-print/gimp-print.h>
#include "gimp-print-internal.h"
#include <gimp-print/gimp-print-intl-internal.h>
Go to the source code of this file.
Data Structures | |
struct | stpi_softweave |
struct | raw |
struct | cooked |
Defines | |
#define | ASSERTIONS |
#define | assert(x, v) |
Typedefs | |
typedef stpi_softweave | stpi_softweave_t |
typedef raw | raw_t |
typedef cooked | cooked_t |
Functions | |
int | gcd (int x, int y) |
void | initialize_raw_weave (raw_t *w, int separation, int jets, int oversample, stp_weave_strategy_t strat, stp_vars_t *v) |
void | calculate_raw_pass_parameters (raw_t *w, int pass, int *startrow, int *subpass) |
void | calculate_raw_row_parameters (raw_t *w, int row, int subpass, int *pass, int *jet, int *startrow) |
void | sort_by_start_row (int *map, int *startrows, int count) |
void | calculate_stagger (raw_t *w, int *map, int *startrows_stagger, int count) |
void | invert_map (int *map, int *stagger, int count, int oldfirstpass, int newfirstpass) |
void | make_passmap (raw_t *w, int **map, int **starts, int first_pass_number, int first_pass_to_map, int first_pass_after_map, int first_pass_to_stagger, int first_pass_after_stagger, int first_row_of_maximal_pass, int separations_to_distribute) |
void | calculate_pass_map (stp_vars_t *v, cooked_t *w, int pageheight, int firstrow, int lastrow) |
void * | initialize_weave_params (int separation, int jets, int oversample, int firstrow, int lastrow, int pageheight, stp_weave_strategy_t strategy, stp_vars_t *v) |
void | stpi_destroy_weave_params (void *vw) |
void | stpi_calculate_row_parameters (void *vw, int row, int subpass, int *pass, int *jetnum, int *startingrow, int *ophantomrows, int *ojetsused) |
stp_lineoff_t * | allocate_lineoff (int count, int ncolors) |
stp_lineactive_t * | allocate_lineactive (int count, int ncolors) |
stp_linecount_t * | allocate_linecount (int count, int ncolors) |
stp_linebounds_t * | allocate_linebounds (int count, int ncolors) |
stp_linebufs_t * | allocate_linebuf (int count, int ncolors) |
void | stpi_destroy_weave (void *vsw) |
void | stp_initialize_weave (stp_vars_t *v, int jets, int sep, int osample, int v_subpasses, int v_subsample, int ncolors, int bitwidth, int linewidth, int line_count, int first_line, int page_height, const int *head_offset, stp_weave_strategy_t weave_strategy, stp_flushfunc flushfunc, stp_fillfunc fillfunc, stp_packfunc pack, stp_compute_linewidth_func compute_linewidth) |
void | weave_parameters_by_row (const stp_vars_t *v, const stpi_softweave_t *sw, int row, int vertical_subpass, stp_weave_t *w) |
void | stp_weave_parameters_by_row (const stp_vars_t *v, int row, int vertical_subpass, stp_weave_t *w) |
stp_lineoff_t * | stpi_get_lineoffsets (const stp_vars_t *v, const stpi_softweave_t *sw, int row, int subpass, int offset) |
stp_lineactive_t * | stpi_get_lineactive (const stp_vars_t *v, const stpi_softweave_t *sw, int row, int subpass, int offset) |
stp_linecount_t * | stpi_get_linecount (const stp_vars_t *v, const stpi_softweave_t *sw, int row, int subpass, int offset) |
stp_linebufs_t * | stpi_get_linebases (const stp_vars_t *v, const stpi_softweave_t *sw, int row, int subpass, int offset) |
stp_linebounds_t * | stpi_get_linebounds (const stp_vars_t *v, const stpi_softweave_t *sw, int row, int subpass, int offset) |
stp_pass_t * | stpi_get_pass_by_row (stp_vars_t *v, const stpi_softweave_t *sw, int row, int subpass, int offset) |
stp_lineoff_t * | stp_get_lineoffsets_by_pass (const stp_vars_t *v, int pass) |
stp_lineactive_t * | stp_get_lineactive_by_pass (const stp_vars_t *v, int pass) |
stp_linecount_t * | stp_get_linecount_by_pass (const stp_vars_t *v, int pass) |
const stp_linebufs_t * | stp_get_linebases_by_pass (const stp_vars_t *v, int pass) |
stp_pass_t * | stp_get_pass_by_pass (const stp_vars_t *v, int pass) |
void | check_linebases (stp_vars_t *v, const stpi_softweave_t *sw, int row, int cpass, int head_offset, int color) |
void | stp_fill_tiff (stp_vars_t *v, int row, int subpass, int width, int missingstartrows, int color) |
void | stp_fill_uncompressed (stp_vars_t *v, int row, int subpass, int width, int missingstartrows, int color) |
int | stp_compute_tiff_linewidth (stp_vars_t *v, int n) |
int | stp_compute_uncompressed_linewidth (stp_vars_t *v, int n) |
void | initialize_row (stp_vars_t *v, stpi_softweave_t *sw, int row, int width, unsigned char *const cols[]) |
void | add_to_row (stp_vars_t *v, stpi_softweave_t *sw, int row, unsigned char *buf, size_t nbytes, int color, int setactive, int h_pass) |
void | stpi_flush_passes (stp_vars_t *v, int flushall) |
void | stp_flush_all (stp_vars_t *v) |
void | finalize_row (stp_vars_t *v, int row) |
void | stp_write_weave (stp_vars_t *v, unsigned char *const cols[]) |
|
Value: do \ { \ if (!(x)) \ { \ stp_eprintf(v, "Assertion %s failed! file %s, line %d.\n", \ #x, __FILE__, __LINE__); \ stp_abort(); \ } \ } while (0) Definition at line 44 of file print-weave.c. Referenced by initialize_channel(), make_passmap(), stp_dither_add_channel(), stp_dither_set_inks_full(), stp_xml_dither_cache_set(), and stpi_calculate_row_parameters(). |
|
Definition at line 40 of file print-weave.c. |
|
Referenced by calculate_pass_map(), initialize_weave_params(), stpi_calculate_row_parameters(), and stpi_destroy_weave_params(). |
|
Referenced by calculate_raw_pass_parameters(), calculate_raw_row_parameters(), calculate_stagger(), initialize_raw_weave(), and make_passmap(). |
|
|
Definition at line 1463 of file print-weave.c. References stpi_softweave::bitwidth, stpi_softweave::head_offset, stpi_softweave::horizontal_width, stpi_softweave::lineno, stp_abort(), stp_eprintf(), stp_vars_t, stpi_get_lineactive(), stpi_get_linebases(), stpi_get_linecount(), stpi_get_lineoffsets(), stpi_softweave_t, stp_lineactive_t::v, stp_linecount_t::v, stp_lineoff_t::v, and stpi_softweave::virtual_jets. Referenced by stp_write_weave(). |
|
Definition at line 904 of file print-weave.c. References stp_lineactive_t::ncolors, stp_malloc(), stp_zalloc(), and stp_lineactive_t::v. Referenced by stp_initialize_weave(). |
|
Definition at line 930 of file print-weave.c. References stp_linebounds_t::end_pos, stp_linebounds_t::ncolors, stp_linebounds_t::start_pos, stp_malloc(), and stp_zalloc(). Referenced by stp_initialize_weave(). |
|
Definition at line 944 of file print-weave.c. References stp_linebufs_t::ncolors, stp_malloc(), stp_zalloc(), and stp_linebufs_t::v. Referenced by stp_initialize_weave(). |
|
Definition at line 917 of file print-weave.c. References stp_linecount_t::ncolors, stp_malloc(), stp_zalloc(), and stp_linecount_t::v. Referenced by stp_initialize_weave(). |
|
Definition at line 891 of file print-weave.c. References stp_lineoff_t::ncolors, stp_malloc(), stp_zalloc(), and stp_lineoff_t::v. Referenced by stp_initialize_weave(). |
|
|
Definition at line 175 of file print-weave.c. References raw::advancebasis, raw::jets, raw::oversampling, raw_t, raw::separation, STP_WEAVE_ASCENDING, STP_WEAVE_ASCENDING_2X, STP_WEAVE_ASCENDING_3X, STP_WEAVE_DESCENDING, STP_WEAVE_STAGGERED, STP_WEAVE_ZIGZAG, raw::strategy, and raw::subblocksperpassblock. Referenced by calculate_pass_map(), calculate_stagger(), and make_passmap(). |
|
Definition at line 244 of file print-weave.c. References raw::advancebasis, raw::jets, raw::oversampling, raw::passespersubblock, raw_t, raw::separation, STP_WEAVE_ASCENDING, STP_WEAVE_ASCENDING_2X, STP_WEAVE_ASCENDING_3X, STP_WEAVE_DESCENDING, STP_WEAVE_STAGGERED, STP_WEAVE_ZIGZAG, raw::strategy, and raw::subblocksperpassblock. Referenced by stpi_calculate_row_parameters(). |
|
Definition at line 399 of file print-weave.c. References calculate_raw_pass_parameters(), raw::jets, raw_t, and raw::separation. Referenced by make_passmap(). |
|
Definition at line 1296 of file print-weave.c. References stpi_softweave::bitwidth, stpi_softweave::horizontal_width, stp_vars_t, stp_zalloc(), stpi_get_linebases(), stpi_softweave_t, stp_linebufs_t::v, and stpi_softweave::virtual_jets. Referenced by initialize_row(). |
|
Definition at line 1516 of file print-weave.c. References stpi_softweave::head_offset, stpi_softweave::lineno, stpi_softweave::ncolors, stpi_softweave::oversample, stp_weave_t::pass, stp_weave_t::physpassend, STP_DBG_ROWS, stp_dprintf(), stp_get_component_data(), stp_vars_t, stpi_flush_passes(), stpi_get_linecount(), stpi_softweave_t, stp_linecount_t::v, and weave_parameters_by_row(). Referenced by stp_write_weave(). |
|
Definition at line 59 of file print-weave.c. Referenced by initialize_raw_weave(), lcm(), and stp_find_standard_dither_array(). |
|
Definition at line 155 of file print-weave.c. References raw::advancebasis, gcd(), raw::jets, raw::oversampling, raw::passespersubblock, raw_t, raw::separation, stp_vars_t, raw::strategy, raw::subblocksperpassblock, and raw::v. Referenced by initialize_weave_params(). |
|
|
Definition at line 589 of file print-weave.c. References calculate_pass_map(), cooked_t, initialize_raw_weave(), cooked::rw, stp_malloc(), and stp_vars_t. Referenced by stp_initialize_weave(). |
|
Definition at line 413 of file print-weave.c. References stp_free(), and stp_malloc(). Referenced by make_passmap(). |
|
Definition at line 433 of file print-weave.c. References assert, calculate_raw_pass_parameters(), calculate_stagger(), invert_map(), raw::jets, raw_t, raw::separation, sort_by_start_row(), and stp_malloc(). Referenced by calculate_pass_map(). |
|
Definition at line 372 of file print-weave.c. Referenced by make_passmap(). |
|
Definition at line 1384 of file print-weave.c. References stp_vars_t. |
|
Definition at line 1394 of file print-weave.c. References stp_vars_t. |
|
Definition at line 1317 of file print-weave.c. References stpi_softweave::bitwidth, stpi_softweave::head_offset, stp_get_component_data(), stp_vars_t, stpi_get_linebases(), stpi_get_linecount(), stpi_get_lineoffsets(), stpi_softweave_t, stp_linecount_t::v, stp_lineoff_t::v, and stp_linebufs_t::v. |
|
Definition at line 1365 of file print-weave.c. References stpi_softweave::bitwidth, stpi_softweave::head_offset, stp_get_component_data(), stp_vars_t, stpi_get_linebases(), stpi_get_linecount(), stpi_get_lineoffsets(), stpi_softweave_t, stp_linecount_t::v, and stp_lineoff_t::v. |
|
Definition at line 1510 of file print-weave.c. References stp_vars_t, and stpi_flush_passes(). Referenced by escp2_print_page(). |
|
Definition at line 1264 of file print-weave.c. References stpi_softweave::lineactive, stp_get_component_data(), stp_vars_t, stpi_softweave_t, and stpi_softweave::vmod. Referenced by stpi_escp2_flush_pass(). |
|
Definition at line 1280 of file print-weave.c. References stpi_softweave::linebases, stp_get_component_data(), stp_vars_t, stpi_softweave_t, and stpi_softweave::vmod. Referenced by stpi_escp2_flush_pass(). |
|
Definition at line 1272 of file print-weave.c. References stpi_softweave::linecounts, stp_get_component_data(), stp_vars_t, stpi_softweave_t, and stpi_softweave::vmod. Referenced by stpi_escp2_flush_pass(). |
|
Definition at line 1256 of file print-weave.c. References stpi_softweave::lineoffsets, stp_get_component_data(), stp_vars_t, stpi_softweave_t, and stpi_softweave::vmod. Referenced by stpi_escp2_flush_pass(). |
|
Definition at line 1288 of file print-weave.c. References stpi_softweave::passes, stp_get_component_data(), stp_vars_t, stpi_softweave_t, and stpi_softweave::vmod. Referenced by stpi_escp2_flush_pass(), and stpi_flush_passes(). |
|
|
Definition at line 1192 of file print-weave.c. References stp_get_component_data(), stp_vars_t, stpi_softweave_t, and weave_parameters_by_row(). |
|
|
Definition at line 621 of file print-weave.c. References assert, calculate_raw_row_parameters(), cooked_t, cooked::first_normal_pass, cooked::first_postmapped_pass, cooked::first_premapped_pass, cooked::first_row_printed, raw::jets, cooked::last_row_printed, cooked::pass_postmap, cooked::pass_premap, cooked::rw, raw::separation, cooked::stagger_postmap, cooked::stagger_premap, and raw::v. Referenced by weave_parameters_by_row(). |
|
|
Definition at line 609 of file print-weave.c. References cooked_t, cooked::pass_postmap, cooked::pass_premap, cooked::stagger_postmap, cooked::stagger_premap, and stp_free(). Referenced by stpi_destroy_weave(). |
|
Definition at line 1490 of file print-weave.c. References stpi_softweave::flushfunc, stpi_softweave::last_pass, stpi_softweave::lineno, stp_pass_t::pass, stp_pass_t::physpassend, stp_get_component_data(), stp_get_pass_by_pass(), stp_vars_t, stpi_softweave_t, and stp_pass_t::subpass. Referenced by finalize_row(), and stp_flush_all(). |
|
Definition at line 1211 of file print-weave.c. References stpi_softweave::lineactive, stp_weave_t::pass, stp_vars_t, stpi_softweave_t, stpi_softweave::vmod, and weave_parameters_by_row(). Referenced by add_to_row(), initialize_row(), and stp_write_weave(). |
|
Definition at line 1229 of file print-weave.c. References stpi_softweave::linebases, stp_weave_t::pass, stp_vars_t, stpi_softweave_t, stpi_softweave::vmod, and weave_parameters_by_row(). Referenced by add_to_row(), check_linebases(), stp_fill_tiff(), stp_fill_uncompressed(), and stp_write_weave(). |
|
Definition at line 1238 of file print-weave.c. References stpi_softweave::linebounds, stp_weave_t::pass, stp_vars_t, stpi_softweave_t, stpi_softweave::vmod, and weave_parameters_by_row(). Referenced by initialize_row(), and stp_write_weave(). |
|
Definition at line 1220 of file print-weave.c. References stpi_softweave::linecounts, stp_weave_t::pass, stp_vars_t, stpi_softweave_t, stpi_softweave::vmod, and weave_parameters_by_row(). Referenced by add_to_row(), finalize_row(), initialize_row(), stp_fill_tiff(), stp_fill_uncompressed(), and stp_write_weave(). |
|
Definition at line 1202 of file print-weave.c. References stpi_softweave::lineoffsets, stp_weave_t::pass, stp_vars_t, stpi_softweave_t, stpi_softweave::vmod, and weave_parameters_by_row(). Referenced by add_to_row(), initialize_row(), stp_fill_tiff(), stp_fill_uncompressed(), and stp_write_weave(). |
|
Definition at line 1247 of file print-weave.c. References stp_weave_t::pass, stpi_softweave::passes, stp_vars_t, stpi_softweave_t, stpi_softweave::vmod, and weave_parameters_by_row(). Referenced by initialize_row(). |
|