/third_party/backends/backend/ |
H A D | sp15c.c | 353 dev->tl_x = 0; in sane_open() 518 *(SANE_Word *) val = SANE_FIX (iluToMm (scanner->tl_x)); in sane_control_option() 701 scanner->tl_x = mmToIlu (SANE_UNFIX (*(SANE_Word *) val)); in sane_control_option() 703 *(SANE_Word *) val = SANE_FIX (iluToMm (scanner->tl_x)); in sane_control_option() 906 DBG (10, "\t(nom.) width %d\n", scanner->br_x - scanner->tl_x); in sane_get_parameters() 1831 set_WD_ULX (buffer_r, s->tl_x); /* top left x */ in sp15c_set_window_param() 1834 set_WD_width (buffer_r, s->br_x - s->tl_x); in sp15c_set_window_param() 1858 set_WD_line_width (buffer_r, ((s->br_x - s->tl_x) * s->x_res / 1200) / 8); in sp15c_set_window_param() 1862 set_WD_line_width (buffer_r, ((s->br_x - s->tl_x) * s->x_res / 1200) / 2); in sp15c_set_window_param() 1866 set_WD_line_width (buffer_r, (s->br_x - s->tl_x) * in sp15c_set_window_param() [all...] |
H A D | artec.h | 255 SANE_Int tl_x; member
|
H A D | sp15c.h | 156 int tl_x; /* top left position, */ member
|
H A D | hp5590.c | 259 float br_x, br_y, tl_x, tl_y; member 319 var = (float) (1.0 * (scanner->br_x - scanner->tl_x) * scanner->dpi); in calc_image_params() 638 ptr->tl_x = 0; in sane_open() 990 *(SANE_Fixed *) value = SANE_FIX ((scanner->tl_x) * 25.4); in sane_control_option() 1201 if (val <= scanner->tl_x) in sane_control_option() 1223 scanner->tl_x = val; in sane_control_option() 1575 scanner->tl_x * scanner->dpi, in sane_start() 1577 (scanner->br_x - scanner->tl_x) * scanner->dpi, in sane_start()
|
H A D | artec.c | 1269 s->tl_x); in artec_set_scan_window() 1309 reversed_x = max_x - s->tl_x - s->params.pixels_per_line; in artec_set_scan_window() 1319 data[14] = s->tl_x >> 24; in artec_set_scan_window() 1320 data[15] = s->tl_x >> 16; in artec_set_scan_window() 1321 data[16] = s->tl_x >> 8; in artec_set_scan_window() 1322 data[17] = s->tl_x; in artec_set_scan_window() 1508 if ((s->tl_x % 3) == 0) in artec_software_rgb_calibrate() 1514 offset += ((s->tl_x / (300 / s->x_resolution)) * in artec_software_rgb_calibrate() 3181 s->tl_x = SANE_UNFIX (s->val[OPT_TL_X].w) / MM_PER_INCH in sane_get_parameters()
|
H A D | mustek_usb.c | 163 s->tl_x = SANE_UNFIX (s->val[OPT_TL_X].w) / MM_PER_INCH; in calc_parameters() 165 s->width = SANE_UNFIX (s->val[OPT_BR_X].w) / MM_PER_INCH - s->tl_x; in calc_parameters() 170 DBG (1, "calc_parameters: warning: tl_x > br_x\n"); in calc_parameters() 179 s->tl_x_dots = s->tl_x * SANE_UNFIX (s->val[OPT_RESOLUTION].w); in calc_parameters() 203 s->val[OPT_TL_X].w = SANE_FIX (s->tl_x * MM_PER_INCH); in calc_parameters() 205 s->val[OPT_BR_X].w = SANE_FIX ((s->tl_x + s->width) * MM_PER_INCH); in calc_parameters()
|
H A D | hp-option.c | 3514 HpAccessor tl_x, tl_y, br_x, br_y; member 3703 _HpOption tl_x = _hp_optset_get(this, SCAN_TL_X); in hp_optset_fix_geometry_options() local 3712 assert(tl_x && tl_y && br_x && br_y); /* Geometry options missing */ in hp_optset_fix_geometry_options() 3714 tl_xa = tl_x->data_acsr; in hp_optset_fix_geometry_options() 3723 tl_x->data_acsr = sanei_hp_accessor_geometry_new(tl_xa, br_xa, 0, in hp_optset_fix_geometry_options() 3732 if (!tl_x->data_acsr || !tl_y->data_acsr in hp_optset_fix_geometry_options() 3737 this->tl_x = sanei_hp_accessor_geometry_new(tl_xa, br_xa, 0, in hp_optset_fix_geometry_options() 3745 if (!this->tl_x || !this->tl_y || !this->br_x || !this->br_y) in hp_optset_fix_geometry_options()
|
H A D | epjitsu.h | 165 int tl_x; member
|
H A D | canon_dr.c | 156 - override tl_x and br_x for fixed width scanners 3342 *val_p = SCANNER_UNIT_TO_FIXED_MM(s->u.tl_x); in sane_control_option() 3766 if (s->u.tl_x == FIXED_MM_TO_SCANNER_UNIT(val_c)) in sane_control_option() 3769 s->u.tl_x = FIXED_MM_TO_SCANNER_UNIT(val_c); in sane_control_option() 3807 if (s->u.tl_x == 0 && s->u.br_x == s->u.page_x){ in sane_control_option() 4795 s->u.tl_x = 0; in get_pixelsize() 4873 s->i.tl_x, s->i.br_x, s->i.tl_y, s->i.br_y); in sane_get_parameters() 4893 s->u.width = (s->u.br_x - s->u.tl_x) * s->u.dpi_x / 1200; in update_params() 4931 s->u.br_x, s->u.tl_x, s->u.dpi_x, s->u.br_y, s->u.tl_y, s->u.dpi_y); in update_params() 4981 s->s.tl_x in update_params() [all...] |
H A D | p5.c | 919 int tl_x, tl_y, br_x, br_y; in compute_parameters() local 925 tl_x = SANE_UNFIX (session->options[OPT_TL_X].value.w); in compute_parameters() 958 session->params.pixels_per_line = ((br_x - tl_x) * dpi) / MM_PER_INCH; in compute_parameters() 1013 ((SANE_UNFIX (dev->model->x_offset) + tl_x) * dpi) / MM_PER_INCH; in compute_parameters()
|
H A D | test.c | 1817 if (read_option (line, "tl_x", param_fixed, in sane_init() 2622 double res, tl_x = 0, tl_y = 0, br_x = 0, br_y = 0; in sane_get_parameters() local 2651 tl_x = 0.0; in sane_get_parameters() 2660 tl_x = SANE_UNFIX (test_device->val[opt_tl_x].w); in sane_get_parameters() 2664 if (tl_x > br_x) in sane_get_parameters() 2665 swap_double (&tl_x, &br_x); in sane_get_parameters() 2706 p->pixels_per_line = (SANE_Int) (res * (br_x - tl_x) / MM_PER_INCH); in sane_get_parameters()
|
H A D | canon_dr.h | 96 int tl_x; /*these are in 1200dpi units */ member
|
H A D | fujitsu.h | 435 int tl_x; member
|
H A D | mustek_usb_high.h | 330 double tl_x; member
|
H A D | fujitsu.c | 4768 *val_p = SCANNER_UNIT_TO_FIXED_MM(s->tl_x); in sane_control_option() 5433 if (s->tl_x == FIXED_MM_TO_SCANNER_UNIT(val_c)) in sane_control_option() 5436 s->tl_x = FIXED_MM_TO_SCANNER_UNIT(val_c); in sane_control_option() 5474 if (s->tl_x == 0 && s->br_x == s->page_width){ in sane_control_option() 6817 params->pixels_per_line = s->resolution_x * (s->br_x - s->tl_x) / 1200; in update_params() 6873 s->tl_x, s->br_x, s->tl_y, s->br_y); in update_params() 6924 s->tl_x, s->br_x, s->tl_y, s->br_y); in update_u_params() 7559 set_WD_ULX (desc1, s->tl_x); in set_window() 7563 set_WD_ULX (desc1, s->tl_x + (s->max_x - s->page_width) / 2); in set_window()
|
H A D | magicolor.c | 869 int tl_x, int tl_y, int width, int height, unsigned char source) in cmd_set_scanning_parameters() 896 param[4] = tl_x & 0xff; in cmd_set_scanning_parameters() 897 param[5] = (tl_x >> 8) & 0xff; in cmd_set_scanning_parameters() 866 cmd_set_scanning_parameters(SANE_Handle handle, unsigned char resolution, unsigned char color_mode, unsigned char brightness, unsigned char contrast, int tl_x, int tl_y, int width, int height, unsigned char source) cmd_set_scanning_parameters() argument
|
H A D | kodakaio.c | 1216 int tl_x, int tl_y, int width, int height, unsigned char source) in cmd_set_scanning_parameters() 1218 /* NB. here int tl_x, int tl_y, int width, int height are in DPI units, not optres units! */ in cmd_set_scanning_parameters() 1263 /* Origin top left s->tl_x and s->tl_y are in optres units in cmd_set_scanning_parameters() 1265 DBG(20, "%s: left (DPI)=%d, top (DPI)=%d\n", __func__, tl_x , tl_y); in cmd_set_scanning_parameters() 1270 tx_topleft[3]=(tl_x) & 0xff; in cmd_set_scanning_parameters() 1271 tx_topleft[4]=((tl_x) >> 8) & 0xff; in cmd_set_scanning_parameters() 1214 cmd_set_scanning_parameters(SANE_Handle handle, int resolution, int tl_x, int tl_y, int width, int height, unsigned char source) cmd_set_scanning_parameters() argument
|
H A D | kvs1025_opt.c | 1103 SANE_Word tl_x = mmToIlu (SANE_UNFIX (dev->val[OPT_TL_X].w)) * xr; in kv_control_option() local 1123 (&value, KV_PIXEL_ROUND, tl_x, KV_PIXEL_MAX * xr)) in kv_control_option()
|
H A D | epson.c | 738 SANE_Word tl_x; member 2584 qf_params[XtNumber (qf_params) - 1].tl_x = dev->x_range->min; in attach() 3908 qf_params[XtNumber (qf_params) - 1].tl_x = s->hw->x_range->min; in handle_source() 4155 s->val[OPT_TL_X].w = qf_params[sval->w].tl_x; in setvalue()
|
H A D | epjitsu.c | 1548 *val_p = SCANNER_UNIT_TO_FIXED_MM(s->tl_x); in sane_control_option() 1705 if (s->tl_x == FIXED_MM_TO_SCANNER_UNIT(val_c)) in sane_control_option() 1708 s->tl_x = FIXED_MM_TO_SCANNER_UNIT(val_c); in sane_control_option() 2073 s->tl_x = (s->max_x - s->page_width)/2; in change_params()
|
/third_party/backends/frontend/ |
H A D | scanimage.c | 166 static SANE_Word tl_x = 0; variable 469 opt->constraint.range->max - tl_x); in print_option() 492 SANE_UNFIX(opt->constraint.range->max - tl_x)); in print_option() 580 tl_x = (*(SANE_Fixed *) val); in print_option() 581 printf ("%d", tl_x); in print_option() 591 printf ("%d", br_x - tl_x); in print_option() 606 tl_x = (*(SANE_Fixed *) val); in print_option() 607 printf ("%g", SANE_UNFIX (tl_x)); in print_option() 617 printf ("%g", SANE_UNFIX (br_x - tl_x)); in print_option()
|
/third_party/backends/backend/genesys/ |
H A D | settings.cpp | 41 out << " tl_x: " << settings.tl_x << " tl_y: " << settings.tl_y << '\n'; in operator <<()
|
H A D | settings.h | 42 float tl_x = 0; member
|
H A D | gl846.cpp | 707 start = start + dev->settings.tl_x; in calculate_scan_session()
|
/third_party/ffmpeg/libavcodec/ |
H A D | cdgraphics.c | 182 static void cdg_fill_rect_preset(int tl_x, int tl_y, uint8_t *out, in cdg_fill_rect_preset() argument 188 memset(out + tl_x + y * stride, color, w); in cdg_fill_rect_preset()
|