duplicate shading data on all channels for gray scans

merge-requests/1/head
Stphane Voltz 2009-10-15 06:17:26 +02:00
rodzic 7f5000407e
commit 6c8052f54d
1 zmienionych plików z 11 dodań i 0 usunięć

Wyświetl plik

@ -2931,6 +2931,17 @@ compute_planar_coefficients (Genesys_Device * dev,
}
}
}
/* in case of gray level scan, we duplicate shading information on all
* three color channels */
if(channels==1)
{
memcpy(shading_data+cmat[1]*2*words_per_color,
shading_data+cmat[0]*2*words_per_color,
words_per_color*2);
memcpy(shading_data+cmat[2]*2*words_per_color,
shading_data+cmat[0]*2*words_per_color,
words_per_color*2);
}
}
static SANE_Status