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

src/main/print-pcl.c File Reference

#include <gimp-print/gimp-print.h>
#include <gimp-print/gimp-print-intl-internal.h>
#include "gimp-print-internal.h"
#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Data Structures

struct  float_param_t
struct  margins_t
struct  pcl_cap_t
struct  pcl_privdata_t
struct  pcl_t

Defines

#define MAX(a, b)   ((a) > (b) ? (a) : (b))
#define PCL_PAPERSIZE_EXECUTIVE   1
#define PCL_PAPERSIZE_LETTER   2
#define PCL_PAPERSIZE_LEGAL   3
#define PCL_PAPERSIZE_TABLOID   6
#define PCL_PAPERSIZE_STATEMENT   15
#define PCL_PAPERSIZE_SUPER_B   16
#define PCL_PAPERSIZE_A5   25
#define PCL_PAPERSIZE_A4   26
#define PCL_PAPERSIZE_A3   27
#define PCL_PAPERSIZE_JIS_B5   45
#define PCL_PAPERSIZE_JIS_B4   46
#define PCL_PAPERSIZE_HAGAKI_CARD   71
#define PCL_PAPERSIZE_OUFUKU_CARD   72
#define PCL_PAPERSIZE_A6_CARD   73
#define PCL_PAPERSIZE_4x6   74
#define PCL_PAPERSIZE_5x8   75
#define PCL_PAPERSIZE_3x5   78
#define PCL_PAPERSIZE_MONARCH_ENV   80
#define PCL_PAPERSIZE_COMMERCIAL10_ENV   81
#define PCL_PAPERSIZE_DL_ENV   90
#define PCL_PAPERSIZE_C5_ENV   91
#define PCL_PAPERSIZE_C6_ENV   92
#define PCL_PAPERSIZE_CUSTOM   101
#define PCL_PAPERSIZE_INVITATION_ENV   109
#define PCL_PAPERSIZE_JAPANESE_3_ENV   110
#define PCL_PAPERSIZE_JAPANESE_4_ENV   111
#define PCL_PAPERSIZE_KAKU_ENV   113
#define PCL_PAPERSIZE_HP_CARD   114
#define NUM_PRINTER_PAPER_SIZES   (sizeof(pcl_media_sizes) / sizeof(pcl_t))
#define PCL_PAPERTYPE_PLAIN   0
#define PCL_PAPERTYPE_BOND   1
#define PCL_PAPERTYPE_PREMIUM   2
#define PCL_PAPERTYPE_GLOSSY   3
#define PCL_PAPERTYPE_TRANS   4
#define PCL_PAPERTYPE_QPHOTO   5
#define PCL_PAPERTYPE_QTRANS   6
#define NUM_PRINTER_PAPER_TYPES   (sizeof(pcl_media_types) / sizeof(pcl_t))
#define PAPERSOURCE_MOD   16
#define PCL_PAPERSOURCE_STANDARD   0
#define PCL_PAPERSOURCE_MANUAL   2
#define PCL_PAPERSOURCE_ENVELOPE   3
#define PCL_PAPERSOURCE_LJ_TRAY2   1
#define PCL_PAPERSOURCE_LJ_TRAY3   4
#define PCL_PAPERSOURCE_LJ_TRAY4   5
#define PCL_PAPERSOURCE_LJ_TRAY1   8
#define PCL_PAPERSOURCE_340_PCSF   1 + PAPERSOURCE_MOD
#define PCL_PAPERSOURCE_340_DCSF   4 + PAPERSOURCE_MOD
#define PCL_PAPERSOURCE_DJ_TRAY   1 + PAPERSOURCE_MOD + PAPERSOURCE_MOD
#define PCL_PAPERSOURCE_DJ_TRAY2   4 + PAPERSOURCE_MOD + PAPERSOURCE_MOD
#define PCL_PAPERSOURCE_DJ_OPTIONAL   5 + PAPERSOURCE_MOD + PAPERSOURCE_MOD
#define PCL_PAPERSOURCE_DJ_AUTO   7 + PAPERSOURCE_MOD + PAPERSOURCE_MOD
#define NUM_PRINTER_PAPER_SOURCES   (sizeof(pcl_media_sources) / sizeof(pcl_t))
#define PCL_RES_150_150   1
#define PCL_RES_300_300   2
#define PCL_RES_600_300   4
#define PCL_RES_600_600_MONO   8
#define PCL_RES_600_600   16
#define PCL_RES_1200_600   32
#define PCL_RES_2400_600   64
#define NUM_RESOLUTIONS   (sizeof(pcl_resolutions) / sizeof (pcl_t))
#define PCL_COLOR_NONE   0
#define PCL_COLOR_CMY   1
#define PCL_COLOR_CMYK   2
#define PCL_COLOR_CMYK4   4
#define PCL_COLOR_CMYKcm   8
#define PCL_COLOR_CMYK4b   16
#define PCL_PRINTER_LJ   1
#define PCL_PRINTER_DJ   2
#define PCL_PRINTER_NEW_ERG   4
#define PCL_PRINTER_TIFF   8
#define PCL_PRINTER_MEDIATYPE   16
#define PCL_PRINTER_CUSTOM_SIZE   32
#define PCL_PRINTER_BLANKLINE   64
#define stp_module_version   print_pcl_LTX_stp_module_version
#define stp_module_data   print_pcl_LTX_stp_module_data

