#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 527 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 514 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 535 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 501 of file print-escp2.c. |
|
Definition at line 120 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 124 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 131 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 138 of file print-escp2.c. |
|
Definition at line 2710 of file print-escp2.c. |
|
Definition at line 2709 of file print-escp2.c. |
|
Definition at line 1802 of file print-escp2.c. References paper_adjustment_t::base_density, compute_printed_resid(), escp2_privdata_t::drop_size, escp2_bits(), escp2_density(), escp2_ink_type(), get_privdata(), escp2_privdata_t::ink_resid, escp2_privdata_t::paper_adjustment, escp2_privdata_t::res, RES_360, stp_check_boolean_parameter(), stp_check_float_parameter(), stp_check_int_parameter(), stp_get_boolean_parameter(), stp_get_float_parameter(), STP_PARAMETER_ACTIVE, STP_PARAMETER_DEFAULTED, stp_set_float_parameter(), and stp_set_float_parameter_active(). Referenced by escp2_do_print(). |
|
|
Definition at line 2165 of file print-escp2.c. References res_t::hres, lcm(), and res_t::vres. Referenced by setup_resolution(). |
|
Definition at line 2152 of file print-escp2.c. References res_t::hres, lcm(), and res_t::vres. Referenced by setup_resolution(). |
|
Definition at line 2093 of file print-escp2.c. References escp2_inkname_t::channel_set, channel_set_t::channels, escp2_privdata_t::channels, escp2_privdata_t::channels_in_use, escp2_privdata_t::cols, escp2_describe_output(), get_privdata(), escp2_privdata_t::inkname, escp2_privdata_t::logical_channels, ink_channel_t::n_subchannels, stp_dither_add_channel(), stp_set_string_parameter(), stp_zalloc(), and ink_channel_t::subchannels. Referenced by escp2_print_page(). |
|
Definition at line 1967 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 764 of file print-escp2.c. References RES_N. Referenced by compute_printed_resid(), and compute_resid(). |
|
Definition at line 794 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 788 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 1956 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 670 of file print-escp2.c. References stp_check_float_parameter(), stp_get_float_parameter(), stp_get_model_id(), and STP_PARAMETER_ACTIVE. Referenced by get_default_inktype(), setup_resolution(), and verify_resolution(). |
|
Definition at line 658 of file print-escp2.c. References stp_check_int_parameter(), stp_get_int_parameter(), stp_get_model_id(), and STP_PARAMETER_ACTIVE. Referenced by adjust_density_and_ink_type(), and setup_head_parameters(). |
|
Definition at line 646 of file print-escp2.c. References stp_check_float_parameter(), stp_get_float_parameter(), stp_get_model_id(), and STP_PARAMETER_ACTIVE. Referenced by adjust_density_and_ink_type(). |
|
Definition at line 1716 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, and stp_get_string_parameter(). Referenced by allocate_channels(). |
|
Definition at line 1702 of file print-escp2.c. References escp2_find_resolution(), res_t::printed_hres, res_t::printed_vres, and verify_resolution(). |
|
Definition at line 2587 of file print-escp2.c. References _, adjust_density_and_ink_type(), escp2_privdata_t::channels_in_use, count_channels(), escp2_has_cap(), escp2_print_page(), get_inktype(), escp2_privdata_t::head_offset, escp2_privdata_t::inkname, escp2_privdata_t::last_color, escp2_privdata_t::last_pass, escp2_privdata_t::last_pass_offset, MODEL_SEND_ZERO_ADVANCE, MODEL_SEND_ZERO_ADVANCE_YES, OP_JOB_END, OP_JOB_PRINT, OP_JOB_START, escp2_privdata_t::printed_something, escp2_privdata_t::send_zero_pass_advance, set_raw_ink_type(), setup_head_parameters(), setup_misc(), setup_page(), setup_resolution(), stp_allocate_component_data(), stp_eprintf(), stp_free(), stp_get_string_parameter(), stp_image_init(), stp_verify(), stp_zalloc(), stpi_escp2_deinit_printer(), and stpi_escp2_init_printer(). Referenced by escp2_job_end(), escp2_job_start(), and escp2_print(). |
|
Definition at line 682 of file print-escp2.c. References escp2_drop_list_t, and stp_get_model_id(). Referenced by setup_inks(). |
|
Definition at line 1567 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(), and STP_PARAMETER_ACTIVE. Referenced by escp2_describe_resolution(), escp2_parameters(), get_default_inktype(), setup_resolution(), and use_printer_weave(). |
|
Definition at line 468 of file print-escp2.c. References escp2_printer_attr_t::bit_shift, escp2_printer_attr_t::bit_width, escp2_model_option_t, model_featureset_t, MODEL_LIMIT, and stp_get_model_id(). Referenced by setup_misc(). |
|
Definition at line 1751 of file print-escp2.c. References escp2_has_cap(), MODEL_COMMAND, MODEL_COMMAND_1999, MODEL_COMMAND_2000, and MODEL_COMMAND_PRO. Referenced by setup_misc(). |
|
Definition at line 483 of file print-escp2.c. References escp2_printer_attr_t::bit_shift, escp2_printer_attr_t::bit_width, escp2_model_option_t, model_featureset_t, MODEL_LIMIT, and stp_get_model_id(). Referenced by escp2_do_print(), escp2_has_advanced_command_set(), escp2_parameters(), escp2_use_extended_commands(), get_default_inktype(), internal_imageable_area(), setup_head_parameters(), setup_misc(), setup_resolution(), and verify_papersize(). |
|
Definition at line 1681 of file print-escp2.c. References internal_imageable_area(). |
|
Definition at line 634 of file print-escp2.c. References stp_check_int_parameter(), stp_get_int_parameter(), stp_get_model_id(), and STP_PARAMETER_ACTIVE. Referenced by adjust_density_and_ink_type(), and verify_resolution(). |
|
Definition at line 690 of file print-escp2.c. References inkgroup_t::inklists, inkgroup_t::n_inklists, inklist_t::name, stp_check_string_parameter(), stp_get_model_id(), stp_get_string_parameter(), and STP_PARAMETER_ACTIVE. Referenced by escp2_paperlist(), escp2_parameters(), escp2_shades(), get_default_inktype(), get_inktype(), get_media_adjustment(), and set_raw_ink_type(). |
|
Definition at line 2662 of file print-escp2.c. References escp2_do_print(), OP_JOB_END, stp_prune_inactive_options(), stp_vars_create_copy(), and stp_vars_destroy(). |
|
Definition at line 2651 of file print-escp2.c. References escp2_do_print(), OP_JOB_START, stp_prune_inactive_options(), stp_vars_create_copy(), and stp_vars_destroy(). |
|
Definition at line 1691 of file print-escp2.c. |
|
Definition at line 1072 of file print-escp2.c. References float_parameter_count, stp_parameter_list_add_param(), stp_parameter_list_create(), stp_parameter_list_t, and the_parameter_count. |
|
Definition at line 718 of file print-escp2.c. References escp2_inklist(), and inklist_t::papers. Referenced by escp2_parameters(), get_default_inktype(), and get_media_type(). |
|
|
Definition at line 2636 of file print-escp2.c. References escp2_do_print(), OP_JOB_END, OP_JOB_PRINT, OP_JOB_START, stp_get_string_parameter(), stp_prune_inactive_options(), stp_vars_create_copy(), and stp_vars_destroy(). |
|
Definition at line 2439 of file print-escp2.c. References escp2_privdata_t::cd_inner_radius, escp2_privdata_t::cd_outer_radius, escp2_privdata_t::cd_x_offset, escp2_privdata_t::cd_y_offset, escp2_privdata_t::cols, get_privdata(), escp2_privdata_t::image_printed_height, escp2_privdata_t::image_printed_width, escp2_privdata_t::micro_units, res_t::printed_hres, res_t::printed_vres, escp2_privdata_t::res, set_mask(), stp_color_get_row(), stp_dither(), stp_free(), stp_image_height(), stp_malloc(), and stp_write_weave(). Referenced by escp2_print_page(). |
|
|
Definition at line 711 of file print-escp2.c. References escp2_inklist(), and inklist_t::shades. Referenced by setup_inks(). |
|
Definition at line 1759 of file print-escp2.c. References escp2_has_cap(), MODEL_COMMAND, MODEL_COMMAND_PRO, MODEL_VARIABLE_DOT, and MODEL_VARIABLE_YES. Referenced by setup_misc(), and setup_resolution(). |
|
Definition at line 1084 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 1144 of file print-escp2.c. References res_t::hres, verify_resolution(), verify_resolution_by_paper_type(), and res_t::vres. Referenced by escp2_parameters(), and find_resolution_from_quality(). |
|
Definition at line 1192 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, and quality_list_t::qualities. Referenced by escp2_find_resolution(), and escp2_parameters(). |
|
Definition at line 2123 of file print-escp2.c. |
|
Definition at line 614 of file print-escp2.c. References escp2_channel_counts_count. Referenced by set_raw_ink_type(). |
|
Definition at line 624 of file print-escp2.c. References channel_count_t::count, and escp2_channel_counts_count. |
|
Definition at line 980 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, and res_t::vres. Referenced by get_inktype(). |
|
Definition at line 1981 of file print-escp2.c. References stp_check_float_parameter(), stp_get_float_parameter(), and STP_PARAMETER_ACTIVE. |
|
Definition at line 1015 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(), 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 801 of file print-escp2.c. References input_slot_list_t::n_input_slots, input_slot_t::name, input_slot_list_t::slots, and stp_get_string_parameter(). Referenced by escp2_parameters(), internal_imageable_area(), setup_misc(), and setup_page(). |
|
Definition at line 1048 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, and paper_adjustment_list_t::papers. Referenced by setup_misc(). |
|
Definition at line 861 of file print-escp2.c. References escp2_paperlist(), paper_t::name, paperlist_t::paper_count, paperlist_t::papers, and stp_get_string_parameter(). |
|
Definition at line 825 of file print-escp2.c. References printer_weave_list_t::n_printer_weaves, printer_weave_t::name, printer_weave_list_t::printer_weaves, and stp_get_string_parameter(). Referenced by setup_head_parameters(). |
|
Definition at line 462 of file print-escp2.c. References stp_get_component_data(). Referenced by adjust_density_and_ink_type(), adjust_print_quality(), allocate_channels(), escp2_print_data(), escp2_print_page(), escp2_reset_printer(), escp2_set_color(), escp2_set_dot_size(), escp2_set_form_factor(), escp2_set_margins(), escp2_set_page_height(), escp2_set_printer_weave(), escp2_set_printhead_resolution(), escp2_set_printhead_speed(), escp2_set_remote_sequence(), escp2_set_resolution(), print_debug_params(), send_extra_data(), send_print_command(), set_color(), set_horizontal_position(), set_vertical_position(), setup_head_offset(), setup_head_parameters(), setup_inks(), setup_misc(), setup_page(), setup_printer_weave_parameters(), setup_resolution(), setup_softweave_parameters(), stpi_escp2_deinit_printer(), stpi_escp2_flush_pass(), and stpi_escp2_terminate_page(). |
|
Definition at line 1605 of file print-escp2.c. Referenced by internal_imageable_area(). |
|
Definition at line 1614 of file print-escp2.c. References stp_papersize_t::bottom, escp2_has_cap(), get_input_slot(), imax(), input_slot_t::is_cd, input_slot_t::is_roll_feed, stp_papersize_t::left, MODEL_XZEROMARGIN, MODEL_XZEROMARGIN_YES, stp_papersize_t::right, stp_default_media_size(), stp_get_boolean_parameter(), stp_get_papersize_by_name(), stp_get_string_parameter(), and stp_papersize_t::top. |
|
Definition at line 2143 of file print-escp2.c. References gcd(). Referenced by adjusted_horizontal_resolution(), adjusted_vertical_resolution(), and stp_curve_compose(). |
|
Definition at line 2702 of file print-escp2.c. References stp_family::printer_list, and stp_family_unregister(). |
|
Definition at line 2695 of file print-escp2.c. References stp_family::printer_list, and stp_family_register(). |
|
Definition at line 1125 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(), and using_automatic_settings(). Referenced by escp2_parameters(). |
|
Definition at line 1093 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(), and using_automatic_settings(). Referenced by escp2_parameters(). |
|
Definition at line 1111 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, STP_ECOLOR_K, and using_automatic_settings(). Referenced by escp2_parameters(). |
|
Definition at line 2394 of file print-escp2.c. Referenced by escp2_print_data(). |
|
Definition at line 1767 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_get_string_parameter(), stp_set_int_parameter(), and stp_set_string_parameter(). Referenced by escp2_do_print(). |
|
|
|
|
|
|
Definition at line 2246 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, and escp2_privdata_t::use_black_parameters. Referenced by setup_head_parameters(). |
|
|
|
Definition at line 846 of file print-escp2.c. References escp2_find_resolution(), res_t::printer_weave, and res_t::softweave. Referenced by escp2_parameters(), and setup_head_parameters(). |
|
Definition at line 728 of file print-escp2.c. References AUTO_MODE_MANUAL, AUTO_MODE_QUALITY, auto_mode_t, stp_check_string_parameter(), stp_get_string_parameter(), and STP_PARAMETER_ACTIVE. Referenced by escp2_parameters(), get_inktype(), set_color_transition_parameter(), set_density_parameter(), and set_gray_transition_parameter(). |
|
Definition at line 971 of file print-escp2.c. References escp2_inkname_t::inkset, and INKSET_EXTENDED. Referenced by escp2_parameters(). |
|
Definition at line 951 of file print-escp2.c. References escp2_has_cap(), stp_papersize_t::height, MODEL_ROLLFEED, MODEL_ROLLFEED_YES, stp_papersize_t::name, and stp_papersize_t::width. Referenced by escp2_parameters(). |
|
Definition at line 919 of file print-escp2.c. References compute_printed_resid(), compute_resid(), escp2_base_res(), escp2_ink_type(), res_t::hres, res_t::softweave, res_t::vertical_passes, and res_t::vres. Referenced by escp2_describe_resolution(), escp2_parameters(), and find_default_resolution(). |
|
Definition at line 882 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, and res_t::printed_vres. Referenced by escp2_parameters(), and find_default_resolution(). |
|
Definition at line 76 of file print-escp2.c. |
|
Initial value: sizeof(escp2_channel_counts) / sizeof(channel_count_t) Definition at line 112 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 }, } Definition at line 57 of file print-escp2.c. |
|
Initial value: sizeof(float_parameters) / sizeof(const float_param_t) Definition at line 457 of file print-escp2.c. Referenced by escp2_list_parameters(), and escp2_parameters(). |
|
Definition at line 341 of file print-escp2.c. |
|
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 115 of file print-escp2.c. Referenced by setup_inks(). |
|
Initial value: { &print_escp2_printfuncs, NULL } Definition at line 2687 of file print-escp2.c. |
|
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 2672 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 2714 of file print-escp2.c. |
|
Definition at line 2712 of file print-escp2.c. |
|
Initial value: sizeof(the_parameters) / sizeof(const stp_parameter_t) Definition at line 338 of file print-escp2.c. Referenced by escp2_list_parameters(), and escp2_parameters(). |
|
Definition at line 154 of file print-escp2.c. |