Lines Matching defs:width

687    * For each struct window_section[i] we need to fill in ulx,uly,width,height,etc
1353 _4btol (&jbuf.Window.width[0]), _4btol (&jbuf.Window.length[0]));
1354 dev->info.winWidth = _4btol (&jbuf.Window.width[0]);
1359 DBG (DBG_warning, "attach: invalid window width reported, using %d\n",
2511 x = (paper_sizes[paper_id].width <= 0.0) ? x_max :
2512 paper_sizes[paper_id].width;
2575 int width, length, xres, yres;
2580 width =
2590 width, length, xres, yres, s->hw->info.mud);
2593 if (xres > 0 && yres > 0 && width > 0 && length > 0)
2596 width * xres / s->hw->info.mud / MM_PER_INCH;
2639 long ulx, uly, width, length, number, bytes;
2677 width = (long) SANE_UNFIX (s->val[OPT_BR_X].w - s->val[OPT_TL_X].w); /* Window Width */
2679 DBG (DBG_info, "set_window_data: WxL= %ld x %ld\n", width, length);
2681 /* NOTE: the width in inches converted to byte unit must be the following values or less
2688 bytes = (width / MM_PER_INCH) * (s->val[OPT_X_RESOLUTION].w / 8.0);
2692 "width in pixels too large: width=%ld x-resolution=%d bytes=%ld\n",
2693 width, s->val[OPT_X_RESOLUTION].w, bytes);
2699 bytes = (width / MM_PER_INCH) * (s->val[OPT_X_RESOLUTION].w / 2.0);
2703 "width in pixels too large: width=%ld x-resolution=%d bytes=%ld\n",
2704 width, s->val[OPT_X_RESOLUTION].w, bytes);
2710 bytes = (width / MM_PER_INCH) * (s->val[OPT_X_RESOLUTION].w);
2714 "width in pixels too large: width=%ld x-resolution=%d bytes=%ld\n",
2715 width, s->val[OPT_X_RESOLUTION].w, bytes);
2723 offset = (SANE_UNFIX (s->hw->info.x_range.max) - width) / 2.0;
2742 number = ulx + width;
2745 DBG (DBG_error, "NOT WITHIN BOUNDS: ulx=%ld width=%ld sum=%ld\n",
2746 ulx, width, number);
2773 _lto4b (width, &data->width[0]); /* Window Width */
2881 wbuf[i].winsec[j].width