libgutenprint API Reference
5.3.4
|
Array functions.
More...
|
stp_array_t * | stp_array_create (int x_size, int y_size) |
| Create a new array. More...
|
|
void | stp_array_destroy (stp_array_t *array) |
| Destroy an array. More...
|
|
void | stp_array_copy (stp_array_t *dest, const stp_array_t *source) |
| Copy an array. More...
|
|
stp_array_t * | stp_array_create_copy (const stp_array_t *array) |
| Copy and allocate an array. More...
|
|
void | stp_array_set_size (stp_array_t *array, int x_size, int y_size) |
| Resize an array. More...
|
|
void | stp_array_get_size (const stp_array_t *array, int *x_size, int *y_size) |
| Get the size of an array. More...
|
|
void | stp_array_set_data (stp_array_t *array, const double *data) |
| Set the data in an array. More...
|
|
void | stp_array_get_data (const stp_array_t *array, size_t *size, const double **data) |
| Get the data in an array. More...
|
|
int | stp_array_set_point (stp_array_t *array, int x, int y, double data) |
| Set the data at a single point in the array. More...
|
|
int | stp_array_get_point (const stp_array_t *array, int x, int y, double *data) |
| Get the data at a single point in the array. More...
|
|
const stp_sequence_t * | stp_array_get_sequence (const stp_array_t *array) |
| Get the underlying stp_sequence_t. More...
|
|
int | stp_array_write (FILE *file, const stp_array_t *array) |
| Write an array to a file. More...
|
|
char * | stp_array_write_string (const stp_array_t *array) |
| Write an array to a string. More...
|
|
stp_array_t * | stp_array_create_from_stream (FILE *fp) |
| Create an array from a stream. More...
|
|
stp_array_t * | stp_array_create_from_file (const char *file) |
| Create an array from a stream. More...
|
|
stp_array_t * | stp_array_create_from_string (const char *string) |
| Create an array from a string. More...
|
|
double value
Definition: dither.h:131
stp_dimension_t bottom
Bottom margin.
Definition: paper.h:86
int(* width)(struct stp_image *image)
This callback returns the width of the image in pixels.
Definition: image.h:84
int stp_curve_set_long_data(stp_curve_t *curve, size_t count, const long *data)
Set the data points in a curve from long values.
void stp_array_destroy(stp_array_t *array)
Destroy an array.
stp_vars_t * stp_vars_create_from_xmltree(stp_mxml_node_t *da)
void stp_fold(const unsigned char *line, int single_length, unsigned char *outbuf)
Interleave a buffer consisting of two bit strings of length single_length into one string of packed t...
stp_lineoff_t * stp_get_lineoffsets_by_pass(const stp_vars_t *v, int pass)
const unsigned short * s_cache
Definition: curve-cache.h:44
@ STP_MXML_REAL
Definition: mxml.h:74
@ STP_PARAMETER_LEVEL_ADVANCED3
Definition: vars.h:99
void stp_clear_parameter(stp_vars_t *v, const char *parameter, stp_parameter_type_t type)
Clear a parameter.
char * stp_curve_write_string(const stp_curve_t *curve)
Write a curve to a string.
const stp_string_list_t * stp_refcache_list_cache_items(const char *cache)
Return a static list of items in a specified cache.
stp_node_namefunc stp_list_get_namefunc(const stp_list_t *list)
Get a list node name function.
void stp_vars_destroy(stp_vars_t *v)
Destroy a vars object.
void stp_string_list_add_string_unsafe(stp_string_list_t *list, const char *name, const char *text)
stp_list_t * stp_path_search(stp_list_t *dirlist, const char *suffix)
const double * stp_curve_get_data(const stp_curve_t *curve, size_t *count)
Get a pointer to the curve's raw data.
int stp_dither_get_last_position(stp_vars_t *v, int color, int subchan)
Simple directory path functions.
double y
Vertical position.
Definition: curve.h:108
int stp_array_set_point(stp_array_t *array, int x, int y, double data)
Set the data at a single point in the array.
int stp_color_register(const stp_color_t *color)
stp_parameter_type_t
Parameter types.
Definition: vars.h:63
stp_dimension_t stp_xmlstrtodim(const char *textval)
@ STP_PARAMETER_CLASS_OUTPUT
Definition: vars.h:84
int stp_sequence_set_ushort_data(stp_sequence_t *sequence, size_t count, const unsigned short *data)
Set the data in a sequence from unsigned short values.
stp_mxml_element_t element
Definition: mxml.h:100
const stp_papersize_t * stp_describe_papersize(const stp_vars_t *v, const char *name)
Get a papersize by name.
void stp_get_maximum_imageable_area(const stp_vars_t *v, stp_dimension_t *left, stp_dimension_t *right, stp_dimension_t *bottom, stp_dimension_t *top)
Get the maximum imagable area of the page.
@ STP_PARAMETER_TYPE_STRING_LIST
Definition: vars.h:64
int ncolors
Definition: weave.h:86
@ PAPERSIZE_TYPE_STANDARD
Standard paper size.
Definition: paper.h:63
stp_string_list_t * stp_parameter_get_categories(const stp_vars_t *v, const stp_parameter_t *desc)
Get the list of categories and their values for the specified parameter.
void stp_clear_dimension_parameter(stp_vars_t *v, const char *parameter)
Clear (remove) a dimension parameter.
int stp_string_list_is_present(const stp_string_list_t *list, const char *value)
unsigned * matrix
Definition: dither.h:98
@ STP_PARAMETER_LEVEL_INTERNAL
Definition: vars.h:101
const char * stp_check_version(unsigned int required_major, unsigned int required_minor, unsigned int required_micro)
Check whether the library provides the requested version.
stp_string_list_t * stp_string_list_create_from_params(const stp_param_string_t *list, size_t count)
@ STP_CURVE_BOUNDS_RESCALE
Rescale the bounds.
Definition: curve.h:95
int stp_check_string_parameter(const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active)
Check if a string parameter is set.
int stp_verify(stp_vars_t *v)
Verify parameters.
stp_string_list_t * str
Definition: vars.h:177
struct stp_dither_matrix_normal stp_dither_matrix_normal_t
int stp_color_count(void)
Get the number of available color modules.
stp_mxml_node_t * stp_mxmlNewDimension(stp_mxml_node_t *parent, stp_dimension_t real)
long stp_xmlstrtol(const char *value)
void stp_fold_3bit(const unsigned char *line, int single_length, unsigned char *outbuf)
Interleave a buffer consisting of three bit strings of length single_length into one string of packed...
void stp_write_weave(stp_vars_t *v, unsigned char *const cols[])
void stp_xml_preinit(void)
void stp_set_errfunc(stp_vars_t *v, stp_outfunc_t val)
Set the function used to print error information.
const char * stp_printer_get_driver(const stp_printer_t *p)
Get a printer model's short (driver) name.
const stp_raw_t * stp_get_raw_parameter(const stp_vars_t *v, const char *parameter)
Get a raw parameter.
char * string
Definition: mxml.h:95
const char * help
Definition: vars.h:162
const char * stp_color_get_long_name(const stp_color_t *c)
Get the long (translated) name of a color module.
String parameter.
Definition: string-list.h:44
stp_fillfunc stp_fill_uncompressed
void * rep
A pointer to an application-specific state information that might need to be associated with the imag...
Definition: image.h:123
void stp_set_boolean_parameter_active(stp_vars_t *v, const char *parameter, stp_parameter_activity_t active)
Set the activity of a boolean parameter.
stp_parameter_list_t stp_dither_list_parameters(const stp_vars_t *v)
void stp_image_reset(stp_image_t *image)
int stp_color_unregister(const stp_color_t *color)
int bytes
Definition: dither.h:68
int stp_get_model_id(const stp_vars_t *v)
stp_curve_t * stp_curve_create_reverse(const stp_curve_t *curve)
Reverse and allocate a curve.
stp_parameter_activity_t
Parameter activity.
Definition: vars.h:113
const char * stp_get_driver(const stp_vars_t *v)
Get the name of the printer driver.
void stp_set_left(stp_vars_t *v, stp_dimension_t val)
Set the left edge of the image.
const char * stp_mxmlElementGetAttr(stp_mxml_node_t *node, const char *name)
int y
Definition: dither.h:58
stp_list_t * stp_list_create(void)
Create a new list object.
int stp_check_int_parameter(const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active)
Check if an integer parameter is set.
void(* reset)(struct stp_image *image)
This callback is called to reset the image to the beginning.
Definition: image.h:79
void stp_puts(const char *s, const stp_vars_t *v)
stp_array_t * stp_array_create_from_stream(FILE *fp)
Create an array from a stream.
void stp_dither_matrix_init_from_dither_array(stp_dither_matrix_impl_t *mat, const stp_array_t *array, int transpose)
char * stp_strdup(const char *s)
const stp_curve_t * stp_channel_get_curve(stp_vars_t *v, int channel)
int stp_module_init(void)
@ STP_PARAMETER_LEVEL_ADVANCED4
Definition: vars.h:100
void stp_set_default_raw_parameter(stp_vars_t *v, const char *parameter, const void *value, size_t bytes)
Set a default raw parameter.
void stp_set_page_height(stp_vars_t *v, stp_dimension_t val)
Set the page height.
void stp_dither_internal(stp_vars_t *v, int row, const unsigned short *input, int duplicate_line, int zero_mask, const unsigned char *mask)
struct stp_module_version stp_module_version_t
stp_string_list_t * stp_list_parameters(const stp_vars_t *v, stp_parameter_type_t type)
List all parameters.
int stp_curve_set_short_data(stp_curve_t *curve, size_t count, const short *data)
Set the data points in a curve from short values.
void stp_get_size_limit(const stp_vars_t *v, stp_dimension_t *max_width, stp_dimension_t *max_height, stp_dimension_t *min_width, stp_dimension_t *min_height)
Get the media size limits.
void stp_channel_set_black_channel(stp_vars_t *v, int channel)
@ STP_PARAMETER_TYPE_DIMENSION
Definition: vars.h:72
const char * category
Definition: vars.h:161
double stp_dimension_t
Definition: types.h:32
stp_compute_linewidth_func stp_compute_tiff_linewidth
stp_mxml_type_t type
Definition: mxml.h:111
const stp_color_t * stp_get_color_by_name(const char *name)
Get a color module by its name.
struct stp_array stp_array_t
The array opaque data type.
Definition: array.h:50
int stp_end_job(const stp_vars_t *v, stp_image_t *image)
End a print job.
int stp_curve_get_point(const stp_curve_t *curve, size_t where, double *data)
Get a point along the curve.
stp_dimension_t width
Paper width.
Definition: paper.h:78
void stp_set_dimension_parameter_active(stp_vars_t *v, const char *parameter, stp_parameter_activity_t active)
Set the activity of a dimension parameter.
Gutenprint dimension type declarations.
int stp_get_int_parameter(const stp_vars_t *v, const char *parameter)
Get an integer parameter.
@ STP_PARAMETER_TYPE_BOOLEAN
Definition: vars.h:66
void stp_xml_parse_file_named(const char *name)
stp_param_string_t * stp_string_list_find(const stp_string_list_t *list, const char *name)
int * v
Definition: weave.h:92
stp_parameter_verify_t
Definition: vars.h:1561
stp_curve_t * stp_curve_create_from_stream(FILE *fp)
Create a curve from a stream.
stp_node_freefunc stp_list_get_freefunc(const stp_list_t *list)
Get a list node free function.
stp_node_copyfunc stp_list_get_copyfunc(const stp_list_t *list)
Get a list node copy function.
void stp_unpack_8(int height, int bits, const unsigned char *in, unsigned char *out0, unsigned char *out1, unsigned char *out2, unsigned char *out3, unsigned char *out4, unsigned char *out5, unsigned char *out6, unsigned char *out7)
Deprecated – use stp_unpack.
stp_mxml_node_t * stp_mxmlNewInteger(stp_mxml_node_t *parent, int integer)
stp_parameter_activity_t stp_get_dimension_parameter_active(const stp_vars_t *v, const char *parameter)
Get the activity status of a dimension parameter.
const char * stp_get_color_conversion(const stp_vars_t *v)
Get the name of the color conversion routine.
void stp_put16_be(unsigned short sh, const stp_vars_t *v)
void stp_set_outdata(stp_vars_t *v, void *val)
Set the output data.
void stp_split_4(int height, int bits, const unsigned char *in, unsigned char *out0, unsigned char *out1, unsigned char *out2, unsigned char *out3)
Deprecated – use stp_split.
const stp_printer_t * stp_get_printer_by_driver(const char *driver)
Get a printer model by its short name.
stp_curve_t * stp_curve_create_copy(const stp_curve_t *curve)
Copy and allocate a curve.
int stp_module_open(const char *modulename)
stp_mxml_node_t * stp_mxmlNewOpaque(stp_mxml_node_t *parent, const char *opaque)
void stp_prune_inactive_options(stp_vars_t *v)
void stp_set_boolean_parameter(stp_vars_t *v, const char *parameter, int value)
Set a boolean parameter.
stp_dimension_t lower
Definition: vars.h:150
void stp_fillfunc(stp_vars_t *v, int row, int subpass, int width, int missingstartrows, int color)
Definition: weave.h:120
const char * text
Long descriptive name (translated).
Definition: paper.h:74
int major
Definition: module.h:63
int logicalpassstart
Definition: weave.h:74
void stp_dither_set_ink_spread(stp_vars_t *v, int spread)
void stp_array_get_size(const stp_array_t *array, int *x_size, int *y_size)
Get the size of an array.
void stpi_print_xml_node(stp_mxml_node_t *node)
stp_mxml_type_e
Definition: mxml.h:70
stp_pass_t * stp_get_pass_by_pass(const stp_vars_t *v, int pass)
void stp_dither(stp_vars_t *v, int row, int duplicate_line, int zero_mask, const unsigned char *mask)
void * stp_zalloc(size_t)
char * stp_strndup(const char *s, int n)
stp_parameter_list_t stp_parameter_list_create(void)
Create a parameter_list.
void stp_curve_reverse(stp_curve_t *dest, const stp_curve_t *source)
Reverse a curve.
A simple reference cache.
stp_parameter_level_t p_level
Definition: vars.h:165
int stp_curve_set_bounds(stp_curve_t *curve, double low, double high)
Set the lower and upper bounds on a curve.
void stp_set_default_curve_parameter(stp_vars_t *v, const char *parameter, const stp_curve_t *value)
Set a default curve parameter.
int stp_list_item_destroy(stp_list_t *list, stp_list_item_t *item)
Destroy a list item.
const char * stp_get_string_parameter(const stp_vars_t *v, const char *parameter)
Get a string parameter.
void * stp_list_item_get_data(const stp_list_item_t *item)
Get the data associated with a list item.
int whitespace
Definition: mxml.h:94
void stp_set_raw_parameter(stp_vars_t *v, const char *parameter, const void *value, size_t bytes)
Set a raw parameter.
Parameter description.
Definition: vars.h:158
const stp_color_t * stp_get_color_by_index(int idx)
Get a color module by its index number.
char * value
Definition: mxml.h:82
const char * name
Short unique name (not translated).
Definition: paper.h:72
stp_mxml_node_t * stp_mxmlParent(stp_mxml_node_t *node)
void stp_set_file_parameter_n(stp_vars_t *v, const char *parameter, const char *value, size_t bytes)
Set a file parameter.
void stp_putc(int ch, const stp_vars_t *v)
int stp_curve_set_int_data(stp_curve_t *curve, size_t count, const int *data)
Set the data points in a curve from integer values.
void stp_channel_add(stp_vars_t *v, unsigned channel, unsigned subchannel, double value)
stp_array_t * stp_array_create_from_xmltree(stp_mxml_node_t *array)
void void stp_erprintf(const char *format,...) __attribute__((format(__printf__
stp_array_t * stp_find_standard_dither_array(int x_aspect, int y_aspect)
stp_curve_wrap_mode_t stp_curve_get_wrap(const stp_curve_t *curve)
Get the wrapping mode.
unsigned long stp_get_debug_level(void)
double stp_channel_get_gloss_limit(stp_vars_t *v)
void stp_set_errdata(stp_vars_t *v, void *val)
Set the error data.
@ STP_PARAMETER_CLASS_INVALID
Definition: vars.h:86
Raw parameter.
Definition: vars.h:125
void stp_unpack(int height, int bits, int n, const unsigned char *in, unsigned char **outs)
Unpack an input sequence of packed 1 or 2 bit integers into two or more outputs of equal length.
@ STP_PARAMETER_TYPE_INT
Definition: vars.h:65
stp_curve_t * stp_curve_cache_get_curve(stp_cached_curve_t *cache)
int integer
Definition: mxml.h:101
void stp_dither_init(stp_vars_t *v, stp_image_t *image, int out_width, int xdpi, int ydpi)
int prescaled
Definition: dither.h:78
unsigned fast_mask
Definition: dither.h:97
void stp_dither_describe_parameter(const stp_vars_t *v, const char *name, stp_parameter_t *description)
void stp_set_file_parameter_active(stp_vars_t *v, const char *parameter, stp_parameter_activity_t active)
Set the activity of a file parameter.
void stp_set_global_dbgdata(void *val)
Set global debug output data.
void stp_dither_set_matrix_from_dither_array(stp_vars_t *v, const stp_array_t *array, int transpose)
void stp_channel_set_cutoff_adjustment(stp_vars_t *v, int color, int subchannel, double adjustment)
stp_mxml_node_t * stp_xml_parse_file_from_path(const char *name, const char *topnodename, const char *path)
struct stp_mxml_value_s stp_mxml_element_t
struct stp_dither_matrix_short stp_dither_matrix_short_t
int stp_parameter_has_category_value(const stp_vars_t *v, const stp_parameter_t *desc, const char *category, const char *value)
Determine whether a parameter has a category with the specified value.
const unsigned * data
Definition: dither.h:70
void stp_mxmlElementSetAttr(stp_mxml_node_t *node, const char *name, const char *value)
int stp_list_item_create(stp_list_t *list, stp_list_item_t *next, const void *data)
Create a new list item.
void *(* stp_node_copyfunc)(const void *)
A callback function to copy the data a node contains.
Definition: list.h:77
void stp_array_set_size(stp_array_t *array, int x_size, int y_size)
Resize an array.
int physpassstart
Definition: weave.h:75
struct stp_dither_matrix_generic stp_dither_matrix_generic_t
const char * stp_printer_get_family(const stp_printer_t *p)
Get a printer model's family name.
stp_outfunc_t stp_get_errfunc(const stp_vars_t *v)
Get the function used to print output information.
int stp_get_printer_index_by_driver(const char *driver)
Get the printer index number from the printer model short (driver) name.
const unsigned long * stp_sequence_get_ulong_data(const stp_sequence_t *sequence, size_t *count)
Get the data in a sequence as unsigned long data.
int jet
Definition: weave.h:53
stp_fillfunc stp_fill_tiff
stp_string_list_t * stp_list_float_parameters(const stp_vars_t *v)
List all float parameters.
@ PAPERSIZE_METRIC_STANDARD
Metric units.
Definition: paper.h:53
double stp_channel_get_cutoff_adjustment(stp_vars_t *v, int color, int subchannel)
stp_list_t * stp_generate_path(const char *path)
void stp_clear_array_parameter(stp_vars_t *v, const char *parameter)
Clear an array parameter.
stp_mxml_node_t * stp_mxmlLoadFromFile(stp_mxml_node_t *top, const char *file, stp_mxml_type_t(*cb)(stp_mxml_node_t *))
@ STP_PARAMETER_LEVEL_BASIC
Definition: vars.h:95
int missingstartrows
Definition: weave.h:73
struct stp_compdata compdata_t
Definition: vars.h:1575
int stp_array_write(FILE *file, const stp_array_t *array)
Write an array to a file.
void stp_clear_string_parameter(stp_vars_t *v, const char *parameter)
Clear a string parameter.
int ncolors
Definition: weave.h:81
const char * comment
Definition: module.h:82
size_t bytes
Definition: vars.h:126
const char * stp_get_release_version(void)
Get the library release version string (x.y)
@ STP_PARAMETER_CLASS_CORE
Definition: vars.h:85
const char * version
Definition: module.h:81
void stp_putraw(const stp_raw_t *r, const stp_vars_t *v)
int index
Definition: dither.h:93
@ STP_MXML_INTEGER
Definition: mxml.h:72
int physpassend
Definition: weave.h:76
int physpassstart
Definition: weave.h:61
stp_list_t * stpi_list_files_on_data_path(const char *name)
stp_parameter_list_t stp_parameter_list_copy(stp_const_parameter_list_t list)
Copy and allocate a parameter_list.
stp_parameter_activity_t stp_get_int_parameter_active(const stp_vars_t *v, const char *parameter)
Get the activity status of an integer parameter.
const unsigned short * stp_curve_get_ushort_data(const stp_curve_t *curve, size_t *count)
Get pointer to the curve's raw data as unsigned shorts.
dimension_bound (range) parameter.
Definition: vars.h:149
void stp_array_set_data(stp_array_t *array, const double *data)
Set the data in an array.
unsigned char read_only
Definition: vars.h:170
stp_parameter_activity_t stp_get_file_parameter_active(const stp_vars_t *v, const char *parameter)
Get the activity status of a file parameter.
int stp_curve_set_gamma(stp_curve_t *curve, double f_gamma)
Set the gamma of a curve.
stp_mxml_node_t * stp_mxmlFindElement(stp_mxml_node_t *node, stp_mxml_node_t *top, const char *name, const char *attr, const char *value, int descend)
int total_size
Definition: dither.h:88
size_t stp_curve_count_points(const stp_curve_t *curve)
Get the number of allocated points in the curve.
const unsigned short * stp_curve_cache_get_ushort_data(stp_cached_curve_t *cache)
stp_mxml_node_t * stp_xml_parse_file_from_path_safe(const char *name, const char *topnodename, const char *path)
int stp_module_close(stp_list_item_t *module)
void stp_set_driver(stp_vars_t *v, const char *val)
Set the name of the printer driver.
void stp_set_array_parameter_active(stp_vars_t *v, const char *parameter, stp_parameter_activity_t active)
Set the activity of an array parameter.
char * stp_path_find_file(const char *path, const char *file)
void * stp_get_outdata(const stp_vars_t *v)
Get the output data.
int stp_image_width(stp_image_t *image)
stp_list_t * stp_data_path(void)
void * stp_get_errdata(const stp_vars_t *v)
Get the error data.
int stp_init(void)
Initialise libgimpprint.
int stp_dither_get_first_position(stp_vars_t *v, int color, int subchan)
stp_dimension_t stp_get_page_width(const stp_vars_t *v)
Get the page width.
@ STP_PARAMETER_INACTIVE
Definition: vars.h:114
int prescaled
Definition: dither.h:69
const void * stp_const_parameter_list_t
The constant parameter_list opaque data type.
Definition: vars.h:195
stp_dimension_t stp_get_dimension_parameter(const stp_vars_t *v, const char *parameter)
Get a dimension parameter.
int stp_packfunc(stp_vars_t *v, const unsigned char *line, int height, unsigned char *comp_buf, unsigned char **comp_ptr, int *first, int *last)
Definition: weave.h:115
stp_double_bound_t dbl
Definition: vars.h:174
void stp_put32_be(unsigned int sh, const stp_vars_t *v)
int y
Definition: dither.h:76
int stp_curve_set_interpolation_type(stp_curve_t *curve, stp_curve_type_t itype)
Set the curve interpolation type.
void stp_dither_add_channel(stp_vars_t *v, unsigned char *data, unsigned channel, unsigned subchannel)
int stp_xml_parse_file(const char *file)
double lower
Definition: vars.h:136
void stp_refcache_replace_item(const char *cache, const char *item, void *data)
Replace an item's data, or add if it doesn't exist.
int stp_module_load(void)
@ STP_WEAVE_ZIGZAG
Definition: weave.h:107
int stp_curve_set_data(stp_curve_t *curve, size_t count, const double *data)
Set all data points of the curve.
stp_linecount_t * stp_get_linecount_by_pass(const stp_vars_t *v, int pass)
void stp_parameter_description_destroy(stp_parameter_t *description)
Destroy a parameter description.
@ PARAMETER_INACTIVE
Definition: vars.h:1564
unsigned char is_mandatory
Definition: vars.h:166
stp_parameter_list_t stp_color_list_parameters(const stp_vars_t *v)
void stp_channel_initialize(stp_vars_t *v, stp_image_t *image, int input_channel_count)
stp_dimension_t stp_get_top(const stp_vars_t *v)
Get the top edge of the image.
struct stp_vars stp_vars_t
The vars opaque data type.
Definition: vars.h:55
int stp_array_get_point(const stp_array_t *array, int x, int y, double *data)
Get the data at a single point in the array.
void stp_weave_parameters_by_row(const stp_vars_t *v, int row, int vertical_subpass, stp_weave_t *w)
int stp_curve_set_point(stp_curve_t *curve, size_t where, double data)
Set a point along the curve.
stp_sequence_t * stp_sequence_create_reverse(const stp_sequence_t *sequence)
Reverse and allocate a sequence.
int stp_sequence_set_int_data(stp_sequence_t *sequence, size_t count, const int *data)
Set the data in a sequence from int values.
void stp_clear_raw_parameter(stp_vars_t *v, const char *parameter)
Clear a raw parameter.
const char * name
Definition: module.h:80
void stp_curve_get_range(const stp_curve_t *curve, double *low, double *high)
stp_curve_t * curve
Definition: vars.h:173
const unsigned int * stp_sequence_get_uint_data(const stp_sequence_t *sequence, size_t *count)
Get the data in a sequence as unsigned int data.
stp_parameter_activity_t stp_get_string_parameter_active(const stp_vars_t *v, const char *parameter)
Get the activity status of a string parameter.
stp_string_list_t * stp_list_curve_parameters(const stp_vars_t *v)
List all curve parameters.
void stp_list_node_free_data(void *item)
Free node data allocated with stp_malloc.
const stp_string_list_t * stp_refcache_list_caches(void)
Return a static list of all caches in existence.
char * opaque
Definition: mxml.h:102
stp_sequence_t * stp_sequence_create_copy(const stp_sequence_t *sequence)
Copy and allocate a sequence.
int stp_curve_set_ulong_data(stp_curve_t *curve, size_t count, const unsigned long *data)
Set the data points in a curve from unsigned long values.
unsigned char channel
Definition: vars.h:168
const char * short_name
Definition: color.h:57
void(* conclude)(struct stp_image *image)
This callback is called at the end of each page.
Definition: image.h:118
void stp_curve_get_bounds(const stp_curve_t *curve, double *low, double *high)
Get the lower and upper bounds on a curve.
int i_own
Definition: dither.h:94
int stp_color_get_row(stp_vars_t *v, stp_image_t *image, int row, unsigned *zero_mask)
void stp_set_page_width(stp_vars_t *v, stp_dimension_t val)
Set the page width.
int stp_sequence_set_long_data(stp_sequence_t *sequence, size_t count, const long *data)
Set the data in a sequence from long values.
stp_mxml_node_t * stp_xmltree_create_from_sequence(const stp_sequence_t *seq)
int stp_image_height(stp_image_t *image)
stp_parameter_activity_t stp_get_boolean_parameter_active(const stp_vars_t *v, const char *parameter)
Get the activity status of a boolean parameter.
void stp_set_default_boolean_parameter(stp_vars_t *v, const char *parameter, int value)
Set a default boolean parameter.
int last_x
Definition: dither.h:89
stp_array_t * array
Definition: vars.h:178
@ STP_WEAVE_ASCENDING_2X
Definition: weave.h:110
struct stp_printer stp_printer_t
The printer opaque data type (representation of printer model).
Definition: printers.h:50
char * stp_rawtoxmlstr(const stp_raw_t *raw)
void stp_xml_free_parsed_file(stp_mxml_node_t *node)
@ STP_PARAMETER_LEVEL_EXTERNAL
Definition: vars.h:102
stp_mxml_node_t * stp_xml_parse_file_from_path_uncached(const char *name, const char *topnodename, const char *path)
void stp_image_init(stp_image_t *image)
void * handle
Definition: module.h:87
void stp_unpack_16(int height, int bits, const unsigned char *in, unsigned char *out0, unsigned char *out1, unsigned char *out2, unsigned char *out3, unsigned char *out4, unsigned char *out5, unsigned char *out6, unsigned char *out7, unsigned char *out8, unsigned char *out9, unsigned char *out10, unsigned char *out11, unsigned char *out12, unsigned char *out13, unsigned char *out14, unsigned char *out15)
Deprecated – use stp_unpack.
stp_mxml_node_t * stp_mxmlNewElement(stp_mxml_node_t *parent, const char *name)
int stp_curve_set_float_data(stp_curve_t *curve, size_t count, const float *data)
Set the data points in a curve from float values.
stp_sequence_t * stp_sequence_create(void)
Create a new sequence.
const unsigned int stp_minor_version
The library minor version number.
void stp_initialize_weave(stp_vars_t *v, int jets, int separation, int oversample, int horizontal, int vertical, int ncolors, int bitwidth, int linewidth, int line_count, int first_line, int page_height, const int *head_offset, stp_weave_strategy_t, stp_flushfunc, stp_fillfunc, stp_packfunc, stp_compute_linewidth_func)
void stp_set_raw_parameter_active(stp_vars_t *v, const char *parameter, stp_parameter_activity_t active)
Set the activity of a raw parameter.
@ STP_CURVE_COMPOSE_EXPONENTIATE
Exponentiate composition.
Definition: curve.h:88
Mini-XML XML parsing functions.
int stp_sequence_set_uint_data(stp_sequence_t *sequence, size_t count, const unsigned int *data)
Set the data in a sequence from unsigned int values.
void stp_dither_set_inks(stp_vars_t *v, int color, double density, double darkness, int nshades, const double *svalues, int ndotsizes, const double *dvalues)
void * stp_parameter_list_t
The parameter_list opaque data type.
Definition: vars.h:193
int stp_list_destroy(stp_list_t *list)
Destroy a list object.
int stp_curve_set_ushort_data(stp_curve_t *curve, size_t count, const unsigned short *data)
Set the data points in a curve from unsigned short values.
double x
Horizontal position.
Definition: curve.h:106
void * syms
Definition: module.h:91
void stp_curve_cache_set_curve(stp_cached_curve_t *cache, stp_curve_t *curve)
stp_curve_type_t
Curve types.
Definition: curve.h:64
int stp_sequence_set_ulong_data(stp_sequence_t *sequence, size_t count, const unsigned long *data)
Set the data in a sequence from unsigned long values.
int stp_verify_printer_params(stp_vars_t *v)
union stp_mxml_value_u stp_mxml_value_t
Point (x,y) for piecewise curve.
Definition: curve.h:104
stp_curve_type_t stp_curve_get_interpolation_type(const stp_curve_t *curve)
Get the curve interpolation type.
stp_curve_t * stp_curve_get_subrange(const stp_curve_t *curve, size_t start, size_t count)
Get a curve containing a subrange of data.
int y_size
Definition: dither.h:87
stp_string_list_t * stp_list_dimension_parameters(const stp_vars_t *v)
List all dimension parameters.
void stp_unregister_xml_preload(const char *filename)
char * stpi_path_merge(const char *path, const char *file)
void stp_dither_matrix_scale_exponentially(stp_dither_matrix_impl_t *mat, double exponent)
int num_attrs
Definition: mxml.h:88
void stp_list_set_sortfunc(stp_list_t *list, stp_node_sortfunc sortfunc)
Set a list node sort function.
const short * stp_sequence_get_short_data(const stp_sequence_t *sequence, size_t *count)
Get the data in a sequence as short data.
stp_mxml_node_t * next
Definition: mxml.h:112
stp_curve_t * stp_curve_create_from_xmltree(stp_mxml_node_t *da)
void stp_set_array_parameter(stp_vars_t *v, const char *parameter, const stp_array_t *value)
Set an array parameter.
const float * stp_curve_get_float_data(const stp_curve_t *curve, size_t *count)
Get pointer to the curve's raw data as floats.
const unsigned int stp_current_interface
The library ABI revision number (number of incompatible revisions).
const char * stp_get_version(void)
Get the library version string (x.y.z)
int stp_check_file_parameter(const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active)
Check if a file parameter is set.
void stp_mxmlAdd(stp_mxml_node_t *parent, int where, stp_mxml_node_t *child, stp_mxml_node_t *node)
struct stp_shade stp_shade_t
int stp_mxmlSaveFile(stp_mxml_node_t *node, FILE *fp, int(*cb)(stp_mxml_node_t *, int))
void stp_set_default_float_parameter(stp_vars_t *v, const char *parameter, double value)
Set a default float parameter.
@ STP_MXML_OPAQUE
Definition: mxml.h:73
void stp_merge_printvars(stp_vars_t *user, const stp_vars_t *print)
Merge defaults for a printer with user-chosen settings.
void stp_clear_boolean_parameter(stp_vars_t *v, const char *parameter)
Clear (remove) a boolean parameter.
void stp_refcache_destroy(const char *cache)
Destroy a cache.
void stp_vars_fill_from_xmltree(stp_mxml_node_t *da, stp_vars_t *v)
void stp_list_set_long_namefunc(stp_list_t *list, stp_node_namefunc long_namefunc)
Set a list node long name function.
int stp_dither_matrix_validate_array(const stp_array_t *array)
int stp_curve_set_data_points(stp_curve_t *curve, size_t count, const stp_curve_point_t *data)
Set all data points of the curve.
void stp_channel_reset_channel(stp_vars_t *v, int channel)
stp_module_class_t
Definition: module.h:69
void stp_channel_set_gloss_channel(stp_vars_t *v, int channel)
void stp_dither_set_matrix(stp_vars_t *v, const stp_dither_matrix_generic_t *mat, int transpose, int x_shear, int y_shear)
stp_mxml_node_t * stp_xmldoc_create_generic(void)
void stp_set_global_errfunc(stp_outfunc_t val)
Set global error output function.
stp_mxml_node_t * stp_mxmlNewReal(stp_mxml_node_t *parent, double real)
const char * stp_printer_get_manufacturer(const stp_printer_t *p)
Get a printer model's manufacturer's name.
const double * d_cache
Definition: curve-cache.h:43
void stp_list_set_freefunc(stp_list_t *list, stp_node_freefunc freefunc)
Set a list node free function.
void stp_dither_set_inks_full(stp_vars_t *v, int color, int nshades, const stp_shade_t *shades, double density, double darkness)
const stp_curve_point_t * stp_curve_get_data_points(const stp_curve_t *curve, size_t *count)
Get a pointer to the curve's raw data as points.
int stp_compute_linewidth_func(stp_vars_t *v, int n)
Definition: weave.h:123
void stp_refcache_remove_item(const char *cache, const char *item)
Remove an item from cache.
void stp_parameter_list_append(stp_parameter_list_t list, stp_const_parameter_list_t append)
Append one parameter_list to another.
stp_list_t * stp_list_copy(const stp_list_t *list)
Copy and allocate a list object.
const stp_parameter_t * stp_parameter_find_in_settings(const stp_vars_t *v, const char *name)
Find a parameter by its name from a vars object.
int x_size
Definition: dither.h:86
int stp_channel_get_black_channel(stp_vars_t *v)
stp_list_t * stp_module_get_class(stp_module_class_t class)
const char * text
Definition: string-list.h:46
double stp_channel_get_ink_limit(stp_vars_t *v)
int stp_curve_set_subrange(stp_curve_t *curve, const stp_curve_t *range, size_t start)
void void void stp_init_debug_messages(stp_vars_t *v)
void stp_set_top(stp_vars_t *v, stp_dimension_t val)
Set the top edge of the image.
char * stp_parameter_get_category(const stp_vars_t *v, const stp_parameter_t *desc, const char *category)
Get the value of a specified category for the specified parameter.
stp_mxml_node_t * stp_mxmlWalkNext(stp_mxml_node_t *node, stp_mxml_node_t *top, int descend)
void stp_dither_matrix_init_short(stp_dither_matrix_impl_t *mat, int x_size, int y_size, const unsigned short *array, int transpose, int prescaled)
void stp_set_printer_defaults(stp_vars_t *v, const stp_printer_t *p)
Set a vars object to use a particular driver, and set the parameters to their defaults.
int bytes
Definition: dither.h:59
stp_mxml_node_t * stp_xmltree_create_from_array(const stp_array_t *array)
void stp_vars_fill_from_xmltree_ref(stp_mxml_node_t *da, stp_mxml_node_t *root, stp_vars_t *v)
Definition: curve-cache.h:41
stp_string_list_t * stp_list_file_parameters(const stp_vars_t *v)
List all file parameters.
void stp_flushfunc(stp_vars_t *v, int passno, int vertical_subpass)
Definition: weave.h:122
void(* stp_free_data_func_t)(void *)
Definition: vars.h:1558
const unsigned short * stp_sequence_get_ushort_data(const stp_sequence_t *sequence, size_t *count)
Get the data in a sequence as unsigned short data.
void stp_set_default_file_parameter_n(stp_vars_t *v, const char *parameter, const char *value, size_t bytes)
Set a default file parameter.
stp_parameter_activity_t stp_get_float_parameter_active(const stp_vars_t *v, const char *parameter)
Get the activity status of a float parameter.
void stp_fill_parameter_settings(stp_parameter_t *desc, const stp_parameter_t *param)
stp_parameter_activity_t stp_get_array_parameter_active(const stp_vars_t *v, const char *parameter)
Get the activity status of an array parameter.
stp_list_item_t * stp_list_get_end(const stp_list_t *list)
Find the last item in a list.
void stp_initialize_printer_defaults(void)
void stp_set_parameter_active(stp_vars_t *v, const char *parameter, stp_parameter_activity_t active, stp_parameter_type_t type)
Set the activity of a parameter.
stp_string_list_t * stp_string_list_create_copy(const stp_string_list_t *list)
@ PAPERSIZE_TYPE_ENVELOPE
Envelope.
Definition: paper.h:65
stp_packfunc stp_pack_tiff
stp_list_item_t * stp_list_item_next(const stp_list_item_t *item)
Get the next item in the list.
void(* stp_outfunc_t)(void *data, const char *buffer, size_t bytes)
Output function supplied by the calling application.
Definition: vars.h:206
int stp_check_array_parameter(const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active)
Check if an array parameter is set.
@ STP_PARAMETER_DEFAULTED
Definition: vars.h:115
stp_papersize_type_t paper_size_type
Paper size type.
Definition: paper.h:92
const stp_parameter_t * stp_parameter_find(stp_const_parameter_list_t list, const char *name)
Find a parameter by its name.
void stp_list_set_namefunc(stp_list_t *list, stp_node_namefunc namefunc)
Set a list node name function.
int last_y
Definition: dither.h:91
void(* stp_node_freefunc)(void *)
A callback function to free the data a node contains.
Definition: list.h:70
stp_curve_t * stp_curve_create_from_string(const char *string)
Create a curve from a string.
void stp_vars_copy(stp_vars_t *dest, const stp_vars_t *source)
Copy a vars object.
stp_string_list_t * stp_list_string_parameters(const stp_vars_t *v)
List all string parameters.
void stp_fold_8bit(const unsigned char *line, int single_length, unsigned char *outbuf)
Interleave a buffer consisting of eight bit strings of length single_length into one string of packed...
int bytes
Definition: dither.h:77
void stp_flush_debug_messages(stp_vars_t *v)
int(* stp_node_sortfunc)(const void *, const void *)
A callback function to compare two nodes.
Definition: list.h:94
int * start_pos
Definition: weave.h:102
stp_string_list_t * stp_list_int_parameters(const stp_vars_t *v)
List all integer parameters.
const stp_printer_t * stp_get_printer(const stp_vars_t *v)
Get the printer model from a vars object.
void void void void stp_catprintf(char **strp, const char *format,...) __attribute__((format(__printf__
@ STP_MODULE_CLASS_MISC
Definition: module.h:71
void stp_channel_set_density_adjustment(stp_vars_t *v, int color, int subchannel, double adjustment)
unsigned short * stp_channel_get_input(const stp_vars_t *v)
void stp_register_xml_preload(const char *filename)
void stp_mxmlDelete(stp_mxml_node_t *node)
void stp_default_media_size(const stp_vars_t *v, stp_dimension_t *width, stp_dimension_t *height)
Get the default paper dimensions for the current configuration.
int ncolors
Definition: weave.h:91
stp_vars_t * stp_vars_create_copy(const stp_vars_t *source)
Copy and allocate a vars object.
char * stp_array_write_string(const stp_array_t *array)
Write an array to a string.
@ STP_PARAMETER_LEVEL_INVALID
Definition: vars.h:103
void stp_set_default_string_parameter(stp_vars_t *v, const char *parameter, const char *value)
Set a default string parameter.
int stp_xml_init_defaults(void)
struct stp_color stp_color_t
@ STP_CURVE_BOUNDS_ERROR
Error if bounds are violated.
Definition: curve.h:99
struct stp_sequence stp_sequence_t
The sequence opaque data type.
Definition: sequence.h:48
const char * stp_describe_output(const stp_vars_t *v)
void * stp_get_component_data(const stp_vars_t *v, const char *name)
stp_parameter_activity_t stp_get_parameter_active(const stp_vars_t *v, const char *parameter, stp_parameter_type_t type)
Get the activity status of a parameter.
@ PAPERSIZE_ENGLISH_EXTENDED
English/Imperial units (optional paper, not displayed by default).
Definition: paper.h:55
char * name
Definition: mxml.h:87
@ PARAMETER_OK
Definition: vars.h:1563
int stp_list_get_length(const stp_list_t *list)
Get the length of a list.
void stp_dither_matrix_copy(const stp_dither_matrix_impl_t *src, stp_dither_matrix_impl_t *dest)
stp_string_list_t * stp_list_raw_parameters(const stp_vars_t *v)
List all raw parameters.
stp_parameter_list_t stp_get_parameter_list(const stp_vars_t *v)
List the available parameters for the currently chosen settings.
void stp_channel_set_gcr_curve(stp_vars_t *v, const stp_curve_t *curve)
stp_dimension_t upper
Definition: vars.h:151
void void stp_deprintf(unsigned long level, const char *format,...) __attribute__((format(__printf__
const unsigned int stp_micro_version
The library micro version number.
@ STP_WEAVE_DESCENDING
Definition: weave.h:109
int stp_check_parameter(const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active, stp_parameter_type_t type)
Check if a parameter is set.
stp_dimension_bound_t dimension
Definition: vars.h:176
void stp_unpack_4(int height, int bits, const unsigned char *in, unsigned char *out0, unsigned char *out1, unsigned char *out2, unsigned char *out3)
Deprecated – use stp_unpack.
int x
Definition: dither.h:75
const int * stp_curve_get_int_data(const stp_curve_t *curve, size_t *count)
Get pointer to the curve's raw data as integers.
void stp_set_global_dbgfunc(stp_outfunc_t val)
Set global debug output function.
stp_array_t * stp_array_create_copy(const stp_array_t *array)
Copy and allocate an array.
stp_mxml_node_t * stp_mxmlLoadString(stp_mxml_node_t *top, const char *s, stp_mxml_type_t(*cb)(stp_mxml_node_t *))
stp_string_list_t * stp_list_boolean_parameters(const stp_vars_t *v)
List all boolean parameters.
@ STP_PARAMETER_LEVEL_ADVANCED1
Definition: vars.h:97
double upper
Definition: vars.h:137
void stp_unregister_xml_parser(const char *name)
@ STP_PARAMETER_CLASS_FEATURE
Definition: vars.h:83
const char * stp_printer_get_long_name(const stp_printer_t *p)
Get a printer model's long (translated) name.
stp_curve_bounds_t
Behaviour when curve exceeds bounds.
Definition: curve.h:93
const unsigned int stp_binary_age
The library ABI binary age number (number of forward-compatible revisions).
int missingstartrows
Definition: weave.h:54
void stp_image_conclude(stp_image_t *image)
int boolean
Definition: vars.h:186
@ STP_IMAGE_STATUS_OK
Definition: image.h:54
void stp_clear_curve_parameter(stp_vars_t *v, const char *parameter)
Clear a curve parameter.
struct stp_list_item stp_list_item_t
The list item opaque data type.
Definition: list.h:57
double dbl
Definition: vars.h:183
void stp_sequence_copy(stp_sequence_t *dest, const stp_sequence_t *source)
Copy a sequence.
stp_parameter_verify_t stp_verify_parameter(const stp_vars_t *v, const char *parameter, int quiet)
int stp_color_init(stp_vars_t *v, stp_image_t *image, size_t steps)
stp_outfunc_t stp_get_outfunc(const stp_vars_t *v)
Get the function used to print output information.
stp_mxml_attr_t * attrs
Definition: mxml.h:89
int upper
Definition: vars.h:144
unsigned short * stp_channel_get_output(const stp_vars_t *v)
void stp_printer_describe_parameter(const stp_vars_t *v, const char *name, stp_parameter_t *description)
char * v
Definition: weave.h:87
stp_mxml_node_t * stp_xmltree_create_from_vars(const stp_vars_t *v)
const void * data
Definition: vars.h:127
stp_curve_t * stp_read_and_compose_curves(const char *s1, const char *s2, stp_curve_compose_t comp, size_t piecewise_point_count)
@ PARAMETER_BAD
Definition: vars.h:1562
int logicalpassstart
Definition: weave.h:58
int stp_mxmlSaveString(stp_mxml_node_t *node, char *buffer, int bufsize, int(*cb)(stp_mxml_node_t *, int))
int last_x_mod
Definition: dither.h:90
@ STP_MXML_DIMENSION
Definition: mxml.h:76
const unsigned int * stp_curve_get_uint_data(const stp_curve_t *curve, size_t *count)
Get pointer to the curve's raw data as unsigned integers.
struct stp_curve stp_curve_t
The curve opaque data type.
Definition: curve.h:60
void * stp_realloc(void *ptr, size_t)
void stp_describe_parameter(const stp_vars_t *v, const char *name, stp_parameter_t *description)
Describe a parameter in detail.
unsigned long stp_xmlstrtoul(const char *value)
void stp_set_dbgdata(stp_vars_t *v, void *val)
Set the debug output data.
@ STP_CURVE_TYPE_SPLINE
Spline interpolation.
Definition: curve.h:68
void stp_set_default_int_parameter(stp_vars_t *v, const char *parameter, int value)
Set a default integer parameter.
stp_mxml_node_t * last_child
Definition: mxml.h:116
unsigned long * v
Definition: weave.h:82
struct stp_mxml_attr_s stp_mxml_attr_t
int stp_sequence_set_subrange(stp_sequence_t *sequence, size_t where, size_t size, const double *data)
Set the data in a subrange of a sequence.
stp_parameter_activity_t stp_get_curve_parameter_active(const stp_vars_t *v, const char *parameter)
Get the activity status of a curve parameter.
@ STP_CURVE_TYPE_LINEAR
Linear interpolation.
Definition: curve.h:66
int x
Definition: dither.h:57
size_t count
Definition: curve-cache.h:45
stp_string_list_t * stp_get_external_options(const stp_vars_t *v)
Retrieve options that need to be passed to the underlying print system.
stp_list_item_t * stp_list_item_prev(const stp_list_item_t *item)
Get the previous item in the list.
const void * data
Definition: dither.h:79
int stp_resolution_t
Definition: types.h:34
const float * stp_sequence_get_float_data(const stp_sequence_t *sequence, size_t *count)
Get the data in a sequence as float data.
const stp_vars_t * stp_default_settings(void)
Get default global settings.
@ STP_CURVE_COMPOSE_ADD
Add composition.
Definition: curve.h:84
void stp_set_height(stp_vars_t *v, stp_dimension_t val)
Set the height of the image.
void stp_set_float_parameter(stp_vars_t *v, const char *parameter, double value)
Set a float parameter.
double stp_curve_get_gamma(const stp_curve_t *curve)
Get the gamma value of the curve.
int stp_print(const stp_vars_t *v, stp_image_t *image)
Print the image.
void * stp_get_global_dbgdata(void)
Get global debug output data.
stp_mxml_node_t * stp_mxmlNewText(stp_mxml_node_t *parent, int whitespace, const char *string)
void stp_string_list_add_string(stp_string_list_t *list, const char *name, const char *text)
stp_curve_t * stp_curve_create(stp_curve_wrap_mode_t wrap)
Create a new curve.
int integer
Definition: vars.h:185
void stp_array_get_data(const stp_array_t *array, size_t *size, const double **data)
Get the data in an array.
void stp_set_outfunc(stp_vars_t *v, stp_outfunc_t val)
Set the function used to print output information.
void stp_put32_le(unsigned int sh, const stp_vars_t *v)
void stp_sequence_reverse(stp_sequence_t *dest, const stp_sequence_t *source)
Reverse a sequence.
void * stp_malloc(size_t)
int pass
Definition: weave.h:72
void stp_dither_matrix_destroy(stp_dither_matrix_impl_t *mat)
stp_parameter_class_t
Parameter class.
Definition: vars.h:82
int stp_refcache_create(const char *name)
Create a new object cache.
void void stp_zfwrite(const char *buf, size_t bytes, size_t nitems, const stp_vars_t *v)
void stp_copy_vars_from(stp_vars_t *to, const stp_vars_t *from)
Copy settings from one vars object to another, not modifying anything unset in the source.
int subpass
Definition: weave.h:77
void stp_set_default_file_parameter(stp_vars_t *v, const char *parameter, const char *value)
Set a default file parameter.
@ STP_PARAMETER_TYPE_INVALID
Definition: vars.h:73
const stp_printer_t * stp_get_printer_by_device_id(const char *device_id)
Get a printer model by its IEEE 1284 device ID.
void stp_sequence_get_data(const stp_sequence_t *sequence, size_t *size, const double **data)
Get the data in a sequence.
unsigned char * stp_channel_get_output_8bit(const stp_vars_t *v)
@ STP_CURVE_COMPOSE_MULTIPLY
Multiply composition.
Definition: curve.h:86
stp_array_t * stp_array_create_from_file(const char *file)
Create an array from a stream.
@ STP_PARAMETER_TYPE_FILE
Definition: vars.h:69
int lower
Definition: vars.h:143
stp_mxml_node_t * prev
Definition: mxml.h:113
int prescaled
Definition: dither.h:60
void stp_channel_set_curve(stp_vars_t *v, int channel, const stp_curve_t *curve)
int row
Definition: weave.h:51
void stp_string_list_destroy(stp_string_list_t *list)
stp_image_status_t stp_image_get_row(stp_image_t *image, unsigned char *data, size_t limit, int row)
const char * stp_color_get_name(const stp_color_t *c)
Get the short (untranslated) name of a color module.
stp_parameter_list_t stp_printer_list_parameters(const stp_vars_t *v)
unsigned bit_pattern
Definition: dither.h:130
void stp_prtraw(const stp_raw_t *raw, FILE *fp)
stp_mxml_node_t * stp_xml_get_node(stp_mxml_node_t *xmlroot,...)
int stp_get_verified(const stp_vars_t *v)
void stp_set_curve_parameter(stp_vars_t *v, const char *parameter, const stp_curve_t *value)
Set a curve parameter.
stp_int_bound_t integer
Definition: vars.h:175
stp_curve_compose_t
Composition types.
Definition: curve.h:82
stp_list_item_t * stp_list_get_item_by_long_name(const stp_list_t *list, const char *long_name)
Find an item in a list by its long name.
void stp_send_command(const stp_vars_t *v, const char *command, const char *format,...)
void * stp_get_dbgdata(const stp_vars_t *v)
Get the debug output data.
const stp_dotsize_t * dot_sizes
Definition: dither.h:138
stp_mxml_node_t * stp_mxmlLoadFile(stp_mxml_node_t *top, FILE *fp, stp_mxml_type_t(*cb)(stp_mxml_node_t *))
int x
Definition: dither.h:66
int y_offset
Definition: dither.h:96
void stp_dither_matrix_init(stp_dither_matrix_impl_t *mat, int x_size, int y_size, const unsigned int *array, int transpose, int prescaled)
void stp_split(int height, int bits, int n, const unsigned char *in, int stride, unsigned char **outs)
Split an input sequence of packed 1 or 2 bit integers into two or more outputs of equal length,...
enum stp_mxml_type_e stp_mxml_type_t
stp_dimension_t stp_get_left(const stp_vars_t *v)
Get the left edge of the image.
size_t stp_parameter_list_count(stp_const_parameter_list_t list)
List the number of available parameters for the currently chosen settings.
int stp_curve_interpolate_value(const stp_curve_t *curve, double where, double *result)
Interpolate a point along the curve.
void stp_dither_matrix_shear(stp_dither_matrix_impl_t *mat, int x_shear, int y_shear)
@ STP_PARAMETER_TYPE_CURVE
Definition: vars.h:68
void *(* stp_copy_data_func_t)(void *)
Definition: vars.h:1557
void stp_set_color_conversion_n(stp_vars_t *v, const char *val, int bytes)
Set the name of the color conversion routine, if not the default.
void stp_curve_destroy(stp_curve_t *curve)
Destroy an curve.
void stp_copy_options(stp_vars_t *vd, const stp_vars_t *vs)
int_bound (range) parameter.
Definition: vars.h:142
int stp_printer_model_count(void)
Get the number of available printer models.
void stp_write_raw(const stp_raw_t *raw, const stp_vars_t *v)
void stp_curve_cache_curve_data(stp_cached_curve_t *cache)
void stp_string_list_remove_string(stp_string_list_t *list, const char *name)
const char *(* stp_node_namefunc)(const void *)
A callback function to get the name of a node.
Definition: list.h:85
int stp_sequence_set_float_data(stp_sequence_t *sequence, size_t count, const float *data)
Set the data in a sequence from float values.
stp_mxml_node_t * stp_xmltree_create_from_curve(const stp_curve_t *curve)
void stp_destroy_component_data(stp_vars_t *v, const char *name)
struct dither_matrix_impl stp_dither_matrix_impl_t
void stp_dither_matrix_set_row(stp_dither_matrix_impl_t *mat, int y)
struct stp_dotsize stp_dotsize_t
stp_sequence_t * stp_sequence_create_from_xmltree(stp_mxml_node_t *da)
void stp_set_string_parameter(stp_vars_t *v, const char *parameter, const char *value)
Set a string parameter.
const stp_linebufs_t * stp_get_linebases_by_pass(const stp_vars_t *v, int pass)
void stp_flush_all(stp_vars_t *v)
void stp_set_string_parameter_n(stp_vars_t *v, const char *parameter, const char *value, size_t bytes)
Set a string parameter.
void stp_curve_cache_curve_invalidate(stp_cached_curve_t *cache)
int stp_curve_is_piecewise(const stp_curve_t *curve)
Determine whether the curve is piecewise.
struct stp_image stp_image_t
The image type is an abstract data type for interfacing with the image creation program.
size_t stp_strlen(const char *s)
const stp_sequence_t * stp_array_get_sequence(const stp_array_t *array)
Get the underlying stp_sequence_t.
@ STP_MODULE_CLASS_COLOR
Definition: module.h:73
unsigned char ** v
Definition: weave.h:97
void(* init)(struct stp_image *image)
This callback is used to perform any initialization required by the image layer for the image.
Definition: image.h:71
void stp_dither_matrix_iterated_init(stp_dither_matrix_impl_t *mat, size_t size, size_t exponent, const unsigned *array)
int pass
Definition: weave.h:52
void stp_dither_set_transition(stp_vars_t *v, double)
int(* stp_xml_parse_func)(stp_mxml_node_t *node, const char *file)
Definition: xml.h:36
void stp_set_int_parameter_active(stp_vars_t *v, const char *parameter, stp_parameter_activity_t active)
Set the activity of an integer parameter.
int stp_sequence_set_size(stp_sequence_t *sequence, size_t size)
Set the sequence size.
void stp_allocate_component_data(stp_vars_t *v, const char *name, stp_copy_data_func_t copyfunc, stp_free_data_func_t freefunc, void *data)
const stp_color_t * stp_get_color_by_colorfuncs(stp_colorfuncs_t *colorfuncs)
@ STP_PARAMETER_TYPE_ARRAY
Definition: vars.h:71
@ STP_PARAMETER_LEVEL_ADVANCED2
Definition: vars.h:98
void stp_set_driver_n(stp_vars_t *v, const char *val, int bytes)
Set the name of the printer driver.
double stp_channel_get_value(stp_vars_t *v, unsigned channel, unsigned subchannel)
int stp_sequence_set_point(stp_sequence_t *sequence, size_t where, double data)
Set the data at a single point in a sequence.
void stp_dither_set_randomizer(stp_vars_t *v, int color, double)
void stp_set_verified(stp_vars_t *v, int value)
stp_packfunc stp_pack_uncompressed
struct stp_module stp_module_t
stp_papersize_unit_t
Units of measurement.
Definition: paper.h:49
void stp_zprintf(const stp_vars_t *v, const char *format,...) __attribute__((format(__printf__
int minor
Definition: module.h:64
const stp_curve_t * stp_get_curve_parameter(const stp_vars_t *v, const char *parameter)
Get a curve parameter.
stp_list_item_t * stp_list_get_item_by_index(const stp_list_t *list, int idx)
Find an item in a list by its index.
void stp_set_color_conversion(stp_vars_t *v, const char *val)
Set the name of the color conversion routine, if not the default.
const long * stp_curve_get_long_data(const stp_curve_t *curve, size_t *count)
Get pointer to the curve's raw data as longs.
void stp_unpack_2(int height, int bits, const unsigned char *in, unsigned char *outlo, unsigned char *outhi)
Deprecated – use stp_unpack.
@ STP_WEAVE_STAGGERED
Definition: weave.h:111
const double * stp_curve_cache_get_double_data(stp_cached_curve_t *cache)
int base
Definition: dither.h:84
const unsigned short * data
Definition: dither.h:61
const unsigned int stp_major_version
The library major version number.
@ STP_IMAGE_STATUS_ABORT
Definition: image.h:55
stp_mxml_node_t * parent
Definition: mxml.h:114
void stp_channel_set_ink_limit(stp_vars_t *v, double limit)
void stp_mxmlRemove(stp_mxml_node_t *node)
void stp_set_string_parameter_active(stp_vars_t *v, const char *parameter, stp_parameter_activity_t active)
Set the activity of a string parameter.
void stp_clear_file_parameter(stp_vars_t *v, const char *parameter)
Clear a file parameter.
stp_dimension_t top
Top margin.
Definition: paper.h:82
stp_mxml_node_t * child
Definition: mxml.h:115
stp_dimension_t stp_get_page_height(const stp_vars_t *v)
Get the page height.
void stp_dither_set_iterated_matrix(stp_vars_t *v, size_t edge, size_t iterations, const unsigned *data, int prescaled, int x_shear, int y_shear)
void stp_set_int_parameter(stp_vars_t *v, const char *parameter, int value)
Set an integer parameter.
int stp_list_item_set_data(stp_list_item_t *item, void *data)
Set the data associated with a list item.
const char * stp_printer_get_comment(const stp_printer_t *p)
Get a printer model's comment string.
stp_mxml_node_t * stp_mxmlWalkPrev(stp_mxml_node_t *node, stp_mxml_node_t *top, int descend)
void stp_split_2(int height, int bits, const unsigned char *in, unsigned char *outhi, unsigned char *outlo)
Deprecated – use stp_split.
unsigned char is_active
Definition: vars.h:167
stp_raw_t * stp_xmlstrtoraw(const char *textval)
int stp_module_exit(void)
@ STP_MXML_ELEMENT
Definition: mxml.h:71
char * name
Definition: mxml.h:81
const char * name
Definition: string-list.h:45
struct stp_string_list stp_string_list_t
The string_list opaque data type.
Definition: string-list.h:35
stp_weave_strategy_t
Definition: weave.h:106
void stp_get_imageable_area(const stp_vars_t *v, stp_dimension_t *left, stp_dimension_t *right, stp_dimension_t *bottom, stp_dimension_t *top)
Get the imagable area of the page.
int stp_check_curve_parameter(const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active)
Check if a curve parameter is set.
@ STP_PARAMETER_TYPE_RAW
Definition: vars.h:70
int stp_check_raw_parameter(const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active)
Check if a raw parameter is set.
const char * comment
Comment.
Definition: paper.h:76
@ PAPERSIZE_ENGLISH_STANDARD
English/Imperial units.
Definition: paper.h:51
void stp_sequence_get_range(const stp_sequence_t *sequence, double *low, double *high)
Get range of values stored in the sequence.
int stp_check_boolean_parameter(const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active)
Check if a boolean parameter is set.
const unsigned long * stp_curve_get_ulong_data(const stp_curve_t *curve, size_t *count)
Get pointer to the curve's raw data as unsigned longs.
@ STP_WEAVE_ASCENDING_3X
Definition: weave.h:112
void stp_set_dimension_parameter(stp_vars_t *v, const char *parameter, stp_dimension_t value)
Set a dimension parameter.
int ncolors
Definition: weave.h:96
const char * stp_set_output_codeset(const char *codeset)
Set the output encoding.
int y
Definition: dither.h:67
@ STP_MODULE_CLASS_INVALID
Definition: module.h:70
void stp_fold_4bit(const unsigned char *line, int single_length, unsigned char *outbuf)
Interleave a buffer consisting of four bit strings of length single_length into one string of packed ...
int stp_mxmlSaveToFile(stp_mxml_node_t *node, const char *fp, int(*cb)(stp_mxml_node_t *, int))
void stp_describe_resolution(const stp_vars_t *v, stp_resolution_t *x, stp_resolution_t *y)
Retrieve the printing resolution of the selected resolution.
const char * long_name
Definition: color.h:58
const stp_colorfuncs_t * colorfuncs
Definition: color.h:59
int stp_curve_rescale(stp_curve_t *curve, double scale, stp_curve_compose_t mode, stp_curve_bounds_t bounds_mode)
Rescale a curve (multiply all points by a scaling constant).
const stp_vars_t * stp_printer_get_defaults(const stp_printer_t *p)
Get the default vars for a particular printer model.
stp_string_list_t * stp_string_list_create(void)
size_t stp_sequence_get_size(const stp_sequence_t *sequence)
Get the sequence size.
#define __attribute__(x)
Definition: util.h:37
void stp_channel_set_gloss_limit(stp_vars_t *v, double limit)
double stp_xmlstrtod(const char *textval)
int ncolors
Definition: weave.h:101
double value
Definition: dither.h:136
int stp_curve_set_uint_data(stp_curve_t *curve, size_t count, const unsigned int *data)
Set the data points in a curve from unsigned integer values.
int stp_refcache_add_item(const char *cache, const char *item, void *data)
Add an item to a cache.
@ STP_MODULE_CLASS_DITHER
Definition: module.h:74
int stp_sequence_get_point(const stp_sequence_t *sequence, size_t where, double *data)
Get the data at a single point in a sequence.
void stp_curve_cache_copy(stp_cached_curve_t *dest, const stp_cached_curve_t *src)
const char * str
Definition: vars.h:187
void stp_channel_convert(const stp_vars_t *v, unsigned *zero_mask)
void stp_put16_le(unsigned short sh, const stp_vars_t *v)
stp_compute_linewidth_func stp_compute_uncompressed_linewidth
void stp_clear_float_parameter(stp_vars_t *v, const char *parameter)
Clear (remove) a float parameter.
@ STP_CURVE_BOUNDS_CLIP
Clip the curve to the existing bounds.
Definition: curve.h:97
stp_list_item_t * stp_list_get_item_by_name(const stp_list_t *list, const char *name)
Find an item in a list by its name.
void stp_clear_int_parameter(stp_vars_t *v, const char *parameter)
Clear (remove) an integer parameter.
void stp_curve_free_curve_cache(stp_cached_curve_t *cache)
@ STP_CURVE_WRAP_NONE
The curve does not wrap.
Definition: curve.h:75
struct stp_list stp_list_t
The list opaque data type.
Definition: list.h:64
stp_array_t * stp_array_create_from_string(const char *string)
Create an array from a string.
void stp_eprintf(const stp_vars_t *v, const char *format,...) __attribute__((format(__printf__
void stp_set_default_string_parameter_n(stp_vars_t *v, const char *parameter, const char *value, size_t bytes)
Set a default string parameter.
unsigned char * stp_dither_get_channel(stp_vars_t *v, unsigned channel, unsigned subchannel)
stp_dimension_t stp_get_height(const stp_vars_t *v)
Get the height of the image.
stp_parameter_type_t p_type
Definition: vars.h:163
void stp_parameter_list_add_param(stp_parameter_list_t list, const stp_parameter_t *item)
Add a parameter to a parameter_list.
void stp_set_dbgfunc(stp_vars_t *v, stp_outfunc_t val)
Set the function used to print diagnostic information.
void stp_set_width(stp_vars_t *v, stp_dimension_t val)
Set the width of the image.
stp_node_sortfunc stp_list_get_sortfunc(const stp_list_t *list)
Get a list node sort function.
@ STP_PARAMETER_LEVEL_ADVANCED
Definition: vars.h:96
const stp_sequence_t * stp_curve_get_sequence(const stp_curve_t *curve)
Get the underlying stp_sequence_t data structure which stp_curve_t is derived from.
int physpassend
Definition: weave.h:64
@ STP_MODULE_CLASS_FAMILY
Definition: module.h:72
const stp_parameter_t * stp_parameter_list_param(stp_const_parameter_list_t list, size_t item)
Find a parameter by its index number.
char * stp_strtoxmlstr(const char *raw)
const char * name
Definition: vars.h:159
size_t stp_string_list_count(const stp_string_list_t *list)
stp_outfunc_t stp_get_global_dbgfunc(void)
Get global debug output function.
void stp_dither_set_adaptive_limit(stp_vars_t *v, double limit)
const int * stp_sequence_get_int_data(const stp_sequence_t *sequence, size_t *count)
Get the data in a sequence as int data.
int stp_check_float_parameter(const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active)
Check if a float parameter is set.
void stp_sequence_get_bounds(const stp_sequence_t *sequence, double *low, double *high)
Get the lower and upper bounds.
int stp_start_job(const stp_vars_t *v, stp_image_t *image)
Start a print job.
void stp_curve_cache_set_curve_copy(stp_cached_curve_t *cache, const stp_curve_t *curve)
int last_y_mod
Definition: dither.h:92
stp_mxml_value_t value
Definition: mxml.h:117
int stp_check_dimension_parameter(const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active)
Check if a dimension parameter is set.
stp_outfunc_t stp_get_global_errfunc(void)
Get global error output function.
int(* fini)(void)
Definition: module.h:90
stp_outfunc_t stp_get_dbgfunc(const stp_vars_t *v)
Get the function used to print output information.
double stp_channel_get_density_adjustment(stp_vars_t *v, int color, int subchannel)
int stp_curve_resample(stp_curve_t *curve, size_t points)
Resample a curve (change the number of points).
stp_curve_wrap_mode_t
Wrapping mode.
Definition: curve.h:73
int numsizes
Definition: dither.h:137
stp_parameter_level_t
Parameter level.
Definition: vars.h:94
stp_mxml_text_t text
Definition: mxml.h:104
void stp_set_default_array_parameter(stp_vars_t *v, const char *parameter, const stp_array_t *value)
Set a default array parameter.
stp_parameter_class_t p_class
Definition: vars.h:164
double_bound (range) parameter.
Definition: vars.h:135
size_t stp_curve_cache_get_count(stp_cached_curve_t *cache)
const unsigned int stp_interface_age
The library ABI interface age number (number of revisions of this ABI).
void stp_set_float_parameter_active(stp_vars_t *v, const char *parameter, stp_parameter_activity_t active)
Set the activity of a float parameter.
void * stp_get_global_errdata(void)
Get global error output data.
void stp_list_set_copyfunc(stp_list_t *list, stp_node_copyfunc copyfunc)
Set a list node copy function.
stp_list_item_t * stp_list_get_start(const stp_list_t *list)
Find the first item in a list.
int stp_printer_get_model(const stp_printer_t *p)
Get a printer model's model number.
const char * stp_get_file_parameter(const stp_vars_t *v, const char *parameter)
Get a file parameter.
void stp_sequence_destroy(stp_sequence_t *sequence)
Destroy a sequence.
int stp_channel_get_gloss_channel(stp_vars_t *v)
void stp_parameter_list_destroy(stp_parameter_list_t list)
Destroy a parameter_list.
void stp_vars_print_error(const stp_vars_t *v, const char *prefix)
Print an stp_vars_t in debugging format.
int exp
Definition: dither.h:85
void stp_dither_set_inks_simple(stp_vars_t *v, int color, int nlevels, const double *levels, double density, double darkness)
int stp_sequence_set_short_data(stp_sequence_t *sequence, size_t count, const short *data)
Set the data in a sequence from short values.
void stp_channel_reset(stp_vars_t *v)
stp_dimension_t stp_get_width(const stp_vars_t *v)
Get the width edge of the image.
The papersize data type.
Definition: paper.h:70
stp_dimension_t left
Left margin.
Definition: paper.h:84
int * end_pos
Definition: weave.h:103
const char * stp_image_get_appname(stp_image_t *image)
void stp_path_split(stp_list_t *list, const char *path)
const char * text
Definition: vars.h:160
struct stp_mxml_text_s stp_mxml_text_t
@ STP_PARAMETER_ACTIVE
Definition: vars.h:116
stp_image_status_t(* get_row)(struct stp_image *image, unsigned char *data, size_t byte_limit, int row)
This callback transfers the data from the image to the gimp-print library.
Definition: image.h:107
void stp_set_global_errdata(void *val)
Set global error output data.
int stp_sequence_set_bounds(stp_sequence_t *sequence, double low, double high)
Set the lower and upper bounds.
const stp_printer_t * stp_get_printer_by_index(int idx)
Get a printer model by its index number.
void stp_scale_float_parameter(stp_vars_t *v, const char *parameter, double scale)
Multiply the value of a float parameter by a scaling factor.
void stp_color_describe_parameter(const stp_vars_t *v, const char *name, stp_parameter_t *description)
int x_offset
Definition: dither.h:95
void stp_curve_copy(stp_curve_t *dest, const stp_curve_t *source)
Copy a curve.
stp_dimension_t dimension
Definition: vars.h:184
The image type is an abstract data type for interfacing with the image creation program.
Definition: image.h:65
void * stp_refcache_find_item(const char *cache, const char *item)
Find an item in a cache.
void stp_dither_matrix_clone(const stp_dither_matrix_impl_t *src, stp_dither_matrix_impl_t *dest, int x_offset, int y_offset)
void stp_set_file_parameter(stp_vars_t *v, const char *parameter, const char *value)
Set a file parameter.
stp_lineactive_t * stp_get_lineactive_by_pass(const stp_vars_t *v, int pass)
void stp_set_default_dimension_parameter(stp_vars_t *v, const char *parameter, stp_dimension_t value)
Set a default dimension parameter.
unsigned char verify_this_parameter
Definition: vars.h:169
stp_mxml_node_t * stp_xml_parse_file_from_path_uncached_safe(const char *name, const char *topnodename, const char *path)
@ STP_CURVE_WRAP_AROUND
The curve wraps to its starting point.
Definition: curve.h:77
stp_image_status_t
Image status.
Definition: image.h:53
int stp_curve_compose(stp_curve_t **retval, stp_curve_t *a, stp_curve_t *b, stp_curve_compose_t mode, int points)
Compose two curves, creating a third curve.
stp_papersize_unit_t paper_unit
Units of measurement.
Definition: paper.h:90
double real
Definition: mxml.h:103
void stp_dprintf(unsigned long level, const stp_vars_t *v, const char *format,...) __attribute__((format(__printf__
stp_dimension_t right
Right margin.
Definition: paper.h:88
int stp_get_boolean_parameter(const stp_vars_t *v, const char *parameter)
Get a boolean parameter.
@ STP_PARAMETER_TYPE_DOUBLE
Definition: vars.h:67
stp_string_list_t * stp_list_array_parameters(const stp_vars_t *v)
List all array parameters.
void stp_register_xml_parser(const char *name, stp_xml_parse_func parse_func)
int stp_curve_write(FILE *file, const stp_curve_t *curve)
Write a curve to a file.
stp_param_string_t * stp_string_list_param(const stp_string_list_t *list, size_t element)
stp_curve_t * stp_curve_create_from_file(const char *file)
Create a curve from a stream.
double stp_get_float_parameter(const stp_vars_t *v, const char *parameter)
Get a float parameter.
stp_papersize_type_t
Definition: paper.h:61
void stp_set_printer_defaults_soft(stp_vars_t *v, const stp_printer_t *p)
Set a vars object to use a particular driver, and set any unset parameters to their defaults.
void stp_set_curve_parameter_active(stp_vars_t *v, const char *parameter, stp_parameter_activity_t active)
Set the activity of a curveparameter.
void void void stp_asprintf(char **strp, const char *format,...) __attribute__((format(__printf__
const long * stp_sequence_get_long_data(const stp_sequence_t *sequence, size_t *count)
Get the data in a sequence as long data.
Gutenprint master header.
void stp_fold_3bit_323(const unsigned char *line, int single_length, unsigned char *outbuf)
Interleave a buffer consisting of three bit strings of length single_length into one string of packed...
const stp_curve_t * stp_channel_get_gcr_curve(stp_vars_t *v)
void stp_get_media_size(const stp_vars_t *v, stp_dimension_t *width, stp_dimension_t *height)
Get the media (paper) size.
stp_dimension_t height
Paper height.
Definition: paper.h:80
void stp_array_copy(stp_array_t *dest, const stp_array_t *source)
Copy an array.
stp_parameter_activity_t stp_get_raw_parameter_active(const stp_vars_t *v, const char *parameter)
Get the activity status of a raw parameter.
stp_vars_t * stp_vars_create_from_xmltree_ref(stp_mxml_node_t *da, stp_mxml_node_t *root)
stp_curve_t * curve
Definition: curve-cache.h:42
const short * stp_curve_get_short_data(const stp_curve_t *curve, size_t *count)
Get pointer to the curve's raw data as shorts.
char * stp_mxmlSaveAllocString(stp_mxml_node_t *node, int(*cb)(stp_mxml_node_t *, int))
@ PAPERSIZE_METRIC_EXTENDED
Metric units (optional paper, not displayed by default).
Definition: paper.h:57
int stp_sequence_set_data(stp_sequence_t *sequence, size_t count, const double *data)
Set the data in a sequence.
int(* height)(struct stp_image *image)
This callback returns the height of the image in pixels.
Definition: image.h:89
@ STP_WEAVE_ASCENDING
Definition: weave.h:108
stp_array_t * stp_array_create(int x_size, int y_size)
Create a new array.
const char * stp_printer_get_device_id(const stp_printer_t *p)
Get a printer model's IEEE 1284 device ID, if known.
stp_vars_t * stp_vars_create(void)
Create a new vars object.
@ STP_MXML_TEXT
Definition: mxml.h:75
const stp_array_t * stp_get_array_parameter(const stp_vars_t *v, const char *parameter)
Get an array parameter.
const stp_printer_t * stp_get_printer_by_long_name(const char *long_name)
Get a printer model by its long (translated) name.
int(* init)(void)
Definition: module.h:89
stp_node_namefunc stp_list_get_long_namefunc(const stp_list_t *list)
Get a list node long name function.