Lines Matching refs:white
185 "%2d medium white: 0x%02x\n", cal->white_count - 1,
189 "gt68xx_calibrator_add_white_line: line: %2d medium white: 0x%02x\n",
261 unsigned int white = cal->white_line[i];
263 unsigned int diff = (white > black) ? white - black : 1;
999 SANE_Int white; /* maximum white (0-255) */
1000 SANE_Int total_white; /* average white of the complete line (0-65536) */
1016 /** Calculate average black and maximum white
1020 * is used for searching the segment whose white average is the highest.
1038 /* set size of black mark and white segments */
1080 values->white = max_white;
1081 if (values->white < 50 || values->black > 150
1082 || values->white - values->black < 30 || max_black - min_black > 15)
1085 values->white, values->black, max_black);
1089 values->white, values->black, max_black);
1114 if (values->white > white_high)
1128 else if (values->white < white_low)
1144 if (values->white > white_high)
1146 else if (values->white < white_low)
1158 if (values->white < white_low)
1160 else if (values->white > white_high)
1179 DBG (4, "%5s white=%3d, black=%3d, offset=%2d, gain=%2d, old offs=%2d, "
1180 "old gain=%2d, total_white=%5d %s\n", color_name, values->white,
1242 "gt68xx_wait_lamp_stable: this white = %d, last white = %d\n",
1535 /* find max average white value */
1548 values->white = max_white;
1552 values->white, values->total_white >> 8);
1597 if (values->white > white_high)
1611 else if (values->white < white_low)
1627 if (values->white > white_high)
1629 else if (values->white < white_low)
1641 if (values->white < white_low)
1643 else if (values->white > white_high)
1671 DBG (4, "%5s white=%3d, black=%3d, offset=0x%02X, gain=0x%02X, old offs=0x%02X, "
1672 "old gain=0x%02X, total_white=%5d %s\n", color_name, values->white,
1693 if (values->white < border)
1695 exposure_change = ((border - values->white) * 1);
1698 "%5s: white = %3d, total_white=%5d (exposure too low) --> exposure += %d (=0x%03x)\n",
1699 color_name, values->white, values->total_white, exposure_change, *exposure_time);
1702 else if (values->white > border + 5)
1704 exposure_change = -((values->white - (border + 5)) * 1);
1707 "%5s: white = %3d, total_white=%5d (exposure too high) --> exposure -= %d (=0x%03x)\n",
1708 color_name, values->white, values->total_white, exposure_change, *exposure_time);
1713 DBG (4, "%5s: white = %3d, total_white=%5d (exposure ok=0x%03x)\n",
1714 color_name, values->white, values->total_white, *exposure_time);
1922 /* read white line */
2032 /**< number of consecutive white line to detect a white area */
2037 * target (which may be a blank page). It first move to a white area then
2038 * does afe and exposure calibration. Then it scans white lines to get data
2050 int count, i, x, y, white;
2093 /* move to white area SA_CALIBRATE uses its own y0/ys fixed values */
2128 /* loop until we find a white area to calibrate on */
2145 /* loop until we find WHITE_LINES consecutive white lines or we reach and of area */
2146 white = 0;
2160 /* check for white line */
2170 /* line is white if 93% is above black level */
2173 white = 0;
2177 white++;
2181 while ((white < WHITE_LINES) && (y < params.pixel_ys));
2188 while (i < 20 && white < WHITE_LINES);
2190 /* check if we found a white area */
2191 if (white != WHITE_LINES)
2194 "gt68xx_sheetfed_scanner_calibrate: didn't find a white area\n");