Fix a bug with Canon LiDE 700 where bright areas overflow

On this scanner, white areas are easily seen to become yellow, implying
some kind of integer overflow in the blue channel first, followed by
others.

I can't be 100% sure this is the correct fix without knowing more about
the design or having a data sheet; this "target_code" was established
experimentally.

This is a fix to issue #43.
merge-requests/37/head
Mark Hills 2018-12-01 21:01:57 +00:00
rodzic 4423421806
commit 47f9b1eeed
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -3069,6 +3069,9 @@ genesys_send_shading_coefficient (Genesys_Device * dev)
case CIS_CANONLIDE220:
target_code = 0xf000;
break;
case CIS_CANONLIDE700:
target_code = 0xc000; /* from experimentation */
break;
default:
target_code = 0xdc00;
}