Functions

void pcl_mode0 (stp_vars_t *, unsigned char *, int, int)
void pcl_mode2 (stp_vars_t *, unsigned char *, int, int)
void pcl_describe_resolution (const stp_vars_t *v, int *x, int *y)
int pcl_string_to_val (const char *string, const pcl_t *options, int num_options)
const char * pcl_val_to_string (int code, const pcl_t *options, int num_options)
const char * pcl_val_to_text (int code, const pcl_t *options, int num_options)
const pcl_cap_tpcl_get_model_capabilities (int model)
int pcl_convert_media_size (const char *media_size, int model)
const int pcl_papersize_valid (const stp_papersize_t *pt, int model)
stp_parameter_list_t pcl_list_parameters (const stp_vars_t *v)
void pcl_parameters (const stp_vars_t *v, const char *name, stp_parameter_t *description)
void internal_imageable_area (const stp_vars_t *v, int use_paper_margins, int *left, int *right, int *bottom, int *top)
void pcl_imageable_area (const stp_vars_t *v, int *left, int *right, int *bottom, int *top)
void pcl_limit (const stp_vars_t *v, int *width, int *height, int *min_width, int *min_height)
const char * pcl_describe_output (const stp_vars_t *v)
void pcl_printfunc (stp_vars_t *v)
double get_double_param (stp_vars_t *v, const char *param)
int pcl_do_print (stp_vars_t *v, stp_image_t *image)
int pcl_print (const stp_vars_t *v, stp_image_t *image)
int print_pcl_module_init (void)
int print_pcl_module_exit (void)

Variables

const stp_dotsize_t single_dotsize []
const stp_shade_t photo_dither_shades []
const pcl_t pcl_media_sizes []
const pcl_t pcl_media_types []
const pcl_t pcl_media_sources []
const pcl_t pcl_resolutions []
const short emptylist []
const short standard_papersizes []
const short letter_only_papersizes []
const short dj340_papersizes []
const short dj400_papersizes []
const short dj500_papersizes []
const short dj540_papersizes []
const short dj600_papersizes []
const short dj1220_papersizes []
const short dj1100_papersizes []
const short dj1200_papersizes []
const short dj2000_papersizes []
const short dj2500_papersizes []
const short ljsmall_papersizes []
const short ljbig_papersizes []
const short basic_papertypes []
const short new_papertypes []
const short laserjet_papersources []
const short dj340_papersources []
const short dj_papersources []
const short dj2500_papersources []
const short standard_papersources []
const pcl_cap_t pcl_model_capabilities []
const char standard_sat_adjustment []
const char standard_lum_adjustment []
const char standard_hue_adjustment []
const stp_parameter_t the_parameters []
const int the_parameter_count
const float_param_t float_parameters []
const int float_parameter_count
const double dot_sizes [] = { 0.5, 0.832, 1.0 }
const double dot_sizes_cret [] = { 1.0, 1.0, 1.0 }
const stp_dotsize_t variable_dotsizes []
const stp_shade_t variable_shades []
const stp_param_string_t ink_types []
const stp_printfuncs_t print_pcl_printfuncs
stp_family_t print_pcl_module_data
stp_module_version_t stp_module_version = {0, 0}
stp_module_t stp_module_data


Define Documentation

#define MAX a,
     ((a) > (b) ? (a) : (b))
 

Definition at line 48 of file print-pcl.c.

#define NUM_PRINTER_PAPER_SIZES   (sizeof(pcl_media_sizes) / sizeof(pcl_t))
 

Definition at line 163 of file print-pcl.c.

Referenced by pcl_convert_media_size().

#define NUM_PRINTER_PAPER_SOURCES   (sizeof(pcl_media_sources) / sizeof(pcl_t))
 

Definition at line 238 of file print-pcl.c.

Referenced by pcl_parameters().

#define NUM_PRINTER_PAPER_TYPES   (sizeof(pcl_media_types) / sizeof(pcl_t))
 

Definition at line 187 of file print-pcl.c.

Referenced by pcl_parameters().

#define NUM_RESOLUTIONS   (sizeof(pcl_resolutions) / sizeof (pcl_t))
 

Definition at line 258 of file print-pcl.c.

Referenced by pcl_describe_resolution(), pcl_do_print(), and pcl_parameters().

#define PAPERSOURCE_MOD   16
 

Definition at line 195 of file print-pcl.c.

Referenced by pcl_do_print().

#define PCL_COLOR_CMY   1
 

Definition at line 310 of file print-pcl.c.

Referenced by pcl_describe_output(), and pcl_do_print().

#define PCL_COLOR_CMYK   2
 

Definition at line 311 of file print-pcl.c.

#define PCL_COLOR_CMYK4   4
 

Definition at line 312 of file print-pcl.c.

Referenced by pcl_do_print().

#define PCL_COLOR_CMYK4b   16
 

Definition at line 314 of file print-pcl.c.

Referenced by pcl_do_print().

#define PCL_COLOR_CMYKcm   8
 

Definition at line 313 of file print-pcl.c.

Referenced by pcl_parameters().

#define PCL_COLOR_NONE   0
 

Definition at line 309 of file print-pcl.c.

Referenced by pcl_parameters().

#define PCL_PAPERSIZE_3x5   78
 

Definition at line 111 of file print-pcl.c.

