Home
last modified time | relevance | path

Searched refs:xres (Results 1 - 25 of 49) sorted by relevance

12

/third_party/libinput/src/
H A Dfilter-tablet.c41 int xres, yres; member
87 mm.x = 1.0 * units->x/filter->xres; in tablet_accelerator_filter_flat_pen()
157 create_tablet_filter_flat(int xres, int yres) in create_tablet_filter_flat() argument
163 filter->xres = xres; in create_tablet_filter_flat()
165 filter->xres_scale = DEFAULT_MOUSE_DPI/(25.4 * xres); in create_tablet_filter_flat()
172 create_pointer_accelerator_filter_tablet(int xres, int yres) in create_pointer_accelerator_filter_tablet() argument
176 filter = create_tablet_filter_flat(xres, yres); in create_pointer_accelerator_filter_tablet()
H A Dfilter.h161 create_pointer_accelerator_filter_tablet(int xres, int yres);
/third_party/libevdev/tools/
H A Dlibevdev-tweak-device.c62 parse_resolution_argument(const char *arg, int *xres, int *yres) in parse_resolution_argument() argument
66 matched = sscanf(arg, "%d,%d", xres, yres); in parse_resolution_argument()
72 *yres = *xres; in parse_resolution_argument()
221 parse_options_resolution(int argc, char **argv, int *xres, int *yres) in parse_options_resolution() argument
243 xres, yres)) in parse_options_resolution()
363 set_resolution(struct libevdev *dev, int xres, int yres) in set_resolution() argument
367 abs.resolution = xres; in set_resolution()
393 int xres = 0, in main() local
412 rc = parse_options_resolution(argc, argv, &xres, in main()
453 set_resolution(dev, xres, yre in main()
[all...]
H A Dtouchpad-edge-detector.c169 int xres, yres; in print_udev_override_rule() local
175 xres = round((double)w/size->w); in print_udev_override_rule()
207 dim->left, dim->right, xres, in print_udev_override_rule()
212 dim->left, dim->right, xres, in print_udev_override_rule()
/third_party/cups-filters/filter/
H A Dpdftops.c312 int xres = 0, yres = 0, /* resolution values */ local
813 xres = header.HWResolution[0];
821 if ((xres == 0) && (yres == 0) &&
822 ((numvalues = sscanf(resolution, "%dx%d", &xres, &yres)) <= 0))
826 if ((xres == 0) && (yres == 0))
832 xres = yres = strtol(val, (char **)&ptr, 10);
833 if (ptr > val && xres > 0)
839 if (ptr <= val || xres <= 0 || yres <= 0 || !ptr ||
852 xres = xres * 25
[all...]
/third_party/backends/backend/genesys/
H A Dsettings.h37 unsigned xres = 0; member
84 unsigned xres = NOT_SET; member
87 // start pixel in X direction, from dummy_pixel + 1. Counted in terms of xres.
91 // the number of pixels in X direction. Counted in terms of xres.
132 if (xres == NOT_SET || yres == NOT_SET || startx == NOT_SET || starty == NOT_SET || in assert_valid()
145 return xres == other.xres && in operator ==()
168 serialize(str, x.xres); in serialize()
H A Dgl842.cpp615 start = static_cast<float>((start * settings.xres) / MM_PER_INCH); in calculate_scan_session()
618 session.params.xres = settings.xres; in calculate_scan_session()
692 switch (dev->session.params.xres) { in begin_scan()
783 offset = static_cast<float>((offset * dev->settings.xres) / MM_PER_INCH); in init_regs_for_shading()
786 size = static_cast<float>((size * dev->settings.xres) / MM_PER_INCH); in init_regs_for_shading()
815 session.params.xres = resolution; in init_regs_for_shading()
910 session.params.xres = resolution; in init_regs_for_warmup()
1019 dev->session.params.xres; in send_shading_data()
1022 dev->session.params.xres; in send_shading_data()
[all...]
H A Dsettings.cpp34 << " xres: " << settings.xres << " yres: " << settings.yres << '\n' in operator <<()
55 << " xres: " << params.xres in operator <<()
H A Dgl646.cpp601 if (session.params.xres >= 1200) { in init_regs_for_scan_session()
668 const auto& dpiset_sensor = sanei_genesys_find_sensor(dev, session.params.xres, in init_regs_for_scan_session()
1684 session.params.xres = resolution; in move_back_home()
1789 unsigned cksel = get_cksel(dev->model->sensor_id, dev->settings.xres, channels); in init_regs_for_shading()
1793 const auto& calib_sensor = sanei_genesys_find_sensor(dev, dev->settings.xres, channels, in init_regs_for_shading()
1802 session.params.xres = resolution; in init_regs_for_shading()
1909 session.params.xres = sensor.full_resolution; in led_calibration()
2089 session.params.xres = sensor.full_resolution; in ad_fe_offset_calibration()
2189 unsigned resolution = dev->settings.xres; in offset_calibration()
2203 session.params.xres in offset_calibration()
[all...]
H A Dlow.cpp763 s.pixel_startx += s.output_startx * sensor.full_resolution / s.params.xres; in compute_session_pixel_offsets()
784 s.pixel_startx = (s.output_startx * startx_xres) / s.params.xres; in compute_session_pixel_offsets()
789 s.pixel_startx = s.output_startx * sensor.full_resolution / s.params.xres; in compute_session_pixel_offsets()
879 // corner case for true lineart for sensor with several segments or when xres is doubled in session_adjust_output_pixels()
884 dev.session.params.xres < dev.session.params.yres)) in session_adjust_output_pixels()
913 s.output_resolution = s.params.xres; in compute_session()
922 s.params.xres, s.params.yres, false); in compute_session()
947 s.num_staggered_lines = s.stagger_y.max_shift() * s.params.yres / s.params.xres; in compute_session()
1005 unsigned optical_startx = s.output_startx * startx_xres / s.params.xres; in compute_session()
1813 if (dev_params.xres ! in sanei_genesys_is_compatible_calibration()
[all...]
H A Dgl843.cpp888 use_shdarea = session.params.xres <= 600; in gl843_init_optical_regs_scan()
890 use_shdarea = session.params.xres <= 400; in gl843_init_optical_regs_scan()
898 use_shdarea = session.params.xres > 600; in gl843_init_optical_regs_scan()
1090 start = static_cast<float>((start * settings.xres) / MM_PER_INCH); in calculate_scan_session()
1093 session.params.xres = settings.xres; in calculate_scan_session()
1249 if (dev->session.params.xres == 3200) in begin_scan()
1370 offset = static_cast<float>((offset * dev->settings.xres) / MM_PER_INCH); in init_regs_for_shading()
1373 size = static_cast<float>((size * dev->settings.xres) / MM_PER_INCH); in init_regs_for_shading()
1407 session.params.xres in init_regs_for_shading()
[all...]
H A Dgenesys.cpp766 session.params.xres = resolution; in scanner_move()
932 session.params.xres = resolution; in scanner_move_back_home()
1075 session.params.xres = resolution; in scanner_move_back_home_ta()
1187 session.params.xres = dpi; in scanner_search_strip()
1371 if (dev.model->model_id == ModelId::CANON_4400F && settings.xres >= 4800) { in should_calibrate_only_active_area()
1374 if (dev.model->model_id == ModelId::CANON_8600F && settings.xres == 4800) { in should_calibrate_only_active_area()
1435 const auto& dpihw_sensor = sanei_genesys_find_sensor(&dev, dev.settings.xres, channels, in scanner_offset_calibration()
1484 session.params.xres = resolution; in scanner_offset_calibration()
1741 const auto& dpihw_sensor = sanei_genesys_find_sensor(&dev, dev.settings.xres, channels, in scanner_coarse_gain_calibration()
1763 if (dev.settings.xres < senso in scanner_coarse_gain_calibration()
[all...]
H A Dgl841.cpp776 if (session.params.xres <= 600) { in gl841_init_optical_regs_scan()
783 if (session.params.xres <= 600) { in gl841_init_optical_regs_scan()
1020 start = static_cast<float>((start * dev->settings.xres) / MM_PER_INCH); in calculate_scan_session()
1023 session.params.xres = dev->settings.xres; in calculate_scan_session()
1507 session.params.xres = resolution; in init_regs_for_shading()
1583 session.params.xres = resolution; in ad_fe_offset_calibration()
1702 session.params.xres = resolution; in offset_calibration()
2053 session.params.xres = sensor.full_resolution; in init_regs_for_warmup()
2140 dev->session.params.xres; in send_shading_data()
[all...]
H A Dgl846.cpp708 start = static_cast<float>((start * settings.xres) / MM_PER_INCH); in calculate_scan_session()
711 session.params.xres = settings.xres; in calculate_scan_session()
836 session.params.xres = resolution; in init_regs_for_shading()
874 dev->session.params.startx * sensor.full_resolution / dev->session.params.xres); in send_shading_data()
H A Dgl124.cpp596 if ((dev->model->sensor_id != SensorId::CIS_CANON_LIDE_120) && (session.params.xres>=600)) { in gl124_init_optical_regs_scan()
768 start = static_cast<float>((start * settings.xres) / MM_PER_INCH); in calculate_scan_session()
771 session.params.xres = settings.xres; in calculate_scan_session()
942 session.params.xres = resolution; in init_regs_for_shading()
1077 session.params.xres = resolution; in move_to_calibration_area()
1165 session.params.xres = sensor.full_resolution; in init_regs_for_warmup()
/third_party/libinput/tools/
H A Dlibinput-analyze-per-slot-delta.py150 xres, yres = 1, 1
204 xres = 1.0 * absinfo[libevdev.EV_ABS.ABS_X.value][4]
206 if not xres or not yres:
361 resolution=(xres, yres) if args.use_mm else None,
/third_party/backends/backend/
H A Dcanon-sane.c527 int iPos, xres, yres; in sane_control_option() local
556 xres = s->xres_word_list[1]; in sane_control_option()
561 xres = s->xres_word_list[iPos + 1]; in sane_control_option()
563 s->val[OPT_X_RESOLUTION].w = xres; in sane_control_option()
1030 int width, length, xres, yres; in sane_get_parameters() local
1040 xres = s->val[OPT_X_RESOLUTION].w; in sane_get_parameters()
1043 yres = xres; in sane_get_parameters()
1047 if (xres > 0 && yres > 0 && width > 0 && length > 0) in sane_get_parameters()
1049 DBG (11, "sane_get_parameters: width='%d', xres='%d', mud='%d'\n", in sane_get_parameters()
1050 width, xres, in sane_get_parameters()
[all...]
H A Dibm.c886 int width, length, xres, yres; in sane_get_parameters() local
893 xres = s->val[OPT_X_RESOLUTION].w; in sane_get_parameters()
898 if (xres > 0 && yres > 0 && width > 0 && length > 0) in sane_get_parameters()
900 s->params.pixels_per_line = width * xres / s->hw->info.mud; in sane_get_parameters()
963 s->xres = s->val[OPT_X_RESOLUTION].w; in sane_start()
990 _lto2b(s->xres, wbuf.x_res); in sane_start()
1030 DBG (5, "xres=%d\n", _2btol(wbuf.x_res)); in sane_start()
1054 DBG (5, "xres=%d\n", _2btol(wbuf.x_res)); in sane_start()
H A Dricoh.c744 int width, length, xres, yres; in sane_get_parameters() local
751 xres = s->val[OPT_X_RESOLUTION].w; in sane_get_parameters()
756 if (xres > 0 && yres > 0 && width > 0 && length > 0) in sane_get_parameters()
758 s->params.pixels_per_line = width * xres / s->hw->info.mud; in sane_get_parameters()
818 s->xres = s->val[OPT_X_RESOLUTION].w; in sane_start()
842 _lto2b(s->xres, wbuf.x_res); in sane_start()
880 DBG (5, "xres=%d\n", _2btol(wbuf.x_res)); in sane_start()
904 DBG (5, "xres=%d\n", _2btol(wbuf.x_res)); in sane_start()
H A Dtamarack.h187 unsigned char xres[2]; member
/third_party/ffmpeg/libavdevice/
H A Dfbdev_enc.c129 bytes_to_copy = FFMIN(fbdev->varinfo.xres, video_width) * bytes_per_pixel; in fbdev_write_packet()
143 int diff = (video_width + fbdev->xoffset) - fbdev->varinfo.xres; in fbdev_write_packet()
/third_party/alsa-lib/modules/mixer/simple/
H A Dpython.c117 long xres = 0; in pcall() local
141 xres = PyLong_AsLong(res); in pcall()
144 xres = PyInt_AsLong(res); in pcall()
147 xres = 0; in pcall()
149 xres = res == Py_True; in pcall()
160 return xres; in pcall()
162 return xres; in pcall()
/third_party/cups-filters/cupsfilters/
H A Draster.c313 int xres, /* X resolution */ in cupsRasterParseIPPOptions() local
317 xres = yres = strtol(val, (char **)&ptr, 10); in cupsRasterParseIPPOptions()
318 if (ptr > val && xres > 0) in cupsRasterParseIPPOptions()
324 if (ptr <= val || xres <= 0 || yres <= 0 || !ptr || in cupsRasterParseIPPOptions()
342 xres = xres * 254 / 100; in cupsRasterParseIPPOptions()
345 h->HWResolution[0] = xres; in cupsRasterParseIPPOptions()
H A Dppdgenerator.c94 int *xres, int *yres, char *name, size_t namesize);
1617 int xres, yres; /* Resolution values */ in ppdCreateFromIPP2() local
3846 xres = common_def->x; in ppdCreateFromIPP2()
3848 if (xres == yres) in ppdCreateFromIPP2()
3849 cupsFilePrintf(fp, "*DefaultResolution: %ddpi\n", xres); in ppdCreateFromIPP2()
3851 cupsFilePrintf(fp, "*DefaultResolution: %dx%ddpi\n", xres, yres); in ppdCreateFromIPP2()
4491 int *xres, /* O - X resolution in DPI */ in pwg_ppdize_resolution()
4498 *xres = ippGetResolution(attr, element, yres, &units); in pwg_ppdize_resolution()
4501 *xres = (int)(*xres * 2.5 in pwg_ppdize_resolution()
4488 pwg_ppdize_resolution( ipp_attribute_t *attr, int element, int *xres, int *yres, char *name, size_t namesize) pwg_ppdize_resolution() argument
[all...]
H A Dimage-tiff.c53 float xres, /* Horizontal resolution */ in _cupsImageReadTIFF() local
156 if (temp != 1 && TIFFGetField(tif, TIFFTAG_XRESOLUTION, &xres) && in _cupsImageReadTIFF()
162 img->xppi = xres; in _cupsImageReadTIFF()
167 img->xppi = xres * 2.54; in _cupsImageReadTIFF()
183 xres, yres, resunit); in _cupsImageReadTIFF()

Completed in 35 milliseconds

12