Lines Matching defs:black
1124 /** detect a black scan line
1126 * acceptable black line for calibration
1148 * black margin at both ends of the line */
1153 /* count number of black bytes */
1162 /* we allow 3% black pixels maximum */
1197 * black margin at both ends of the line */
1202 /* count number of black bytes */
1211 /* we allow 3% black pixels maximum */
1408 * reference data. The black reference data is extracted from the lines
1420 unsigned int i, j, k, dpi, pixels, read, black, white;
1472 black = 0;
1480 /* read lines and gather black and white ones until enough for sensor's
1485 if (status == SANE_STATUS_NO_DOCS && (white < 10 || black < 10))
1517 if (is_black_line (buffer, pixels, MODE_COLOR) && black < 256)
1519 black++;
1528 DBG (DBG_trace, "sheetfed_calibration: white lines=%d, black lines=%d\n",
1529 white, black);
1535 dev->calibration_data[i]->black_data[j] = black_data[j] / black;
1561 sprintf (title, "calibration-black-%d.pnm",