#include <gimp-print/gimp-print.h>
#include <gimp-print/gimp-print-intl-internal.h>
#include "gimp-print-internal.h"
#include <string.h>
#include <assert.h>
#include <math.h>
#include "print-escp2.h"
Go to the source code of this file.
|
Value: static inline t \ escp2_##f(const stp_vars_t *v) \ { \ int model = stp_get_model_id(v); \ return (stpi_escp2_model_capabilities[model].f); \ } Definition at line 553 of file print-escp2.c. |
|
Value: static inline t \ escp2_##f(const stp_vars_t *v) \ { \ if (stp_check_raw_parameter(v, "escp2_" #f, STP_PARAMETER_ACTIVE)) \ return stp_get_raw_parameter(v, "escp2_" #f); \ else \ { \ int model = stp_get_model_id(v); \ return (stpi_escp2_model_capabilities[model].f); \ } \ } Definition at line 540 of file print-escp2.c. |
|
Value: static inline t \ escp2_##f(const stp_vars_t *v, int rollfeed) \ { \ if (stp_check_int_parameter(v, "escp2_" #f, STP_PARAMETER_ACTIVE)) \ return stp_get_int_parameter(v, "escp2_" #f); \ else \ { \ int model = stp_get_model_id(v); \ const res_t *res = escp2_find_resolution(v); \ if (res && !(res->softweave)) \ { \ if (rollfeed) \ return (stpi_escp2_model_capabilities[model].m_roll_##f); \ else \ return (stpi_escp2_model_capabilities[model].m_##f); \ } \ else \ { \ if (rollfeed) \ return (stpi_escp2_model_capabilities[model].roll_##f); \ else \ return (stpi_escp2_model_capabilities[model].f); \ } \ } \ } Definition at line 561 of file print-escp2.c. |
|
Value: static inline t \ escp2_##f(const stp_vars_t *v) \ { \ if (stp_check_int_parameter(v, "escp2_" #f, STP_PARAMETER_ACTIVE)) \ return stp_get_int_parameter(v, "escp2_" #f); \ else \ { \ int model = stp_get_model_id(v); \ return (stpi_escp2_model_capabilities[model].f); \ } \ } Definition at line 527 of file print-escp2.c. |
|
Definition at line 122 of file print-escp2.c. |
|
Definition at line 48 of file print-escp2.c. |
|
Definition at line 46 of file print-escp2.c. Referenced by escp2_do_print(), escp2_job_end(), and escp2_print(). |
|
Definition at line 45 of file print-escp2.c. Referenced by escp2_do_print(), and escp2_print(). |
|
Definition at line 44 of file print-escp2.c. Referenced by escp2_do_print(), escp2_job_start(), and escp2_print(). |
|
Value: { \ "escp2_" #s, "escp2_" #s, N_("Advanced Printer Functionality"), NULL, \ STP_PARAMETER_TYPE_INT, STP_PARAMETER_CLASS_FEATURE, \ STP_PARAMETER_LEVEL_INTERNAL, 0, 1, -1, 1, 0 \ } Definition at line 126 of file print-escp2.c. |
|
Value: { \ "escp2_" #s, "escp2_" #s, N_("Advanced Printer Functionality"), NULL, \ STP_PARAMETER_TYPE_INT, STP_PARAMETER_CLASS_FEATURE, \ STP_PARAMETER_LEVEL_INTERNAL, 0, 1, -1, 1, 1 \ } Definition at line 133 of file print-escp2.c. |
|
Value: { \ "escp2_" #s, "escp2_" #s, N_("Advanced Printer Functionality"), NULL, \ STP_PARAMETER_TYPE_RAW, STP_PARAMETER_CLASS_FEATURE, \ STP_PARAMETER_LEVEL_INTERNAL, 0, 1, -1, 1, 0 \ } Definition at line 140 of file print-escp2.c. |
|
Definition at line 2780 of file print-escp2.c. |
|
Definition at line 2779 of file print-escp2.c. |
|
|
|
Definition at line 2230 of file print-escp2.c. References res_t::hres, lcm(), and res_t::vres. Referenced by setup_resolution(). |
|
Definition at line 2217 of file print-escp2.c. References res_t::hres, lcm(), and res_t::vres. Referenced by setup_resolution(). |
|
|
Definition at line 2032 of file print-escp2.c. References escp2_inkname_t::channel_set, channel_set_t::channels, and ink_channel_t::n_subchannels. Referenced by setup_head_parameters(). |
|
Definition at line 790 of file print-escp2.c. References RES_N. Referenced by compute_printed_resid(), and compute_resid(). |
|
Definition at line 820 of file print-escp2.c. References compute_internal_resid(), res_t::printed_hres, and res_t::printed_vres. Referenced by adjust_density_and_ink_type(), get_default_inktype(), setup_head_parameters(), and verify_resolution(). |
|
Definition at line 814 of file print-escp2.c. References compute_internal_resid(), res_t::hres, and res_t::vres. Referenced by setup_resolution(), and verify_resolution(). |
|
Definition at line 2021 of file print-escp2.c. References channel_set_t::channel_count, escp2_inkname_t::channel_set, channel_set_t::channels, and ink_channel_t::n_subchannels. Referenced by escp2_do_print(). |
|
Definition at line 696 of file print-escp2.c. References escp2_printer::base_resolutions, stp_check_float_parameter(), stp_get_float_parameter(), stp_get_model_id(), STP_PARAMETER_ACTIVE, stp_vars_t, and stpi_escp2_model_capabilities. Referenced by get_default_inktype(), setup_resolution(), and verify_resolution(). |
|
Definition at line 684 of file print-escp2.c. References escp2_printer::bits, stp_check_int_parameter(), stp_get_int_parameter(), stp_get_model_id(), STP_PARAMETER_ACTIVE, stp_vars_t, and stpi_escp2_model_capabilities. Referenced by adjust_density_and_ink_type(), and setup_head_parameters(). |
|
Definition at line 672 of file print-escp2.c. References escp2_printer::densities, stp_check_float_parameter(), stp_get_float_parameter(), stp_get_model_id(), STP_PARAMETER_ACTIVE, stp_vars_t, and stpi_escp2_model_capabilities. Referenced by adjust_density_and_ink_type(). |
|
Definition at line 1781 of file print-escp2.c. References escp2_inkname_t::channel_set, channel_set_t::channels, get_inktype(), escp2_inkname_t::inkset, INKSET_CcMmYK, INKSET_CcMmYKk, INKSET_CcMmYyK, INKSET_CMYK, INKSET_CMYKRB, stp_get_string_parameter(), and stp_vars_t. Referenced by allocate_channels(). |
|
Definition at line 1767 of file print-escp2.c. References escp2_find_resolution(), res_t::printed_hres, res_t::printed_vres, stp_vars_t, and verify_resolution(). |
|
|
Definition at line 708 of file print-escp2.c. References escp2_printer::drops, escp2_drop_list_t, stp_get_model_id(), stp_vars_t, and stpi_escp2_model_capabilities. Referenced by setup_inks(). |
|
Definition at line 1632 of file print-escp2.c. References find_resolution_from_quality(), res_t::name, stp_check_string_parameter(), STP_DBG_ESCP2, stp_dprintf(), stp_get_string_parameter(), STP_PARAMETER_ACTIVE, and stp_vars_t. Referenced by escp2_describe_resolution(), escp2_parameters(), get_default_inktype(), setup_resolution(), and use_printer_weave(). |
|
Definition at line 494 of file print-escp2.c. References escp2_printer_attr_t::bit_shift, escp2_printer_attr_t::bit_width, escp2_printer_attrs, escp2_printer::flags, model_featureset_t, MODEL_LIMIT, stp_get_model_id(), stp_vars_t, and stpi_escp2_model_capabilities. Referenced by setup_misc(). |
|
Definition at line 1816 of file print-escp2.c. References escp2_has_cap(), MODEL_COMMAND, MODEL_COMMAND_1999, MODEL_COMMAND_2000, MODEL_COMMAND_PRO, and stp_vars_t. Referenced by setup_misc(). |
|
|
Definition at line 1746 of file print-escp2.c. References internal_imageable_area(), and stp_vars_t. |
|
Definition at line 660 of file print-escp2.c. References escp2_printer::dot_sizes, stp_check_int_parameter(), stp_get_int_parameter(), stp_get_model_id(), STP_PARAMETER_ACTIVE, stp_vars_t, and stpi_escp2_model_capabilities. Referenced by adjust_density_and_ink_type(), and verify_resolution(). |
|
Definition at line 716 of file print-escp2.c. References escp2_printer::inkgroup, inkgroup_t::inklists, inkgroup_t::n_inklists, inklist_t::name, stp_check_string_parameter(), stp_get_model_id(), stp_get_string_parameter(), STP_PARAMETER_ACTIVE, stp_vars_t, and stpi_escp2_model_capabilities. Referenced by escp2_paperlist(), escp2_parameters(), escp2_shades(), get_default_inktype(), get_inktype(), get_media_adjustment(), and set_raw_ink_type(). |
|
Definition at line 2732 of file print-escp2.c. References escp2_do_print(), OP_JOB_END, stp_image_t, stp_prune_inactive_options(), stp_vars_create_copy(), stp_vars_destroy(), and stp_vars_t. |
|
Definition at line 2721 of file print-escp2.c. References escp2_do_print(), OP_JOB_START, stp_image_t, stp_prune_inactive_options(), stp_vars_create_copy(), stp_vars_destroy(), and stp_vars_t. |
|
Definition at line 1756 of file print-escp2.c. References stp_vars_t. |
|
Definition at line 1098 of file print-escp2.c. References float_parameter_count, float_parameters, stp_parameter_list_add_param(), stp_parameter_list_create(), stp_parameter_list_t, stp_vars_t, the_parameter_count, and the_parameters. |
|
Definition at line 744 of file print-escp2.c. References escp2_inklist(), inklist_t::papers, and stp_vars_t. Referenced by escp2_parameters(), get_default_inktype(), and get_media_type(). |
|
|
Definition at line 2706 of file print-escp2.c. References escp2_do_print(), OP_JOB_END, OP_JOB_PRINT, OP_JOB_START, stp_get_string_parameter(), stp_image_t, stp_prune_inactive_options(), stp_vars_create_copy(), stp_vars_destroy(), and stp_vars_t. |
|
|
|
Definition at line 737 of file print-escp2.c. References escp2_inklist(), inklist_t::shades, and stp_vars_t. Referenced by setup_inks(). |
|
Definition at line 1824 of file print-escp2.c. References escp2_has_cap(), MODEL_COMMAND, MODEL_COMMAND_PRO, MODEL_VARIABLE_DOT, MODEL_VARIABLE_YES, and stp_vars_t. Referenced by setup_misc(), and setup_resolution(). |
|
Definition at line 1110 of file print-escp2.c. References stp_parameter_t::bounds, stp_parameter_t::deflt, and stp_parameter_t::is_active. Referenced by set_color_transition_parameter(), and set_gray_transition_parameter(). |
|
Definition at line 1170 of file print-escp2.c. References res_t::hres, stp_vars_t, verify_resolution(), verify_resolution_by_paper_type(), and res_t::vres. Referenced by escp2_parameters(), and find_resolution_from_quality(). |
|
Definition at line 1218 of file print-escp2.c. References quality_t::desired_hres, quality_t::desired_vres, find_default_resolution(), quality_t::max_hres, quality_t::max_vres, quality_t::min_hres, quality_t::min_vres, quality_list_t::n_quals, quality_t::name, quality_list_t::qualities, and stp_vars_t. Referenced by escp2_find_resolution(), and escp2_parameters(). |
|
Definition at line 2188 of file print-escp2.c. |
|
Definition at line 640 of file print-escp2.c. References escp2_channel_counts, and escp2_channel_counts_count. Referenced by set_raw_ink_type(). |
|
Definition at line 650 of file print-escp2.c. References channel_count_t::count, escp2_channel_counts, and escp2_channel_counts_count. Referenced by escp2_parameters(). |
|
Definition at line 1006 of file print-escp2.c. References compute_printed_resid(), escp2_base_res(), escp2_find_resolution(), escp2_has_cap(), escp2_inklist(), escp2_paperlist(), get_media_type(), res_t::hres, inklist_t::inknames, MODEL_FAST_360, MODEL_FAST_360_YES, inklist_t::n_inks, escp2_inkname_t::name, paperlist_t::papers, paper_t::preferred_ink_type, stp_check_string_parameter(), STP_PARAMETER_ACTIVE, stp_vars_t, and res_t::vres. Referenced by get_inktype(). |
|
Definition at line 2046 of file print-escp2.c. References stp_check_float_parameter(), stp_get_float_parameter(), STP_PARAMETER_ACTIVE, and stp_vars_t. |
|
Definition at line 1041 of file print-escp2.c. References AUTO_MODE_MANUAL, escp2_inklist(), get_default_inktype(), inklist_t::inknames, inklist_t::n_inks, escp2_inkname_t::name, stp_get_string_parameter(), stp_vars_t, and using_automatic_settings(). Referenced by escp2_describe_output(), escp2_do_print(), set_color_transition_parameter(), set_density_parameter(), and set_gray_transition_parameter(). |
|
Definition at line 827 of file print-escp2.c. References input_slot_list_t::n_input_slots, input_slot_t::name, input_slot_list_t::slots, stp_get_string_parameter(), and stp_vars_t. Referenced by escp2_parameters(), internal_imageable_area(), setup_misc(), and setup_page(). |
|
Definition at line 1074 of file print-escp2.c. References escp2_inklist(), get_media_type(), paper_adjustment_t::name, paper_t::name, inklist_t::paper_adjustments, paper_adjustment_list_t::paper_count, paper_adjustment_list_t::papers, and stp_vars_t. Referenced by setup_misc(). |
|
Definition at line 887 of file print-escp2.c. References escp2_paperlist(), paper_t::name, paperlist_t::paper_count, paperlist_t::papers, stp_get_string_parameter(), and stp_vars_t. |
|
Definition at line 851 of file print-escp2.c. References printer_weave_list_t::n_printer_weaves, printer_weave_t::name, printer_weave_list_t::printer_weaves, stp_get_string_parameter(), and stp_vars_t. Referenced by setup_head_parameters(). |
|
|
Definition at line 1670 of file print-escp2.c. Referenced by internal_imageable_area(). |
|
|
Definition at line 2208 of file print-escp2.c. References gcd(). Referenced by adjusted_horizontal_resolution(), adjusted_vertical_resolution(), and stp_curve_compose(). |
|
Definition at line 2772 of file print-escp2.c. References print_escp2_module_data, stp_family::printer_list, and stp_family_unregister(). |
|
Definition at line 2765 of file print-escp2.c. References print_escp2_module_data, stp_family::printer_list, and stp_family_register(). |
|
Definition at line 1151 of file print-escp2.c. References AUTO_MODE_MANUAL, channel_set_t::channel_count, escp2_inkname_t::channel_set, channel_set_t::channels, fill_transition_parameters(), get_inktype(), stp_parameter_t::is_active, ink_channel_t::n_subchannels, stp_get_string_parameter(), stp_vars_t, and using_automatic_settings(). Referenced by escp2_parameters(). |
|
Definition at line 1119 of file print-escp2.c. References AUTO_MODE_MANUAL, channel_set_t::channel_count, escp2_inkname_t::channel_set, channel_set_t::channels, get_inktype(), stp_parameter_t::is_active, stp_get_string_parameter(), stp_vars_t, and using_automatic_settings(). Referenced by escp2_parameters(). |
|
Definition at line 1137 of file print-escp2.c. References AUTO_MODE_MANUAL, escp2_inkname_t::channel_set, channel_set_t::channels, fill_transition_parameters(), get_inktype(), stp_parameter_t::is_active, ink_channel_t::n_subchannels, STP_ECOLOR_K, stp_vars_t, and using_automatic_settings(). Referenced by escp2_parameters(). |
|
Definition at line 2464 of file print-escp2.c. Referenced by escp2_print_data(). |
|
Definition at line 1832 of file print-escp2.c. References _, channel_set_t::channel_count, escp2_inkname_t::channel_set, channel_count_t::count, escp2_inklist(), get_channel_count_by_name(), inklist_t::inknames, escp2_inkname_t::inkset, INKSET_EXTENDED, inklist_t::n_inks, escp2_inkname_t::name, STP_DBG_INK, stp_dprintf(), stp_eprintf(), stp_get_string_parameter(), stp_set_int_parameter(), stp_set_string_parameter(), and stp_vars_t. Referenced by escp2_do_print(). |
|
|
|
|
|
|
Definition at line 2311 of file print-escp2.c. References get_privdata(), escp2_privdata_t::horizontal_passes, escp2_privdata_t::min_nozzles, escp2_privdata_t::nozzle_separation, escp2_privdata_t::nozzles, stp_vars_t, and escp2_privdata_t::use_black_parameters. Referenced by setup_head_parameters(). |
|
|
|
Definition at line 872 of file print-escp2.c. References escp2_find_resolution(), res_t::printer_weave, res_t::softweave, and stp_vars_t. Referenced by escp2_parameters(), and setup_head_parameters(). |
|
Definition at line 754 of file print-escp2.c. References AUTO_MODE_MANUAL, AUTO_MODE_QUALITY, stp_check_string_parameter(), stp_get_string_parameter(), STP_PARAMETER_ACTIVE, and stp_vars_t. Referenced by escp2_parameters(), get_inktype(), set_color_transition_parameter(), set_density_parameter(), and set_gray_transition_parameter(). |
|
Definition at line 997 of file print-escp2.c. References escp2_inkname_t::inkset, INKSET_EXTENDED, and stp_vars_t. Referenced by escp2_parameters(). |
|
Definition at line 977 of file print-escp2.c. References escp2_has_cap(), stp_papersize_t::height, MODEL_ROLLFEED, MODEL_ROLLFEED_YES, stp_papersize_t::name, stp_vars_t, and stp_papersize_t::width. Referenced by escp2_parameters(). |
|
Definition at line 945 of file print-escp2.c. References compute_printed_resid(), compute_resid(), escp2_base_res(), escp2_ink_type(), res_t::hres, res_t::softweave, stp_vars_t, res_t::vertical_passes, and res_t::vres. Referenced by escp2_describe_resolution(), escp2_parameters(), and find_default_resolution(). |
|
Definition at line 908 of file print-escp2.c. References get_media_type(), res_t::hres, paper_t::paper_class, PAPER_GOOD, PAPER_PHOTO, PAPER_PLAIN, PAPER_PREMIUM_PHOTO, PAPER_TRANSPARENCY, res_t::printed_vres, and stp_vars_t. Referenced by escp2_parameters(), and find_default_resolution(). |
|
Definition at line 78 of file print-escp2.c. Referenced by get_channel_count_by_name(), and get_channel_count_by_number(). |
|
Initial value: sizeof(escp2_channel_counts) / sizeof(channel_count_t) Definition at line 114 of file print-escp2.c. Referenced by get_channel_count_by_name(), and get_channel_count_by_number(). |
|
Initial value: { { "command_mode", 0, 4 }, { "horizontal_zero_margin", 4, 1 }, { "rollfeed", 5, 1 }, { "variable_mode", 6, 1 }, { "graymode", 7, 1 }, { "vacuum", 8, 1 }, { "fast_360", 9, 1 }, { "send_zero_advance", 10, 1 }, { "supports_ink_change", 11, 1 }, { "packet_mode", 12, 1 }, { "print_to_cd", 13, 1 }, } Definition at line 57 of file print-escp2.c. Referenced by escp2_get_cap(), and escp2_has_cap(). |
|
Initial value: sizeof(float_parameters) / sizeof(const float_param_t) Definition at line 483 of file print-escp2.c. Referenced by escp2_list_parameters(), and escp2_parameters(). |
|
Definition at line 367 of file print-escp2.c. Referenced by escp2_list_parameters(), and escp2_parameters(). |
|
Initial value: { 1.0, 0.31 / .4, 0.61 / .96, 0.08, 0.31 * 0.33 / .4, 0.61 * 0.33 / .96, 0.33, 1.0 } Definition at line 117 of file print-escp2.c. Referenced by setup_inks(). |
|
Initial value: { &print_escp2_printfuncs, NULL } Definition at line 2757 of file print-escp2.c. Referenced by print_escp2_module_exit(), and print_escp2_module_init(). |
|
Initial value: { escp2_list_parameters, escp2_parameters, stp_default_media_size, escp2_imageable_area, escp2_limit, escp2_print, escp2_describe_resolution, escp2_describe_output, stp_verify_printer_params, escp2_job_start, escp2_job_end } Definition at line 2742 of file print-escp2.c. |
|
Initial value: { "escp2", VERSION, "Epson family driver", STP_MODULE_CLASS_FAMILY, NULL, print_escp2_module_init, print_escp2_module_exit, (void *) &print_escp2_module_data } Definition at line 2784 of file print-escp2.c. |
|
Definition at line 2782 of file print-escp2.c. |
|
Initial value: sizeof(the_parameters) / sizeof(const stp_parameter_t) Definition at line 364 of file print-escp2.c. Referenced by escp2_list_parameters(), and escp2_parameters(). |
|
Definition at line 156 of file print-escp2.c. Referenced by escp2_list_parameters(), and escp2_parameters(). |