Home
last modified time | relevance | path

Searched refs:tl_y (Results 1 - 25 of 34) sorted by relevance

12

/third_party/backends/backend/
H A Dsp15c.c354 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 Dartec.h256 SANE_Int tl_y; member
H A Dsp15c.h157 int tl_y; /* in inch/1200 units */ member
H A Depjitsu.c1552 *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 Dhp5590.c259 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 Dcanon_dr.c3346 *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 Dartec.c1255 (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 Dmustek_usb.c164 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 Dhp-option.c3514 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 Depjitsu.h166 int tl_y; member
H A Dtest.c1820 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 Dp5.c919 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 Dcanon_dr.h97 int tl_y; member
H A Dfujitsu.h436 int tl_y; member
H A Dmustek_usb_high.h331 double tl_y; member
H A Dmagicolor.c869 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 Dkodakaio.c1216 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 Dfujitsu.c4772 *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 Depson.c739 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 Dcdgraphics.c182 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 Dscanimage.c167 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 Dsettings.cpp41 out << " tl_x: " << settings.tl_x << " tl_y: " << settings.tl_y << '\n'; in operator <<()
H A Dsettings.h44 float tl_y = 0; member
H A Dgl846.cpp694 move = move + settings.tl_y; in calculate_scan_session()
H A Dgl842.cpp600 move += settings.tl_y; in calculate_scan_session()

Completed in 70 milliseconds

12