/third_party/backends/backend/ |
H A D | sp15c.c | 354 dev->tl_y = 0; in sane_open() 522 *(SANE_Word *) val = SANE_FIX (iluToMm (scanner->tl_y)); in sane_control_option() 588 apply_constraints (scanner, OPT_TL_Y, &scanner->tl_y, info); in sane_control_option() 598 apply_constraints (scanner, OPT_TL_Y, &scanner->tl_y, info); in sane_control_option() 711 scanner->tl_y = mmToIlu (SANE_UNFIX (*(SANE_Word *) val)); in sane_control_option() 712 *(SANE_Word *) val = SANE_FIX (iluToMm (scanner->tl_y)); in sane_control_option() 905 DBG (10, "\tlength %d\n", scanner->br_y - scanner->tl_y); in sane_get_parameters() 1832 set_WD_ULY (buffer_r, s->tl_y); /* top left y */ in sp15c_set_window_param() 1835 set_WD_length (buffer_r, s->br_y - s->tl_y); in sp15c_set_window_param() 1859 set_WD_line_count (buffer_r, (s->br_y - s->tl_y) * in sp15c_set_window_param() [all...] |
H A D | artec.h | 256 SANE_Int tl_y; member
|
H A D | sp15c.h | 157 int tl_y; /* in inch/1200 units */ member
|
H A D | epjitsu.c | 1552 *val_p = SCANNER_UNIT_TO_FIXED_MM(s->tl_y); in sane_control_option() 1714 if (s->tl_y == FIXED_MM_TO_SCANNER_UNIT(val_c)) in sane_control_option() 1717 s->tl_y = FIXED_MM_TO_SCANNER_UNIT(val_c); in sane_control_option() 2053 if (s->tl_y > s->max_y - s->min_y) in change_params() 2054 s->tl_y = s->max_y - s->min_y - s->adf_height_padding; in change_params() 2055 s->page_height = MIN(s->page_height, s->max_y - s->adf_height_padding - s->tl_y); in change_params() 2058 if (s->tl_y + s->page_height > s->max_y) in change_params() 2059 s->tl_y = s->max_y - s->adf_height_padding - s->page_height; in change_params() 2060 s->tl_y = MAX(s->tl_y, in change_params() [all...] |
H A D | hp5590.c | 259 float br_x, br_y, tl_x, tl_y; member 324 var = (float) (1.0 * (scanner->br_y - scanner->tl_y) * scanner->dpi); in calc_image_params() 639 ptr->tl_y = 0; in sane_open() 995 *(SANE_Fixed *) value = SANE_FIX (scanner->tl_y * 25.4); in sane_control_option() 1211 if (val <= scanner->tl_y) in sane_control_option() 1233 scanner->tl_y = val; in sane_control_option() 1576 scanner->tl_y * scanner->dpi, in sane_start() 1578 (scanner->br_y - scanner->tl_y) * scanner->dpi, in sane_start()
|
H A D | canon_dr.c | 3346 *val_p = SCANNER_UNIT_TO_FIXED_MM(s->u.tl_y); in sane_control_option() 3775 if (s->u.tl_y == FIXED_MM_TO_SCANNER_UNIT(val_c)) in sane_control_option() 3778 s->u.tl_y = FIXED_MM_TO_SCANNER_UNIT(val_c); in sane_control_option() 3824 if (s->u.tl_y == 0 && s->u.br_y == s->u.page_y){ in sane_control_option() 4797 s->u.tl_y = 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() 4894 s->u.height = (s->u.br_y - s->u.tl_y) * s->u.dpi_y / 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() 5017 s->s.height = (s->u.br_y-s->u.tl_y+s->duplex_offset) * s->u.dpi_y / 1200; in update_params() 5027 s->s.br_x, s->s.tl_x, s->s.dpi_x, s->s.br_y, s->s.tl_y, in update_params() [all...] |
H A D | artec.c | 1255 (s->tl_y) && in artec_set_scan_window() 1256 (s->tl_y >= (s->line_offset * 2))) in artec_set_scan_window() 1258 s->tl_y -= (s->line_offset * 2); in artec_set_scan_window() 1271 s->tl_y); in artec_set_scan_window() 1326 data[18] = s->tl_y >> 24; in artec_set_scan_window() 1327 data[19] = s->tl_y >> 16; in artec_set_scan_window() 1328 data[20] = s->tl_y >> 8; in artec_set_scan_window() 1329 data[21] = s->tl_y; in artec_set_scan_window() 3183 s->tl_y = SANE_UNFIX (s->val[OPT_TL_Y].w) / MM_PER_INCH in sane_get_parameters()
|
H A D | mustek_usb.c | 164 s->tl_y = SANE_UNFIX (s->val[OPT_TL_Y].w) / MM_PER_INCH; in calc_parameters() 166 s->height = SANE_UNFIX (s->val[OPT_BR_Y].w) / MM_PER_INCH - s->tl_y; in calc_parameters() 174 DBG (1, "calc_parameters: warning: tl_y > br_y\n"); in calc_parameters() 181 s->tl_y_dots = s->tl_y * SANE_UNFIX (s->val[OPT_RESOLUTION].w); in calc_parameters() 204 s->val[OPT_TL_Y].w = SANE_FIX (s->tl_y * MM_PER_INCH); in calc_parameters() 206 s->val[OPT_BR_Y].w = SANE_FIX ((s->tl_y + s->height) * MM_PER_INCH); in calc_parameters()
|
H A D | hp-option.c | 3514 HpAccessor tl_x, tl_y, br_x, br_y; member 3704 _HpOption tl_y = _hp_optset_get(this, SCAN_TL_Y); 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() 3715 tl_ya = tl_y->data_acsr; in hp_optset_fix_geometry_options() 3725 tl_y->data_acsr = sanei_hp_accessor_geometry_new(tl_ya, br_ya, 0, in hp_optset_fix_geometry_options() 3732 if (!tl_x->data_acsr || !tl_y->data_acsr in hp_optset_fix_geometry_options() 3739 this->tl_y = sanei_hp_accessor_geometry_new(tl_ya, br_ya, 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 | 166 int tl_y; member
|
H A D | test.c | 1820 if (read_option (line, "tl_y", 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 2653 tl_y = 0.0; in sane_get_parameters() 2656 test_device->lines = (SANE_Word) (res * (br_y - tl_y) / MM_PER_INCH); in sane_get_parameters() 2661 tl_y = SANE_UNFIX (test_device->val[opt_tl_y].w); in sane_get_parameters() 2666 if (tl_y > br_y) in sane_get_parameters() 2667 swap_double (&tl_y, &br_y); in sane_get_parameters() 2668 test_device->lines = (SANE_Word) (res * (br_y - tl_y) / MM_PER_INCH); in sane_get_parameters()
|
H A D | p5.c | 919 int tl_x, tl_y, br_x, br_y; in compute_parameters() local 926 tl_y = SANE_UNFIX (session->options[OPT_TL_Y].value.w); in compute_parameters() 955 session->params.lines = ((br_y - tl_y) * dpi) / MM_PER_INCH; in compute_parameters() 1015 ((SANE_UNFIX (dev->model->y_offset) + tl_y) * dev->ydpi) / MM_PER_INCH; in compute_parameters()
|
H A D | canon_dr.h | 97 int tl_y; member
|
H A D | fujitsu.h | 436 int tl_y; member
|
H A D | mustek_usb_high.h | 331 double tl_y; member
|
H A D | magicolor.c | 869 int tl_x, int tl_y, int width, int height, unsigned char source) in cmd_set_scanning_parameters() 898 param[6] = tl_y & 0xff; in cmd_set_scanning_parameters() 899 param[7] = (tl_y >> 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() 1272 tx_topleft[5]=(tl_y) & 0xff; in cmd_set_scanning_parameters() 1273 tx_topleft[6]=((tl_y) >> 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 | fujitsu.c | 4772 *val_p = SCANNER_UNIT_TO_FIXED_MM(s->tl_y); in sane_control_option() 5442 if (s->tl_y == FIXED_MM_TO_SCANNER_UNIT(val_c)) in sane_control_option() 5445 s->tl_y = FIXED_MM_TO_SCANNER_UNIT(val_c); in sane_control_option() 5490 if (s->tl_y == 0 && s->br_y == s->page_height){ in sane_control_option() 6821 params->lines = s->resolution_y * (s->br_y - s->tl_y) / 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() 7566 set_WD_ULY (desc1, s->tl_y); in set_window()
|
H A D | epson.c | 739 SANE_Word tl_y; member 2585 qf_params[XtNumber (qf_params) - 1].tl_y = dev->y_range->min; in attach() 3909 qf_params[XtNumber (qf_params) - 1].tl_y = s->hw->y_range->min; in handle_source() 4156 s->val[OPT_TL_Y].w = qf_params[sval->w].tl_y; in setvalue()
|
/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 187 for (y = tl_y; y < tl_y + h; y++) in cdg_fill_rect_preset()
|
/third_party/backends/frontend/ |
H A D | scanimage.c | 167 static SANE_Word tl_y = 0; variable 474 opt->constraint.range->max - tl_y); in print_option() 497 SANE_UNFIX(opt->constraint.range->max - tl_y)); in print_option() 585 tl_y = (*(SANE_Fixed *) val); in print_option() 586 printf ("%d", tl_y); in print_option() 596 printf ("%d", br_y - tl_y); in print_option() 611 tl_y = (*(SANE_Fixed *) val); in print_option() 612 printf ("%g", SANE_UNFIX (tl_y)); in print_option() 622 printf ("%g", SANE_UNFIX (br_y - tl_y)); 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 | 44 float tl_y = 0; member
|
H A D | gl846.cpp | 694 move = move + settings.tl_y; in calculate_scan_session()
|
H A D | gl842.cpp | 600 move += settings.tl_y; in calculate_scan_session()
|