kopia lustrzana https://gitlab.com/sane-project/backends
duplicate shading data on all channels for gray scans
rodzic
7f5000407e
commit
6c8052f54d
|
@ -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
|
static SANE_Status
|
||||||
|
|
Ładowanie…
Reference in New Issue