<div dir="auto">Happy to help connecting it up/would love to understand a bit more about this driver. Does Epson collaborate with the Sane backend maintainer?</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 10, 2022 at 1:11 PM Ralph Little <<a href="mailto:skelband@gmail.com">skelband@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
<div>
Hi<br>
<br>
<div>On 2022-07-10 12:26, Nicholas Andre
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hey all,</div>
<div><br>
</div>
<div>I'm having trouble enabling the CCT Type option in sane
(says inactive).</div>
<div><br>
</div>
<div>In the code I see:</div>
<div>
<pre lang="c" style="font-family:monospace"><span id="m_4645220108718601648gmail-LC1217" lang="c" style="font-family:monospace"> <span style="font-family:monospace">/* XXX disabled for now */</span></span>
<span id="m_4645220108718601648gmail-LC1218" lang="c" style="font-family:monospace"> s->opt[OPT_CCT_MODE].name = <span style="font-family:monospace">"cct-type"</span>;</span>
<span id="m_4645220108718601648gmail-LC1219" lang="c" style="font-family:monospace"> s->opt[OPT_CCT_MODE].title = <span style="font-family:monospace">"CCT Profile Type"</span>;</span>
<span id="m_4645220108718601648gmail-LC1220" lang="c" style="font-family:monospace"> s->opt[OPT_CCT_MODE].desc = <span style="font-family:monospace">"Color correction profile type"</span>;</span>
<span id="m_4645220108718601648gmail-LC1221" lang="c" style="font-family:monospace"> s->opt[OPT_CCT_MODE].type = SANE_TYPE_STRING;</span>
<span id="m_4645220108718601648gmail-LC1222" lang="c" style="font-family:monospace"> s->opt[OPT_CCT_MODE].cap |= SANE_CAP_ADVANCED | SANE_CAP_INACTIVE;</span>
<span id="m_4645220108718601648gmail-LC1223" lang="c" style="font-family:monospace"> s->opt[OPT_CCT_MODE].size = max_string_size(cct_mode_list);</span>
<span id="m_4645220108718601648gmail-LC1224" lang="c" style="font-family:monospace"> s->opt[OPT_CCT_MODE].constraint_type = SANE_CONSTRAINT_STRING_LIST;</span>
<span id="m_4645220108718601648gmail-LC1225" lang="c" style="font-family:monospace"> s->opt[OPT_CCT_MODE].constraint.string_list = cct_mode_list;</span>
<span id="m_4645220108718601648gmail-LC1226" lang="c" style="font-family:monospace"> s->val[OPT_CCT_MODE].w = CCT_AUTO;</span>
</pre>
<pre lang="c" style="font-family:monospace">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
</pre>
</div>
<br>
</div>
</blockquote>
<br>
It appears from looking at the code that this option is disabled for
the moment:<br>
<br>
/* XXX disabled for now */<br>
s->opt[OPT_CCT_MODE].name = "cct-type";<br>
s->opt[OPT_CCT_MODE].title = "CCT Profile Type";<br>
...<br>
<br>
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.<br>
<br>
Perhaps the current maintainer has some ideas?<br>
<br>
Cheers,<br>
Ralph<br>
<br>
</div>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Thanks,<br>Nicholas Andre<br></div></div></div>