#define PCL_PAPERSIZE_4x6   74
 

Definition at line 109 of file print-pcl.c.

#define PCL_PAPERSIZE_5x8   75
 

Definition at line 110 of file print-pcl.c.

#define PCL_PAPERSIZE_A3   27
 

Definition at line 103 of file print-pcl.c.

#define PCL_PAPERSIZE_A4   26
 

Definition at line 102 of file print-pcl.c.

Referenced by internal_imageable_area(), and pcl_do_print().

#define PCL_PAPERSIZE_A5   25
 

Definition at line 101 of file print-pcl.c.

#define PCL_PAPERSIZE_A6_CARD   73
 

Definition at line 108 of file print-pcl.c.

#define PCL_PAPERSIZE_C5_ENV   91
 

Definition at line 115 of file print-pcl.c.

#define PCL_PAPERSIZE_C6_ENV   92
 

Definition at line 116 of file print-pcl.c.

#define PCL_PAPERSIZE_COMMERCIAL10_ENV   81
 

Definition at line 113 of file print-pcl.c.

#define PCL_PAPERSIZE_CUSTOM   101
 

Definition at line 117 of file print-pcl.c.

Referenced by pcl_do_print().

#define PCL_PAPERSIZE_DL_ENV   90
 

Definition at line 114 of file print-pcl.c.

#define PCL_PAPERSIZE_EXECUTIVE   1
 

Definition at line 95 of file print-pcl.c.

#define PCL_PAPERSIZE_HAGAKI_CARD   71
 

Definition at line 106 of file print-pcl.c.

#define PCL_PAPERSIZE_HP_CARD   114
 

Definition at line 122 of file print-pcl.c.

#define PCL_PAPERSIZE_INVITATION_ENV   109
 

Definition at line 118 of file print-pcl.c.

#define PCL_PAPERSIZE_JAPANESE_3_ENV   110
 

Definition at line 119 of file print-pcl.c.

#define PCL_PAPERSIZE_JAPANESE_4_ENV   111
 

Definition at line 120 of file print-pcl.c.

#define PCL_PAPERSIZE_JIS_B4   46
 

Definition at line 105 of file print-pcl.c.

#define PCL_PAPERSIZE_JIS_B5   45
 

Definition at line 104 of file print-pcl.c.

#define PCL_PAPERSIZE_KAKU_ENV   113
 

Definition at line 121 of file print-pcl.c.

#define PCL_PAPERSIZE_LEGAL   3
 

Definition at line 97 of file print-pcl.c.

#define PCL_PAPERSIZE_LETTER   2
 

Definition at line 96 of file print-pcl.c.

#define PCL_PAPERSIZE_MONARCH_ENV   80
 

Definition at line 112 of file print-pcl.c.

#define PCL_PAPERSIZE_OUFUKU_CARD   72
 

Definition at line 107 of file print-pcl.c.

#define PCL_PAPERSIZE_STATEMENT   15
 

Definition at line 99 of file print-pcl.c.

#define PCL_PAPERSIZE_SUPER_B   16
 

Definition at line 100 of file print-pcl.c.

#define PCL_PAPERSIZE_TABLOID   6
 

Definition at line 98 of file print-pcl.c.

#define PCL_PAPERSOURCE_340_DCSF   4 + PAPERSOURCE_MOD
 

Definition at line 210 of file print-pcl.c.

#define PCL_PAPERSOURCE_340_PCSF   1 + PAPERSOURCE_MOD
 

Definition at line 208 of file print-pcl.c.

#define PCL_PAPERSOURCE_DJ_AUTO   7 + PAPERSOURCE_MOD + PAPERSOURCE_MOD
 

Definition at line 219 of file print-pcl.c.

#define PCL_PAPERSOURCE_DJ_OPTIONAL   5 + PAPERSOURCE_MOD + PAPERSOURCE_MOD
 

Definition at line 217 of file print-pcl.c.

#define PCL_PAPERSOURCE_DJ_TRAY   1 + PAPERSOURCE_MOD + PAPERSOURCE_MOD
 

Definition at line 214 of file print-pcl.c.

#define PCL_PAPERSOURCE_DJ_TRAY2   4 + PAPERSOURCE_MOD + PAPERSOURCE_MOD
 

Definition at line 215 of file print-pcl.c.

#define PCL_PAPERSOURCE_ENVELOPE   3
 

Definition at line 199 of file print-pcl.c.

#define PCL_PAPERSOURCE_LJ_TRAY1   8
 

Definition at line 205 of file print-pcl.c.

#define PCL_PAPERSOURCE_LJ_TRAY2   1
 

Definition at line 202 of file print-pcl.c.

#define PCL_PAPERSOURCE_LJ_TRAY3   4
 

Definition at line 203 of file print-pcl.c.

#define PCL_PAPERSOURCE_LJ_TRAY4   5
 

Definition at line 204 of file print-pcl.c.

#define PCL_PAPERSOURCE_MANUAL   2
 

Definition at line 198 of file print-pcl.c.

#define PCL_PAPERSOURCE_STANDARD   0
 

Definition at line 197 of file print-pcl.c.

Referenced by pcl_do_print().

#define PCL_PAPERTYPE_BOND   1
 

Definition at line 170 of file print-pcl.c.

Referenced by pcl_do_print().

#define PCL_PAPERTYPE_GLOSSY   3
 

