kopia lustrzana https://gitlab.com/sane-project/backends
* backend/genesys_gl841.c backend/genesys_gl646.c: Actually use
the endian converted slope table. * backend/genesys_conv_hlp.c: Fix interpolation code to emit all pixels of a line.merge-requests/1/head
rodzic
955a75979e
commit
e2682e96cf
|
@ -1,3 +1,10 @@
|
|||
2006-04-18 Pierre Willenbrock <pierre@pirsoft.dnsalias.org>
|
||||
|
||||
* backend/genesys_gl841.c backend/genesys_gl646.c: Actually use
|
||||
the endian converted slope table.
|
||||
* backend/genesys_conv_hlp.c: Fix interpolation code to emit all
|
||||
pixels of a line.
|
||||
|
||||
2006-04-18 Henning Meier-Geinitz <henning@meier-geinitz.de>
|
||||
|
||||
* doc/descriptions/epson.desc doc/descriptions/fujitsu.desc
|
||||
|
|
|
@ -327,9 +327,10 @@ FUNC_NAME(genesys_shrink_lines) (
|
|||
cnt = dst_pixels / 2;
|
||||
dst_x = 0;
|
||||
for (src_x = 0; src_x < src_pixels; src_x++) {
|
||||
for (c = 0; c < channels; c++)
|
||||
for (c = 0; c < channels; c++)
|
||||
avg[c] = *src++;
|
||||
while (cnt < dst_pixels && dst_x < dst_pixels) {
|
||||
while ((cnt < dst_pixels || src_x + 1 == src_pixels) &&
|
||||
dst_x < dst_pixels) {
|
||||
cnt += src_pixels;
|
||||
|
||||
for (c = 0; c < channels; c++)
|
||||
|
|
|
@ -1104,7 +1104,7 @@ gl646_send_slope_table (Genesys_Device * dev, int table_nr,
|
|||
}
|
||||
|
||||
status =
|
||||
gl646_bulk_write_data (dev, 0x3c, (u_int8_t *) slope_table,
|
||||
gl646_bulk_write_data (dev, 0x3c, (u_int8_t *) table,
|
||||
steps * 2);
|
||||
if (status != SANE_STATUS_GOOD)
|
||||
{
|
||||
|
|
|
@ -1566,7 +1566,7 @@ gl841_send_slope_table (Genesys_Device * dev, int table_nr,
|
|||
}
|
||||
|
||||
status =
|
||||
gl841_bulk_write_data (dev, 0x3c, (u_int8_t *) slope_table,
|
||||
gl841_bulk_write_data (dev, 0x3c, (u_int8_t *) table,
|
||||
steps * 2);
|
||||
if (status != SANE_STATUS_GOOD)
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue