Home
last modified time | relevance | path

Searched refs:xdpi (Results 1 - 25 of 30) sorted by relevance

12

/third_party/backends/backend/pixma/
H A Dpixma_mp800.c596 if (s->param->xdpi == 2400) in calc_shifting()
628 if (s->param->xdpi == 4800) in calc_shifting()
639 if (s->param->xdpi == 4800) in calc_shifting()
646 if (s->param->xdpi == 9600) in calc_shifting()
661 if (s->param->xdpi == 2400) in calc_shifting()
668 if (s->param->xdpi == 4800) in calc_shifting()
685 if (s->param->xdpi == 2400) in calc_shifting()
692 if (s->param->xdpi == 4800) in calc_shifting()
709 if (s->param->xdpi == 4800) in calc_shifting()
835 pixma_set_be16 (s->param->xdpi | in send_scan_param()
[all...]
H A Dpixma_mp150.c707 unsigned xdpi = s->param->xdpi * mp->scale; in send_scan_param() local
708 unsigned ydpi = s->param->xdpi * mp->scale; in send_scan_param()
717 PDBG (pixma_dbg (4, "*send_scan_param gen. 1-2 ***** Setting: xdpi=%u ydpi=%u x=%i y=%i wx=%i ***** \n", in send_scan_param()
718 xdpi, ydpi, x-xs, y, wx)); in send_scan_param()
720 pixma_set_be16 (xdpi | 0x8000, data + 0x04); in send_scan_param()
739 PDBG (pixma_dbg (4, "*send_scan_param gen. 3+ ***** Setting: xdpi=%u ydpi=%u x=%i xs=%i y=%i wx=%i h=%i ***** \n", in send_scan_param()
740 xdpi, ydpi, x, xs, y, wx, h)); in send_scan_param()
755 pixma_set_be16 (xdpi | 0x8000, data + 0x08); in send_scan_param()
1169 n = s->param->xdpi / 60 in post_process_image_data()
[all...]
H A Dpixma_common.c459 windowX = (6 * sp->xdpi) / 150; in pixma_binarize_line()
879 sp->xdpi, sp->ydpi, sp->x, sp->y, sp->w, sp->h); in pixma_scan()
1078 /* flatbed: use s->cfg->xdpi in pixma_check_scan_param()
1081 || s->cfg->adftpu_max_dpi == 0) ? s->cfg->xdpi in pixma_check_scan_param()
1084 if (pixma_check_dpi (sp->xdpi, cfg_xdpi) < 0 || in pixma_check_scan_param()
1088 /* xdpi must be equal to ydpi except that in pixma_check_scan_param()
1089 xdpi = max_xdpi and ydpi = max_ydpi. */ in pixma_check_scan_param()
1090 if (!(sp->xdpi == sp->ydpi || in pixma_check_scan_param()
1091 (sp->xdpi == cfg_xdpi && sp->ydpi == s->cfg->ydpi))) in pixma_check_scan_param()
1100 CLAMP2 (sp->x, sp->w, 16, s->cfg->width, sp->xdpi); in pixma_check_scan_param()
[all...]
H A Dpixma.h322 unsigned xdpi, ydpi; member
394 unsigned xdpi; /**< Maximum horizontal resolution[DPI] */ member
399 * only needed if ADF/TPU has another max. dpi value than xdpi */
403 * only needed if TPU-IR has another max. dpi value than xdpi */
H A Dpixma_mp730.c215 pixma_set_be16 (s->param->xdpi | 0x1000, data + 0x04); in send_scan_param()
597 k = sp->xdpi / MIN (sp->xdpi, 600); in mp730_check_param()
603 sp->xdpi /= k; in mp730_check_param()
604 sp->ydpi = sp->xdpi; in mp730_check_param()
831 dpi, dpi, /* xdpi, ydpi */ \
H A Dpixma_common.h89 unsigned xdpi, ydpi; member
H A Dpixma.c455 max_dpi = cfg->xdpi; in create_dpi_list()
462 max_dpi = (cfg->tpuir_max_dpi) ? cfg->tpuir_max_dpi : cfg->xdpi; in create_dpi_list()
470 max_dpi = (cfg->adftpu_max_dpi) ? cfg->adftpu_max_dpi : cfg->xdpi; in create_dpi_list()
900 sp->xdpi, sp->ydpi, sp->x, sp->y, sp->w, sp->h); in print_scan_param()
917 sp->xdpi = sp->ydpi = OVAL (opt_resolution).w; in calc_scan_param()
920 x1 = PIXEL (OVAL (opt_tl_x).w, sp->xdpi); in calc_scan_param()
921 x2 = PIXEL (OVAL (opt_br_x).w, sp->xdpi); in calc_scan_param()
H A Dpixma_imageclass.c293 pixma_set_be16 (s->param->xdpi | 0x1000, data + 0x04); in send_scan_param()
615 w_max = s->cfg->width * s->cfg->xdpi / 75; in iclass_check_param()
627 sp->h = MIN (sp->h, 877 * sp->xdpi / 75); in iclass_check_param()
928 dpi, dpi, /* xdpi, ydpi */ \
/third_party/backends/backend/
H A Dgt68xx_generic.c218 SANE_Int xdpi, ydpi; in gt68xx_generic_setup_scan() local
240 xdpi = request->xdpi; in gt68xx_generic_setup_scan()
248 if (xdpi > model->base_xdpi) in gt68xx_generic_setup_scan()
252 if ((dev->model->flags & GT68XX_FLAG_USE_OPTICAL_X) && xdpi <= 50) in gt68xx_generic_setup_scan()
368 pixel_x0 = SANE_UNFIX (x0) * xdpi / MM_PER_INCH + 0.5; in gt68xx_generic_setup_scan()
371 pixel_xs = SANE_UNFIX (xs) * xdpi / MM_PER_INCH + 0.5; in gt68xx_generic_setup_scan()
374 DBG (6, "gt68xx_generic_setup_scan: xdpi=%d, ydpi=%d\n", xdpi, ydpi); in gt68xx_generic_setup_scan()
424 if (action == SA_SCAN && xdpi > in gt68xx_generic_setup_scan()
[all...]
H A Dplustek-usbcalfile.c763 u_short xdpi; in usb_FineShadingFromFile() local
766 xdpi = usb_SetAsicDpiX( dev, sp->UserDpi.x ); in usb_FineShadingFromFile()
768 if( !usb_ReadFineCalData( dev, xdpi, &dim_d, a_wDarkShading, in usb_FineShadingFromFile()
777 offs = ((u_long)sp->Origin.x * xdpi) / 300; in usb_FineShadingFromFile()
782 DBG( _DBG_INFO2, "XDPI = %u\n", xdpi ); in usb_FineShadingFromFile()
804 u_short xdpi; in usb_SaveCalSetShading() local
811 xdpi = usb_SetAsicDpiX( dev, tmp_sp->UserDpi.x ); in usb_SaveCalSetShading()
813 usb_SaveFineCalData( dev, xdpi, a_wDarkShading, in usb_SaveCalSetShading()
817 xdpi = usb_SetAsicDpiX( dev, sp->UserDpi.x ); in usb_SaveCalSetShading()
818 offs = ((u_long)sp->Origin.x * xdpi) / 30 in usb_SaveCalSetShading()
[all...]
H A Dplustek-usbscan.c148 * @param xdpi - user specified horizontal resolution
152 usb_SetAsicDpiX( Plustek_Device *dev, u_short xdpi ) in usb_SetAsicDpiX()
159 /* limit xdpi to lower value for certain devices... in usb_SetAsicDpiX()
163 xdpi < 150 && in usb_SetAsicDpiX()
165 xdpi = 150; in usb_SetAsicDpiX()
166 DBG( _DBG_INFO2, "* LIMIT XDPI to %udpi\n", xdpi ); in usb_SetAsicDpiX()
169 m_dHDPIDivider = (double)scaps->OpticDpi.x / xdpi; in usb_SetAsicDpiX()
1640 int step, div, org, xdpi; in usb_SaveImageInfo() local
1642 xdpi = usb_SetAsicDpiX( dev, pParam->UserDpi.x ); in usb_SaveImageInfo()
1644 if ((xdpi * in usb_SaveImageInfo()
[all...]
H A Dp5_device.c728 unsigned int xdpi; in start_scan() local
740 xdpi = dpi; in start_scan()
760 reg2 = 0x80; /* xdpi=200 */ in start_scan()
762 xdpi = 200; in start_scan()
767 xdpi = 300; in start_scan()
772 xdpi = 300; in start_scan()
803 /* handle case where dpi>xdpi */ in start_scan()
805 if (dpi > xdpi) in start_scan()
807 width = (width * xdpi) / dpi; in start_scan()
808 start = (startx * xdpi) / dp in start_scan()
[all...]
H A Dgt68xx_high.c1319 request.xdpi = 300; in gt68xx_afe_ccd_auto()
1352 values.scan_dpi = params.xdpi; in gt68xx_afe_ccd_auto()
1355 (params.pixel_xs * scanner->dev->model->optical_xdpi) / params.xdpi; in gt68xx_afe_ccd_auto()
1733 request.xdpi = 300; in gt68xx_afe_cis_read_lines()
1758 values->scan_dpi = params.xdpi; in gt68xx_afe_cis_read_lines()
1799 values->scan_dpi = params.xdpi; in gt68xx_afe_cis_read_lines()
2083 request.xdpi = 9600; in gt68xx_sheetfed_scanner_calibrate()
2086 if (scanner->dev->model->xdpi_values[i] < request.xdpi) in gt68xx_sheetfed_scanner_calibrate()
2088 request.xdpi = scanner->dev->model->xdpi_values[i]; in gt68xx_sheetfed_scanner_calibrate()
2202 /* loop at each possible xdpi t in gt68xx_sheetfed_scanner_calibrate()
[all...]
H A Dartec_eplus48u.h191 SANE_Int xdpi; /**< Horizontal resolution */ member
215 SANE_Int xdpi; /**< Horizontal resolution */ member
H A Dartec_eplus48u.c1149 SANE_Int xdpi, ydpi; in artec48u_setup_scan() local
1167 xdpi = request->xdpi; in artec48u_setup_scan()
1182 xdpi = ydpi = 600 * s->dev->epro_mult; /*epro*/ in artec48u_setup_scan()
1194 xdpi = ydpi = 600 * s->dev->epro_mult; /*epro*/ in artec48u_setup_scan()
1206 xdpi = ydpi = 600 * s->dev->epro_mult; /*epro*/ in artec48u_setup_scan()
1217 xdpi = ydpi = 600 * s->dev->epro_mult; /*epro*/ in artec48u_setup_scan()
1228 xdpi = 600; in artec48u_setup_scan()
1231 pixel_x0 = SANE_UNFIX (x0) * xdpi / MM_PER_INCH + 0.5; in artec48u_setup_scan()
1233 pixel_xs = SANE_UNFIX (request->xs) * xdpi / MM_PER_INC in artec48u_setup_scan()
[all...]
H A Dp5_device.h218 int xdpi; /** real horizontal resolution */ member
H A Drts8891_low.h194 SANE_Int xdpi; member
H A Dgt68xx_low.h108 #define GT68XX_FLAG_USE_OPTICAL_X (1 << 10) /* Use optical xdpi for 50 dpi and below */
552 SANE_Int xdpi; /**< Horizontal resolution */ member
574 SANE_Int xdpi; /**< Horizontal resolution */ member
H A Dumax1220u-common.c219 int xdpi; /* Physical x dpi */ member
1721 bpl = (scan->color ? 3 : 1) * scan->w * scan->xdpi; in send_scan_parameters_2100U()
1948 xres = 75 => xdpi = 600 (xsamp = 8) in UMAX_set_scan_parameters()
1949 xres = 150 => xdpi = 600 (xsamp = 4) in UMAX_set_scan_parameters()
1950 xres = 300 => xdpi = 600 (xsamp = 2) in UMAX_set_scan_parameters()
1951 xres = 600 => xdpi = 600 (xsamp = 1) in UMAX_set_scan_parameters()
1966 scan->xdpi = 600; in UMAX_set_scan_parameters()
1974 scan->xsamp = scan->xdpi / xres; in UMAX_set_scan_parameters()
2042 scan->xskip = scan->xo / (600 / scan->xdpi); in UMAX_start_scan()
2117 scan->xskip = scan->xo / (600 / scan->xdpi); in UMAX_start_scan_2100U()
[all...]
H A Dgt68xx.c308 scan_request->xdpi = s->val[OPT_RESOLUTION].w; in setup_scan_request()
309 if (scan_request->xdpi > s->dev->model->optical_xdpi) in setup_scan_request()
310 scan_request->xdpi = s->dev->model->optical_xdpi; in setup_scan_request()
326 SANE_UNFIX (scan_request->xs) * scan_request->xdpi / MM_PER_INCH + in setup_scan_request()
332 SANE_FIX ((xs - (xs % 8)) * MM_PER_INCH / scan_request->xdpi); in setup_scan_request()
2071 "height=%.1f, color=%s\n", scan_request.xdpi, in sane_start()
H A Drts8891.c1466 dev->xdpi = dpi; in compute_parameters()
1491 ((SANE_UNFIX (dev->model->x_offset) + tl_x) * dev->xdpi) / MM_PER_INCH; in compute_parameters()
1536 if (dev->xdpi == dev->model->max_xdpi) in compute_parameters()
1589 switch (dev->xdpi) in compute_parameters()
1608 if (dev->xdpi < dev->model->max_ydpi) in compute_parameters()
1862 if (dev->xdpi == dev->model->max_xdpi) in sane_read()
1863 { /* at max xdpi, data received is distorted and ydpi is half of xdpi */ in sane_read()
2618 /* TODO we build it from xdpi, one could prefer building it from in init_options()
5463 if (dev->xdpi > 30 in setup_shading_calibration()
[all...]
/third_party/skia/third_party/externals/imgui/backends/
H A Dimgui_impl_win32.cpp546 UINT xdpi = 96, ydpi = 96; in ImGui_ImplWin32_GetDpiScaleForMonitor() local
555 GetDpiForMonitorFn((HMONITOR)monitor, MDT_EFFECTIVE_DPI, &xdpi, &ydpi); in ImGui_ImplWin32_GetDpiScaleForMonitor()
556 IM_ASSERT(xdpi == ydpi); // Please contact me if you hit this assert! in ImGui_ImplWin32_GetDpiScaleForMonitor()
557 return xdpi / 96.0f; in ImGui_ImplWin32_GetDpiScaleForMonitor()
562 xdpi = ::GetDeviceCaps(dc, LOGPIXELSX); in ImGui_ImplWin32_GetDpiScaleForMonitor()
564 IM_ASSERT(xdpi == ydpi); // Please contact me if you hit this assert! in ImGui_ImplWin32_GetDpiScaleForMonitor()
567 return xdpi / 96.0f; in ImGui_ImplWin32_GetDpiScaleForMonitor()
/third_party/glfw/src/
H A Dwin32_monitor.c319 UINT xdpi, ydpi; in _glfwGetHMONITORContentScaleWin32() local
328 if (GetDpiForMonitor(handle, MDT_EFFECTIVE_DPI, &xdpi, &ydpi) != S_OK) in _glfwGetHMONITORContentScaleWin32()
337 xdpi = GetDeviceCaps(dc, LOGPIXELSX); in _glfwGetHMONITORContentScaleWin32()
343 *xscale = xdpi / (float) USER_DEFAULT_SCREEN_DPI; in _glfwGetHMONITORContentScaleWin32()
/third_party/mesa3d/include/android_stub/hardware/
H A Dfb.h61 const float xdpi; member
/third_party/mesa3d/include/android_stub/system/
H A Dwindow.h407 : flags(0), minSwapInterval(0), maxSwapInterval(0), xdpi(0), ydpi(0) in ANativeWindow()
436 const float xdpi; member

Completed in 45 milliseconds

12