Lines Matching defs:black

430     // 16 bit black, 16 bit white
1147 void scanner_search_strip(Genesys_Device& dev, bool forward, bool black)
1149 DBG_HELPER_ARGS(dbg, "%s %s", black ? "black" : "white", forward ? "forward" : "reverse");
1151 if (dev.model->asic_type == AsicType::GL841 && !black && forward) {
1230 black ? "black" : "white", forward ? "fwd" : "bwd", pass);
1252 black ? "black" : "white",
1261 // Search data to find black strip
1269 // count of white/black pixels depending on the color searched
1272 // when searching for black, detect white pixels
1273 if (black && image.get_raw_channel(x, y, 0) > white_level) {
1277 // when searching for white, detect black pixels
1278 if (!black && image.get_raw_channel(x, y, 0) < black_level) {
1303 // count of white/black pixels depending on the color searched
1305 // when searching for black, detect white pixels
1306 if (black && image.get_raw_channel(x, y, 0) > white_level) {
1309 // when searching for white, detect black pixels
1310 if (!black && image.get_raw_channel(x, y, 0) < black_level) {
1331 DBG(DBG_info, "%s: %s strip found\n", __func__, black ? "black" : "white");
1334 black ? "black" : "white");
1338 static int dark_average_channel(const Image& image, unsigned black, unsigned channel)
1344 // computes average values on black margin
1348 // FIXME: start with the second line because the black pixels often have noise on the first
1351 for (unsigned j = 0; j < black; j++) {
1878 // pick target value at 95th percentile of all values. There may be a lot of black values
2280 // because they have a calibration sheet with a sufficient black strip
2358 int dummy1, dummy2, dummy3; /* dummy black average per channel */
2479 // because they have a calibration sheet with a sufficient black strip
2564 // This calibration uses a scan over the calibration target, comprising a black and a white strip.
2777 * @param target_dark value of the black target code
3701 * During calibration a predefined calibration sheet with specific black and white
3753 /* search for a full width black strip and then do a 16 bit scan to
3754 * gather black shading data */
3756 // seek black/white reverse/forward
3792 // in case we haven't black shading data, build it from black pixels of white calibration