Definition at line 172 of file print-pcl.c.

Referenced by pcl_do_print().

#define PCL_PAPERTYPE_PLAIN   0
 

Definition at line 169 of file print-pcl.c.

Referenced by pcl_do_print().

#define PCL_PAPERTYPE_PREMIUM   2
 

Definition at line 171 of file print-pcl.c.

Referenced by pcl_do_print().

#define PCL_PAPERTYPE_QPHOTO   5
 

Definition at line 174 of file print-pcl.c.

#define PCL_PAPERTYPE_QTRANS   6
 

Definition at line 175 of file print-pcl.c.

#define PCL_PAPERTYPE_TRANS   4
 

Definition at line 173 of file print-pcl.c.

Referenced by pcl_do_print().

#define PCL_PRINTER_BLANKLINE   64
 

Definition at line 323 of file print-pcl.c.

Referenced by pcl_do_print().

#define PCL_PRINTER_CUSTOM_SIZE   32
 

Definition at line 322 of file print-pcl.c.

Referenced by pcl_papersize_valid().

#define PCL_PRINTER_DJ   2
 

Definition at line 317 of file print-pcl.c.

Referenced by pcl_do_print().

#define PCL_PRINTER_LJ   1
 

Definition at line 316 of file print-pcl.c.

#define PCL_PRINTER_MEDIATYPE   16
 

Definition at line 321 of file print-pcl.c.

Referenced by pcl_do_print().

#define PCL_PRINTER_NEW_ERG   4
 

Definition at line 318 of file print-pcl.c.

Referenced by pcl_do_print().

#define PCL_PRINTER_TIFF   8
 

Definition at line 320 of file print-pcl.c.

Referenced by pcl_do_print().

#define PCL_RES_1200_600   32
 

Definition at line 245 of file print-pcl.c.

#define PCL_RES_150_150   1
 

Definition at line 240 of file print-pcl.c.

#define PCL_RES_2400_600   64
 

Definition at line 246 of file print-pcl.c.

#define PCL_RES_300_300   2
 

Definition at line 241 of file print-pcl.c.

Referenced by pcl_parameters().

#define PCL_RES_600_300   4
 

Definition at line 242 of file print-pcl.c.

#define PCL_RES_600_600   16
 

Definition at line 244 of file print-pcl.c.

#define PCL_RES_600_600_MONO   8
 

Definition at line 243 of file print-pcl.c.

Referenced by pcl_describe_output(), and pcl_do_print().

#define stp_module_data   print_pcl_LTX_stp_module_data
 

Definition at line 2624 of file print-pcl.c.

#define stp_module_version   print_pcl_LTX_stp_module_version
 

Definition at line 2623 of file print-pcl.c.


Function Documentation

double get_double_param stp_vars_t   v,
const char *    param
[static]
 

Definition at line 1887 of file print-pcl.c.

References stp_check_float_parameter(), stp_get_float_parameter(), and STP_PARAMETER_ACTIVE.

Referenced by canon_do_print(), lexmark_do_print(), pcl_do_print(), set_ink_ranges(), and setup_inks().

void internal_imageable_area const stp_vars_t   v,
int    use_paper_margins,
int *    left,
int *    right,
int *    bottom,
int *    top
[static]
 

Definition at line 1652 of file print-pcl.c.

References pcl_cap_t::a4_margins, stp_papersize_t::bottom, margins_t::bottom_margin, stp_papersize_t::left, margins_t::left_margin, MAX, stp_papersize_t::name, pcl_cap_t::normal_margins, pcl_convert_media_size(), pcl_get_model_capabilities(), PCL_PAPERSIZE_A4, stp_papersize_t::right, margins_t::right_margin, STP_DBG_PCL, stp_default_media_size(), stp_deprintf(), stp_get_model_id(), stp_get_page_height(), stp_get_page_width(), stp_get_papersize_by_name(), stp_get_papersize_by_size(), stp_get_string_parameter(), stp_papersize_t::top, and margins_t::top_margin.

Referenced by canon_do_print(), canon_imageable_area(), escp2_imageable_area(), lexmark_do_print(), lexmark_imageable_area(), pcl_do_print(), pcl_imageable_area(), and setup_page().

int pcl_convert_media_size const char *    media_size,
int    model
[static]
 

Definition at line 1341 of file print-pcl.c.

References NUM_PRINTER_PAPER_SIZES, pcl_cap_t::paper_sizes, pcl_get_model_capabilities(), pcl_string_to_val(), STP_DBG_PCL, and stp_deprintf().

Referenced by internal_imageable_area(), pcl_do_print(), and pcl_papersize_valid().

const char* pcl_describe_output const stp_vars_t   v [static]
 

Definition at line 1744 of file print-pcl.c.

References pcl_cap_t::color_type, PCL_COLOR_CMY, pcl_describe_resolution(), pcl_get_model_capabilities(), PCL_RES_600_600_MONO, pcl_cap_t::resolutions, stp_get_model_id(), and stp_get_string_parameter().

void pcl_describe_resolution const stp_vars_t   v,
int *    x,
int *    y
[static]
 

Definition at line 261 of file print-pcl.c.

References NUM_RESOLUTIONS, pcl_t::p0, pcl_t::p1, and stp_get_string_parameter().

Referenced by pcl_describe_output().

int pcl_do_print stp_vars_t   v,
stp_image_t   image
[static]
 

