Lines Matching defs:code
29 account of linking the SANE library code into it.
775 DBG (5, "sense_handler: got sense code %02x for fd %d (arg = null)\n",
778 DBG (5, "sense_handler: got sense code %02x for fd %d (arg = %uc)\n",
810 DBG (1, "sense_handler: got unknown sense code %02x for fd %d\n",
1284 /* Earlier versions of this source code used MUSTEK_FLAG_LD_MFS
1372 own line-distance correction code. */
1755 /* Quantize s->val[OPT_RESOLUTION].w and return the resolution code for the
1762 SANE_Int code, mode = 0;
1768 code = dpi >> SANE_FIXED_SCALE_SHIFT;
1789 code = (dpi + quant / 2) / quant;
1790 if (code < 1)
1791 code = 1;
1794 DBG (5, "encode_resolution: code = 0x%x (%d); mode = %x\n", code, code,
1796 return code | mode;
1802 SANE_Int max, code, sign = 0;
1806 code = (int) ((value / 100.0 * 12) + 12.5);
1816 code = (int) (value / 100.0 * 127 + 0.5);
1817 code |= sign;
1820 if (code > max)
1821 code = max;
1822 if (code < 0)
1823 code = 0x00;
1824 return code;
1894 * This code isn't used at the moment. <henning@meier-geinitz.de>
2530 /* calculate funky speed code: */
2551 /* set command length and resolution code: */
2851 simplify the gamma correction code quite a bit. */
3379 SANE_Int code = 0x80;
3382 code |= 0x02; /* enable backtracking */
3385 code |= 0x01;
3387 code |= 0x04;
3390 backtrack[4] = code;
3393 code & 0x02 ? "yes" : "no", code & 0x01 ? "yes" : "no",
3394 code & 0x04 ? "yes" : "no");