libgutenprint API Reference: include/gutenprint/array.h File Reference

libgutenprint API Reference 5.3.4

Typedefs | Functions
array.h File Reference

Array functions. More...

`#include <gutenprint/sequence.h>`

## Typedefs
typedef struct stp_array | stp_array_t
| The array opaque data type. More...

## Functions
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...

## Detailed Description

Array functions.

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