Definition at line 1896 of file print-pcl.c.

References pcl_cap_t::a4_margins, pcl_privdata_t::blank_lines, pcl_cap_t::color_type, pcl_privdata_t::comp_buf, pcl_privdata_t::do_6color, pcl_privdata_t::do_blank, pcl_privdata_t::do_cret, pcl_privdata_t::do_cretb, dot_sizes, dot_sizes_cret, get_double_param(), pcl_privdata_t::height, internal_imageable_area(), margins_t::left_margin, stp_papersize_t::name, pcl_cap_t::normal_margins, NUM_RESOLUTIONS, pcl_t::p0, pcl_t::p1, PAPERSOURCE_MOD, PCL_COLOR_CMY, PCL_COLOR_CMYK4, PCL_COLOR_CMYK4b, pcl_convert_media_size(), pcl_get_model_capabilities(), pcl_mode0(), pcl_mode2(), PCL_PAPERSIZE_A4, PCL_PAPERSIZE_CUSTOM, PCL_PAPERSOURCE_STANDARD, PCL_PAPERTYPE_BOND, PCL_PAPERTYPE_GLOSSY, PCL_PAPERTYPE_PLAIN, PCL_PAPERTYPE_PREMIUM, PCL_PAPERTYPE_TRANS, PCL_PRINTER_BLANKLINE, PCL_PRINTER_DJ, PCL_PRINTER_MEDIATYPE, PCL_PRINTER_NEW_ERG, PCL_PRINTER_TIFF, pcl_printfunc(), PCL_RES_600_600_MONO, pcl_string_to_val(), pcl_cap_t::resolutions, standard_hue_adjustment, standard_lum_adjustment, stp_allocate_component_data(), stp_channel_set_density_adjustment(), stp_check_curve_parameter(), stp_check_float_parameter(), stp_color_get_row(), stp_color_init(), stp_curve_create_from_string(), stp_curve_destroy(), STP_DBG_PCL, stp_deprintf(), stp_dither(), stp_dither_add_channel(), stp_dither_init(), stp_dither_set_inks_full(), stp_dither_set_inks_simple(), STP_ECOLOR_C, STP_ECOLOR_K, STP_ECOLOR_M, STP_ECOLOR_Y, stp_eprintf(), stp_free(), stp_get_float_parameter(), stp_get_height(), stp_get_left(), stp_get_model_id(), stp_get_page_height(), stp_get_page_width(), stp_get_papersize_by_size(), stp_get_string_parameter(), stp_get_top(), stp_get_width(), stp_image_conclude(), stp_image_height(), stp_image_init(), stp_image_width(), stp_malloc(), STP_PARAMETER_ACTIVE, STP_PARAMETER_DEFAULTED, pcl_cap_t::stp_printer_type, stp_putc(), stp_puts(), stp_send_command(), stp_set_curve_parameter(), stp_set_default_float_parameter(), stp_set_float_parameter(), stp_set_float_parameter_active(), stp_set_string_parameter(), stp_verify(), stp_zprintf(), margins_t::top_margin, and pcl_privdata_t::writefunc.

Referenced by pcl_print().

const pcl_cap_t* pcl_get_model_capabilities int    model [static]
 

Definition at line 1324 of file print-pcl.c.

References pcl_cap_t::model, and stp_erprintf().

Referenced by internal_imageable_area(), pcl_convert_media_size(), pcl_describe_output(), pcl_do_print(), pcl_limit(), pcl_papersize_valid(), and pcl_parameters().

void pcl_imageable_area const stp_vars_t   v,
int *    left,
int *    right,
int *    bottom,
int *    top
[static]
 

Definition at line 1720 of file print-pcl.c.

References internal_imageable_area().

void pcl_limit const stp_vars_t   v,
int *    width,
int *    height,
int *    min_width,
int *    min_height
[static]
 

Definition at line 1730 of file print-pcl.c.

References pcl_cap_t::custom_max_height, pcl_cap_t::custom_max_width, pcl_cap_t::custom_min_height, pcl_cap_t::custom_min_width, pcl_get_model_capabilities(), and stp_get_model_id().

stp_parameter_list_t pcl_list_parameters const stp_vars_t   v [static]
 

Definition at line 1456 of file print-pcl.c.

References float_parameter_count, stp_parameter_list_add_param(), stp_parameter_list_create(), stp_parameter_list_t, and the_parameter_count.

void pcl_mode0 stp_vars_t  ,
unsigned char *   ,
int   ,
int   
[static]
 

Definition at line 2565 of file print-pcl.c.

References stp_zfwrite(), and stp_zprintf().

Referenced by pcl_do_print().

void pcl_mode2 stp_vars_t  ,
unsigned char *   ,
int   ,
int   
[static]
 

Definition at line 2580 of file print-pcl.c.

References pcl_privdata_t::comp_buf, stp_get_component_data(), stp_pack_tiff(), stp_zfwrite(), and stp_zprintf().

Referenced by pcl_do_print().

const int pcl_papersize_valid const stp_papersize_t   pt,
int    model
[static]
 

Definition at line 1391 of file print-pcl.c.

References pcl_cap_t::custom_max_height, pcl_cap_t::custom_max_width, pcl_cap_t::custom_min_height, pcl_cap_t::custom_min_width, stp_papersize_t::height, stp_papersize_t::name, pcl_convert_media_size(), pcl_get_model_capabilities(), PCL_PRINTER_CUSTOM_SIZE, pcl_cap_t::stp_printer_type, and stp_papersize_t::width.

