Lines Matching defs:sod
84 #define SOD(opt) OPT_IN_CTX[opt].sod
343 SANE_Option_Descriptor *sod = &SOD (n);
345 const SANE_Range *range = sod->constraint.range;
348 nmemb = sod->size / sizeof (SANE_Word);
528 SANE_Option_Descriptor *sod = &SOD (n);
530 const SANE_Word *list = sod->constraint.word_list;
533 nmemb = sod->size / sizeof (SANE_Word);
570 switch (opt->sod.type)
583 switch (opt->sod.type)
593 if (opt->sod.constraint_type == SANE_CONSTRAINT_RANGE)
595 else if (opt->sod.constraint_type == SANE_CONSTRAINT_WORD_LIST)
606 switch (opt->sod.type)
627 const SANE_String_Const *slist = opt->sod.constraint.string_list;
632 if (opt->sod.constraint_type == SANE_CONSTRAINT_NONE)
643 strncpy (opt->val.s, str, opt->sod.size - 1);
684 SANE_Option_Descriptor *sod = &SOD (n);
703 int table_size = sod->size / sizeof (SANE_Word);
1025 SANE_Option_Descriptor *sod = &SOD (opt_gamma_table);
1031 sod->desc = SANE_I18N("Gamma-correction table with 4096 entries. In color mode this option equally affects the red, green, and blue channels simultaneously (i.e., it is an intensity gamma table).");
1032 sod->size = 4096 * sizeof(SANE_Word);
1033 sod->constraint.range = &constraint_gamma_table_4096;
1039 __func__, sod->constraint.range->max)); */
1041 __func__, sod->size / sizeof(SANE_Word))); */
1844 if (!SANE_OPTION_IS_ACTIVE (opt->sod.cap))
1849 if ((opt->sod.type != SANE_TYPE_BUTTON && !v) ||
1850 !SANE_OPTION_IS_SETTABLE (opt->sod.cap))
1854 if (!(opt->sod.cap & SANE_CAP_AUTOMATIC) ||
1855 !SANE_OPTION_IS_SETTABLE (opt->sod.cap))
1859 if (!v || !(opt->sod.cap & SANE_CAP_SOFT_DETECT))