[sane-devel] CCT Type on Epson 2 driver

Nicholas Andre nick at nicholasandre.com
Sun Jul 10 21:19:55 BST 2022


Happy to help connecting it up/would love to understand a bit more about
this driver. Does Epson collaborate with the Sane backend maintainer?

On Sun, Jul 10, 2022 at 1:11 PM Ralph Little <skelband at gmail.com> wrote:

> Hi
>
> On 2022-07-10 12:26, Nicholas Andre wrote:
>
> Hey all,
>
> I'm having trouble enabling the CCT Type option in sane (says inactive).
>
> In the code I see:
>
> 	/* XXX disabled for now */	s->opt[OPT_CCT_MODE].name = "cct-type";	s->opt[OPT_CCT_MODE].title = "CCT Profile Type";	s->opt[OPT_CCT_MODE].desc = "Color correction profile type";	s->opt[OPT_CCT_MODE].type = SANE_TYPE_STRING;	s->opt[OPT_CCT_MODE].cap  |= SANE_CAP_ADVANCED | SANE_CAP_INACTIVE;	s->opt[OPT_CCT_MODE].size = max_string_size(cct_mode_list);	s->opt[OPT_CCT_MODE].constraint_type = SANE_CONSTRAINT_STRING_LIST;	s->opt[OPT_CCT_MODE].constraint.string_list = cct_mode_list;	s->val[OPT_CCT_MODE].w = CCT_AUTO;
>
>  Does this mean this feature isn't enabled? or am I missing something.
>
> $ scanimage -d 'epson2:libusb:006:009' --mode=Color --depth=16 --source="TPU8x10" --preview=yes --format=tiff --color-correction="None" --cct-type="Colour negatives" --cct-profile=0  -o ~/preview.tif
> scanimage: attempted to set inactive option cct-type
>
>
>
> It appears from looking at the code that this option is disabled for the
> moment:
>
>     /* XXX disabled for now */
>     s->opt[OPT_CCT_MODE].name = "cct-type";
>     s->opt[OPT_CCT_MODE].title = "CCT Profile Type";
> ...
>
> I don't see the value being used elsewhere in the backend for this option
> either so I guess it doesn't do anything at the moment.
>
> Perhaps the current maintainer has some ideas?
>
> Cheers,
> Ralph
>
> --
Thanks,
Nicholas Andre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20220710/b8bf662a/attachment.htm>


More information about the sane-devel mailing list