Referenced by pcl_parameters().

void pcl_parameters const stp_vars_t   v,
const char *    name,
stp_parameter_t   description
[static]
 

Definition at line 1468 of file print-pcl.c.

References _, pcl_cap_t::a4_margins, margins_t::bottom_margin, stp_parameter_t::bounds, pcl_cap_t::color_type, pcl_cap_t::custom_max_height, pcl_cap_t::custom_max_width, pcl_cap_t::custom_min_height, pcl_cap_t::custom_min_width, stp_parameter_t::deflt, float_param_t::defval, float_parameter_count, stp_parameter_t::is_active, margins_t::left_margin, float_param_t::max, float_param_t::min, stp_param_string_t::name, stp_papersize_t::name, pcl_cap_t::normal_margins, NUM_PRINTER_PAPER_SOURCES, NUM_PRINTER_PAPER_TYPES, NUM_RESOLUTIONS, stp_parameter_t::p_type, pcl_cap_t::paper_sources, pcl_cap_t::paper_types, pcl_t::pcl_code, PCL_COLOR_CMYKcm, PCL_COLOR_NONE, pcl_get_model_capabilities(), pcl_papersize_valid(), PCL_RES_300_300, pcl_val_to_string(), pcl_val_to_text(), pcl_cap_t::resolutions, margins_t::right_margin, stp_check_string_parameter(), STP_DBG_PCL, stp_deprintf(), stp_erprintf(), stp_fill_parameter_settings(), stp_get_model_id(), stp_get_papersize_by_index(), stp_get_string_parameter(), stp_known_papersizes(), STP_PARAMETER_DEFAULTED, STP_PARAMETER_TYPE_INVALID, pcl_cap_t::stp_printer_type, stp_string_list_add_string(), stp_string_list_create(), stp_string_list_param(), stp_papersize_t::text, the_parameter_count, and margins_t::top_margin.

int pcl_print const stp_vars_t   v,
stp_image_t   image
[static]
 

Definition at line 2534 of file print-pcl.c.

References pcl_do_print(), stp_prune_inactive_options(), stp_vars_create_copy(), and stp_vars_destroy().

void pcl_printfunc stp_vars_t   v [static]
 

Definition at line 1774 of file print-pcl.c.

References pcl_privdata_t::blank_lines, pcl_privdata_t::do_6color, pcl_privdata_t::do_blank, pcl_privdata_t::do_cret, pcl_privdata_t::do_cretb, pcl_privdata_t::height, STP_DBG_PCL, stp_deprintf(), stp_dither_get_channel(), stp_dither_get_last_position(), STP_ECOLOR_C, STP_ECOLOR_K, STP_ECOLOR_M, STP_ECOLOR_Y, stp_get_component_data(), stp_get_string_parameter(), stp_zprintf(), and pcl_privdata_t::writefunc.

Referenced by pcl_do_print().

int pcl_string_to_val const char *    string,
const pcl_t   options,
int    num_options
[static]
 

Definition at line 1227 of file print-pcl.c.

References pcl_t::pcl_code, STP_DBG_PCL, and stp_deprintf().

Referenced by pcl_convert_media_size(), and pcl_do_print().

const char* pcl_val_to_string int    code,
const pcl_t   options,
int    num_options
[static]
 

Definition at line 1255 of file print-pcl.c.

References pcl_t::pcl_code, pcl_t::pcl_name, STP_DBG_PCL, and stp_deprintf().

Referenced by pcl_parameters().

const char* pcl_val_to_text int    code,
const pcl_t   options,
int    num_options
[static]
 

Definition at line 1279 of file print-pcl.c.

References pcl_t::pcl_code, pcl_t::pcl_text, STP_DBG_PCL, and stp_deprintf().

Referenced by pcl_parameters().

int print_pcl_module_exit void    [static]
 

Definition at line 2616 of file print-pcl.c.

References stp_family::printer_list, and stp_family_unregister().

int print_pcl_module_init void    [static]
 

Definition at line 2609 of file print-pcl.c.

References stp_family::printer_list, and stp_family_register().


Variable Documentation

const short basic_papertypes[] [static]
 

Initial value:

Definition at line 574 of file print-pcl.c.

const short dj1100_papersizes[] [static]
 

Initial value:

Definition at line 456 of file print-pcl.c.

const short dj1200_papersizes[] [static]
 

Initial value:

Definition at line 483 of file print-pcl.c.

const short dj1220_papersizes[] [static]
 

Definition at line 424 of file print-pcl.c.

const short dj2000_papersizes[] [static]
 

Initial value:

Definition at line 497 of file print-pcl.c.

const short dj2500_papersizes[] [static]
 

Initial value:

Definition at line 516 of file print-pcl.c.

const short dj2500_papersources[] [static]
 

Initial value:

Definition at line 624 of file print-pcl.c.

const short dj340_papersizes[] [static]
 

Initial value:

Definition at line 358 of file print-pcl.c.

const short dj340_papersources[] [static]
 

Initial value:

Definition at line 607 of file print-pcl.c.

const short dj400_papersizes[] [static]
 

Initial value:

Definition at line 367 of file print-pcl.c.

