Lines Matching defs:cap

270 /* What is the relationship between these and the ranges in cap? */
289 /* list of cap data the first scanner is the default
1433 dev->cap = &kodakaio_cap[CAP_DEFAULT];
1486 dev->cap = &kodakaio_cap[n];
1488 dev->cap = &kodakaio_cap[CAP_DEFAULT];
1490 device, dev->cap->model);
1492 k_set_model (s, dev->cap->model, strlen (dev->cap->model));
1508 if (dev->cap->ADF == SANE_TRUE) {
1518 dev->x_range = &dev->cap->fbf_x_range;
1519 dev->y_range = &dev->cap->fbf_y_range;
1597 optres = s->hw->cap->optical_res;
1600 for (rs=0; rs < s->hw->cap->res_list_size; rs++ ) {
1601 if ( dpi == s->hw->cap->res_list[rs] )
1788 optres = s->hw->cap->optical_res;
2064 if (s->hw->cap->out_ep>0)
2066 USB_DIR_OUT | USB_ENDPOINT_TYPE_BULK, s->hw->cap->out_ep);
2067 if (s->hw->cap->in_ep>0)
2069 USB_DIR_IN | USB_ENDPOINT_TYPE_BULK, s->hw->cap->in_ep);
2235 if (source_list[0] == NULL || dev->cap->dpi_range.min == 0) {
2263 struct KodakaioCap *cap;
2270 cap = get_device_from_identification("", vid, pid);
2271 if (cap == NULL) {
2275 DBG(min(10,DBG_AUTO), "%s: Found autodiscovered device: %s (type 0x%x)\n", __func__, cap->model, cap->id);
2276 attach_one_net (ip_addr, cap->id);
2733 s->opt[i].cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT;
2739 s->opt[OPT_NUM_OPTS].cap = SANE_CAP_SOFT_DETECT;
2748 s->opt[OPT_MODE_GROUP].cap = 0;
2792 s->opt[OPT_BIT_DEPTH].constraint.word_list = s->hw->cap->depth_list;
2793 s->opt[OPT_BIT_DEPTH].cap |= SANE_CAP_INACTIVE;
2794 s->val[OPT_BIT_DEPTH].w = s->hw->cap->depth_list[1]; /* the first "real" element is the default */
2796 DBG(20, "%s: depth list has depth_list[0] = %d entries\n", __func__, s->hw->cap->depth_list[0]);
2797 if (s->hw->cap->depth_list[0] == 1) { /* only one element in the list -> hide the option */
2798 s->opt[OPT_BIT_DEPTH].cap |= SANE_CAP_INACTIVE;
2809 res_list = malloc((s->hw->cap->res_list_size + 1) * sizeof(SANE_Word));
2813 *(res_list) = s->hw->cap->res_list_size;
2814 memcpy(&(res_list[1]), s->hw->cap->res_list, s->hw->cap->res_list_size * sizeof(SANE_Word));
2816 s->val[OPT_RESOLUTION].w = s->hw->cap->dpi_range.min;
2850 if ((!s->hw->cap->ADF)) {
2852 s->opt[OPT_SOURCE].cap |= SANE_CAP_INACTIVE;
2865 if ((!s->hw->cap->ADF) || (!s->hw->cap->adf_duplex))
2866 s->opt[OPT_ADF_MODE].cap |= SANE_CAP_INACTIVE;
2874 s->opt[OPT_GEOMETRY_GROUP].cap = SANE_CAP_ADVANCED;
2922 if ((!s->hw->cap->ADF) || (strcmp(source_list[s->val[OPT_SOURCE].w], ADF_STR) != 0))
2925 s->opt[OPT_PADDING].cap |= SANE_CAP_INACTIVE;
3072 if (!SANE_OPTION_IS_ACTIVE(s->opt[option].cap)) {
3073 s->opt[option].cap &= ~SANE_CAP_INACTIVE;
3081 if (SANE_OPTION_IS_ACTIVE(s->opt[option].cap)) {
3082 s->opt[option].cap |= SANE_CAP_INACTIVE;
3163 s->hw->x_range = &s->hw->cap->adf_x_range;
3164 s->hw->y_range = &s->hw->cap->adf_y_range;
3165 if (s->hw->cap->adf_duplex) {
3173 DBG(5, "adf activated flag = %d\n",s->hw->cap->adf_duplex);
3177 s->hw->x_range = &s->hw->cap->fbf_x_range;
3178 s->hw->y_range = &s->hw->cap->fbf_y_range;
3241 s->opt[OPT_BIT_DEPTH].cap |= SANE_CAP_INACTIVE;
3242 s->opt[OPT_THRESHOLD].cap &= ~SANE_CAP_INACTIVE;
3244 if (s->hw->cap->depth_list[0] == 1) { /* only one entry in the list ? */
3246 s->val[OPT_BIT_DEPTH].w = s->hw->cap->depth_list[1];
3247 s->opt[OPT_BIT_DEPTH].cap |= SANE_CAP_INACTIVE;
3248 s->opt[OPT_THRESHOLD].cap |= SANE_CAP_INACTIVE;
3251 s->opt[OPT_BIT_DEPTH].cap &= ~SANE_CAP_INACTIVE;
3253 s->opt[OPT_THRESHOLD].cap |= SANE_CAP_INACTIVE; /* does not work in xsane ? */