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

Reply via email to