genesys: Remove unnecessary pixel averaging handling code on gl841

merge-requests/401/head
Povilas Kanapickas 2020-04-13 07:19:53 +03:00
rodzic 1f43e6a7f8
commit f4b60c48bb
1 zmienionych plików z 0 dodań i 13 usunięć

Wyświetl plik

@ -851,19 +851,6 @@ void compute_session_pixel_offsets(const Genesys_Device* dev, ScanSession& s,
s.pixel_startx += sensor.dummy_pixel + 1;
/* In case of SHDAREA, we need to align start on pixel average factor, startx is
different than 0 only when calling for function to setup for scan, where shading data
needs to be align.
NOTE: we can check the value of the register here, because we don't set this bit
anywhere except in initialization.
*/
const uint8_t REG_0x01_SHDAREA = 0x02;
if ((dev->reg.find_reg(0x01).value & REG_0x01_SHDAREA) != 0) {
unsigned average_factor = s.optical_resolution / s.params.xres;
s.pixel_startx = align_multiple_floor(s.pixel_startx, average_factor);
}
s.pixel_endx = s.pixel_startx + s.optical_pixels;
} else if (dev->model->asic_type == AsicType::GL843) {