const short dj500_papersizes[] [static]
 

Initial value:

Definition at line 377 of file print-pcl.c.

const short dj540_papersizes[] [static]
 

Initial value:

Definition at line 388 of file print-pcl.c.

const short dj600_papersizes[] [static]
 

Initial value:

Definition at line 406 of file print-pcl.c.

const short dj_papersources[] [static]
 

Initial value:

Definition at line 616 of file print-pcl.c.

const double dot_sizes[] = { 0.5, 0.832, 1.0 } [static]
 

Definition at line 1303 of file print-pcl.c.

Referenced by pcl_do_print().

const double dot_sizes_cret[] = { 1.0, 1.0, 1.0 } [static]
 

Definition at line 1304 of file print-pcl.c.

Referenced by pcl_do_print().

const short emptylist[] [static]
 

Initial value:

{
  -1
}

Definition at line 337 of file print-pcl.c.

const int float_parameter_count [static]
 

Initial value:

sizeof(float_parameters) / sizeof(const float_param_t)

Definition at line 1220 of file print-pcl.c.

Referenced by pcl_list_parameters(), and pcl_parameters().

const float_param_t float_parameters[] [static]
 

Definition at line 1168 of file print-pcl.c.

const stp_param_string_t ink_types[] [static]
 

Initial value:

{
  { "CMYK",     N_ ("Color + Black Cartridges") },
  { "Photo",    N_ ("Color + Photo Cartridges") }
}

Definition at line 1379 of file print-pcl.c.

const short laserjet_papersources[] [static]
 

Initial value:

Definition at line 596 of file print-pcl.c.

const short letter_only_papersizes[] [static]
 

Initial value:

Definition at line 352 of file print-pcl.c.

const short ljbig_papersizes[] [static]
 

Initial value:

Definition at line 552 of file print-pcl.c.

const short ljsmall_papersizes[] [static]
 

Initial value:

Definition at line 537 of file print-pcl.c.

const short new_papertypes[] [static]
 

Initial value:

Definition at line 584 of file print-pcl.c.

const pcl_t pcl_media_sizes[] [static]
 

Definition at line 132 of file print-pcl.c.

const pcl_t pcl_media_sources[] [static]
 

Initial value:

{
    { "Standard", N_ ("Standard"), PCL_PAPERSOURCE_STANDARD},
    { "Manual", N_ ("Manual"), PCL_PAPERSOURCE_MANUAL},

    { "MultiPurpose", N_ ("Tray 1"), PCL_PAPERSOURCE_LJ_TRAY1},
    { "Upper", N_ ("Tray 2"), PCL_PAPERSOURCE_LJ_TRAY2},
    { "Lower", N_ ("Tray 3"), PCL_PAPERSOURCE_LJ_TRAY3},
    { "LargeCapacity", N_ ("Tray 4"), PCL_PAPERSOURCE_LJ_TRAY4},
    { "Portable", N_ ("Portable Sheet Feeder"), PCL_PAPERSOURCE_340_PCSF},
    { "Desktop", N_ ("Desktop Sheet Feeder"), PCL_PAPERSOURCE_340_DCSF},
    { "Tray", N_ ("Tray"), PCL_PAPERSOURCE_DJ_TRAY},
    { "Tray2", N_ ("Tray 2"), PCL_PAPERSOURCE_DJ_TRAY2},
    { "Optional", N_ ("Optional Source"), PCL_PAPERSOURCE_DJ_OPTIONAL},
    { "Auto", N_ ("Autoselect"), PCL_PAPERSOURCE_DJ_AUTO},
}

Definition at line 222 of file print-pcl.c.

const pcl_t pcl_media_types[] [static]
 

Initial value:

{
    { "Plain", N_ ("Plain"), PCL_PAPERTYPE_PLAIN},
    { "Bond", N_ ("Bond"), PCL_PAPERTYPE_BOND},
    { "Premium", N_ ("Premium"), PCL_PAPERTYPE_PREMIUM},
    { "Glossy", N_ ("Glossy Photo"), PCL_PAPERTYPE_GLOSSY},
    { "Transparency", N_ ("Transparency"), PCL_PAPERTYPE_TRANS},
    { "GlossyQD", N_ ("Quick-dry Photo"), PCL_PAPERTYPE_QPHOTO},
    { "TransparencyQD", N_ ("Quick-dry Transparency"), PCL_PAPERTYPE_QTRANS},
}

Definition at line 177 of file print-pcl.c.

const pcl_cap_t pcl_model_capabilities[] [static]
 

Definition at line 641 of file print-pcl.c.

const pcl_t pcl_resolutions[] [static]
 

Initial value:

{
    { "150dpi", N_("150x150 DPI"), PCL_RES_150_150, 150, 150},
    { "300dpi", N_("300x300 DPI"), PCL_RES_300_300, 300, 300},
    { "600x300dpi", N_("600x300 DPI"), PCL_RES_600_300, 600, 300},
    { "600mono", N_("600x600 DPI monochrome"), PCL_RES_600_600_MONO, 600, 600},
    { "600dpi", N_("600x600 DPI"), PCL_RES_600_600, 600, 600},
    { "1200x600dpi", N_("1200x600 DPI"), PCL_RES_1200_600, 1200, 600},
    { "2400x600dpi", N_("2400x600 DPI"), PCL_RES_2400_600, 2400, 600},
}

