genesys: Add a way to multiply the pixel counts sent to the scanner

merge-requests/187/head
Povilas Kanapickas 2019-09-15 15:14:18 +03:00
rodzic 00b8441dfa
commit b9346f0f79
2 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -1336,6 +1336,9 @@ void compute_session_pixel_offsets(const Genesys_Device* dev, ScanSession& s,
s.pixel_endx = 0;
}
}
s.pixel_startx *= sensor.pixel_count_multiplier;
s.pixel_endx *= sensor.pixel_count_multiplier;
}
void compute_session(Genesys_Device* dev, ScanSession& s, const Genesys_Sensor& sensor)

Wyświetl plik

@ -290,6 +290,9 @@ struct Genesys_Sensor {
// CCD may present itself as half or quarter-size CCD on certain resolutions
int ccd_size_divisor = 1;
// Some scanners need an additional multiplier over the scan coordinates
int pixel_count_multiplier = 1;
int black_pixels = 0;
// value of the dummy register
int dummy_pixel = 0;