Lines Matching defs:bottom
3061 /* bottom */
3062 overscan = fmax(0, fmax(dev->hw->offset.duplex.front.bottom,
3063 dev->hw->offset.duplex.rear.bottom));
3065 offsets.front.bottom += overscan - dev->hw->offset.duplex.front.bottom;
3066 offsets.rear.bottom += overscan - dev->hw->offset.duplex.rear.bottom;
3076 - skip bottom lines at page n=0, front and rear
3080 offsets.front.bottom += dev->hw->offset.first;
3081 offsets.rear.bottom += dev->hw->offset.first;
3089 - add bottom overscan in send_tune_scan_length (effective for all pages!)
3091 - skip bottom lines at page n>0, front and rear
3097 offsets.front.bottom += fabs(dev->hw->offset.first);
3098 offsets.rear.bottom += fabs(dev->hw->offset.first);
3107 s->avdimen.offset.front.bottom = (int) ( offsets.front.bottom * s->avdimen.yres / MM_PER_INCH );
3109 s->avdimen.offset.rear.bottom = (int) ( offsets.rear.bottom * s->avdimen.yres / MM_PER_INCH );
3116 DBG (1, "sane_compute_parameters: front offset: bottom: %d!\n",
3117 s->avdimen.offset.front.bottom);
3120 DBG (1, "sane_compute_parameters: rear offset: bottom: %d!\n",
3121 s->avdimen.offset.rear.bottom);
3135 /* bottom */
3136 if (dev->hw->offset.front.bottom < 0)
3137 offsets.bottom += fabs(dev->hw->offset.front.bottom);
3139 bry_offset += dev->hw->offset.front.bottom;
3148 - skip bottom lines at page n=0
3152 offsets.bottom += dev->hw->offset.first;
3158 - add bottom overscan in send_tune_scan_length (effective for all pages!)
3160 - skip bottom lines at page n>0
3165 offsets.bottom += fabs(dev->hw->offset.first);
3173 s->avdimen.offset.front.bottom = (int) ( offsets.bottom * s->avdimen.yres / MM_PER_INCH );
3180 DBG (1, "sane_compute_parameters: front offset: bottom: %d!\n",
3181 s->avdimen.offset.front.bottom);
3185 s->avdimen.offset.front.bottom = 0;
3187 s->avdimen.offset.rear.bottom = 0;
4969 int top, bottom, dpi;
5034 bottom = (int) (dpi * SANE_UNFIX (s->val[OPT_OVERSCAN_BOTTOM].w) / MM_PER_INCH);
5035 DBG (3, "send_tune_scan_length: bottom: %d\n", bottom);
5037 /* bottom offset compensation */
5041 offset += fmax(0, fmax(dev->hw->offset.duplex.front.bottom,
5042 dev->hw->offset.duplex.rear.bottom) );
5044 offset += fmax(0, dev->hw->offset.front.bottom);
5052 bottom += bottom_offset;
5053 DBG (3, "send_tune_scan_length: bottom offset: %d\n", bottom_offset);
5056 set_double (payload.vertical, bottom);
5064 DBG (1, "send_tune_scan_length: send bottom/right failed (%s)\n", sane_strstatus (status));
7092 /* bottom-right x */
7102 /* bottom-right y */
7122 /* overscan bottom */
7123 s->opt[OPT_OVERSCAN_BOTTOM].name = "overscan-bottom";
7124 s->opt[OPT_OVERSCAN_BOTTOM].title = "Overscan bottom";
7125 s->opt[OPT_OVERSCAN_BOTTOM].desc = "The bottom overscan controls the additional area to scan after the paper end is detected.";
7417 FILE* fp_fd = 0; /* for ADF bottom offset truncating */
8203 if ( (!s->duplex_rear_valid && (line > (lines - s->avdimen.offset.front.bottom))) ||
8204 (s->duplex_rear_valid && (line > (lines - s->avdimen.offset.rear.bottom))) ) {
8676 dev->hw->offset.front.bottom != 0 ||
8678 dev->hw->offset.duplex.front.bottom != 0 ||
8680 dev->hw->offset.duplex.rear.bottom != 0) )
9286 it in order to use it for bottom padding */