Definition at line 248 of file print-pcl.c.

const stp_shade_t photo_dither_shades[] [static]
 

Initial value:

{
  { 1.0000, 1, single_dotsize },
  { 0.3333, 1, single_dotsize },
}

Definition at line 80 of file print-pcl.c.

stp_family_t print_pcl_module_data [static]
 

Initial value:

  {
    &print_pcl_printfuncs,
    NULL
  }

Definition at line 2601 of file print-pcl.c.

const stp_printfuncs_t print_pcl_printfuncs [static]
 

Initial value:

{
  pcl_list_parameters,
  pcl_parameters,
  stp_default_media_size,
  pcl_imageable_area,
  pcl_limit,
  pcl_print,
  pcl_describe_resolution,
  pcl_describe_output,
  stp_verify_printer_params,
  NULL,
  NULL
}

Definition at line 2544 of file print-pcl.c.

const stp_dotsize_t single_dotsize[] [static]
 

Initial value:

{
  { 0x1, 1.0 }
}

Definition at line 75 of file print-pcl.c.

const char standard_hue_adjustment[] [static]
 

Initial value:

"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<gimp-print>\n"
"<curve wrap=\"wrap\" type=\"linear\" gamma=\"0\">\n"
"<sequence count=\"48\" lower-bound=\"-6\" upper-bound=\"6\">\n"
  "0.00 0.06 0.10 0.10 0.06 -.01 -.09 -.17 "  
  "-.25 -.33 -.38 -.38 -.36 -.34 -.34 -.34 "  
  "-.34 -.34 -.36 -.40 -.50 -.40 -.30 -.20 "  
  "-.12 -.07 -.04 -.02 0.00 0.00 0.00 0.00 "  
  "0.00 0.00 0.00 -.05 -.10 -.15 -.22 -.24 "  
  "-.26 -.30 -.33 -.28 -.25 -.20 -.13 -.06 "  
"</sequence>\n"
"</curve>\n"
"</gimp-print>\n"

Definition at line 1095 of file print-pcl.c.

Referenced by pcl_do_print().

const char standard_lum_adjustment[] [static]
 

Initial value:

"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<gimp-print>\n"
"<curve wrap=\"wrap\" type=\"linear\" gamma=\"0\">\n"
"<sequence count=\"48\" lower-bound=\"0\" upper-bound=\"4\">\n"
  "0.50 0.52 0.56 0.60 0.66 0.71 0.74 0.77 "  
  "0.81 0.79 0.74 0.68 0.70 0.74 0.77 0.82 "  
  "0.88 0.93 0.95 0.97 0.97 0.96 0.95 0.95 "  
  "0.95 0.96 0.97 0.98 0.99 1.00 1.00 1.00 "  
  "1.00 0.97 0.94 0.92 0.90 0.88 0.85 0.79 "  
  "0.69 0.64 0.58 0.54 0.54 0.54 0.53 0.51 "  
"</sequence>\n"
"</curve>\n"
"</gimp-print>\n"

Definition at line 1080 of file print-pcl.c.

Referenced by pcl_do_print().

const short standard_papersizes[] [static]
 

Initial value:

Definition at line 342 of file print-pcl.c.

const short standard_papersources[] [static]
 

Initial value:

Definition at line 635 of file print-pcl.c.

const char standard_sat_adjustment[] [static]
 

Initial value:

"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<gimp-print>\n"
"<curve wrap=\"wrap\" type=\"linear\" gamma=\"0\">\n"
"<sequence count=\"48\" lower-bound=\"0\" upper-bound=\"4\">\n"
  "1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 "  
  "1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 "  
  "1.00 0.95 0.90 0.90 0.90 0.90 0.90 0.90 "  
  "0.90 0.95 0.95 1.00 1.00 1.00 1.00 1.00 "  
  "1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 "  
  "1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 "  
"</sequence>\n"
"</curve>\n"
"</gimp-print>\n"

Definition at line 1065 of file print-pcl.c.

stp_module_t stp_module_data
 

Initial value:

  {
    "pcl",
    VERSION,
    "PCL family driver",
    STP_MODULE_CLASS_FAMILY,
    NULL,
    print_pcl_module_init,
    print_pcl_module_exit,
    (void *) &print_pcl_module_data
  }

Definition at line 2628 of file print-pcl.c.

stp_module_version_t stp_module_version = {0, 0}
 

Definition at line 2626 of file print-pcl.c.

const int the_parameter_count [static]
 

Initial value:

sizeof(the_parameters) / sizeof(const stp_parameter_t)

Definition at line 1156 of file print-pcl.c.

Referenced by pcl_list_parameters(), and pcl_parameters().

const stp_parameter_t the_parameters[] [static]
 

Definition at line 1110 of file print-pcl.c.

const stp_dotsize_t variable_dotsizes[] [static]
 

Initial value:

{
  { 0x1, 0.5 },
  { 0x2, 0.67 },
  { 0x3, 1.0 }
}

Definition at line 1306 of file print-pcl.c.

const stp_shade_t variable_shades[] [static]
 

Initial value:

{
  { 0.38, 3, variable_dotsizes },
  { 1.0, 3, variable_dotsizes }
}

Definition at line 1313 of file print-pcl.c.


Generated on Wed May 12 20:21:37 2004 for libgimpprint API Reference by doxygen1.2.17