<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi<br>
    <br>
    <div class="moz-cite-prefix">On 2022-07-10 12:26, Nicholas Andre
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CADs-h+ZCea2gL7zi9Ltq9eOMob2Rak=i8CJ8Tm+mgFmU1CXMiQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <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 class="gmail-code gmail-highlight" lang="c"><span id="gmail-LC1217" class="gmail-line" lang="c">   <span class="gmail-hljs-comment">/* XXX disabled for now */</span></span>
<span id="gmail-LC1218" class="gmail-line" lang="c">        s->opt[OPT_CCT_MODE].name = <span class="gmail-hljs-string">"cct-type"</span>;</span>
<span id="gmail-LC1219" class="gmail-line" lang="c">        s->opt[OPT_CCT_MODE].title = <span class="gmail-hljs-string">"CCT Profile Type"</span>;</span>
<span id="gmail-LC1220" class="gmail-line" lang="c">        s->opt[OPT_CCT_MODE].desc = <span class="gmail-hljs-string">"Color correction profile type"</span>;</span>
<span id="gmail-LC1221" class="gmail-line" lang="c">        s->opt[OPT_CCT_MODE].type = SANE_TYPE_STRING;</span>
<span id="gmail-LC1222" class="gmail-line" lang="c">        s->opt[OPT_CCT_MODE].cap  |= SANE_CAP_ADVANCED | SANE_CAP_INACTIVE;</span>
<span id="gmail-LC1223" class="gmail-line" lang="c">        s->opt[OPT_CCT_MODE].size = max_string_size(cct_mode_list);</span>
<span id="gmail-LC1224" class="gmail-line" lang="c">        s->opt[OPT_CCT_MODE].constraint_type = SANE_CONSTRAINT_STRING_LIST;</span>
<span id="gmail-LC1225" class="gmail-line" lang="c">        s->opt[OPT_CCT_MODE].constraint.string_list = cct_mode_list;</span>
<span id="gmail-LC1226" class="gmail-line" lang="c">        s->val[OPT_CCT_MODE].w = CCT_AUTO;</span>


</pre>
          <pre class="gmail-code gmail-highlight" lang="c">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>
  </body>
</html>