kopia lustrzana https://gitlab.com/sane-project/backends
constraint range for threshold
rodzic
aaa97ac050
commit
e3e2ca1aab
|
@ -1692,6 +1692,7 @@ type group
|
|||
type int threshold
|
||||
unit PERCENT
|
||||
default 50
|
||||
constraint (0,100,1)
|
||||
title @SANE_TITLE_THRESHOLD
|
||||
desc @SANE_DESC_THRESHOLD
|
||||
cap soft_select soft_detect automatic inactive
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
static const SANE_Range constraint_gamma_table = { 0, 255, 0 };
|
||||
static const SANE_Range constraint_gamma = { SANE_FIX (0.3), SANE_FIX (5),
|
||||
SANE_FIX (0) };
|
||||
static const SANE_Range constraint_threshold = { 0, 100, 1 };
|
||||
|
||||
static int
|
||||
find_string_in_list (SANE_String_Const str, const SANE_String_Const * list)
|
||||
|
@ -285,7 +286,8 @@ build_option_descriptors (struct pixma_sane_t *ss)
|
|||
sod->cap =
|
||||
SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT | SANE_CAP_AUTOMATIC |
|
||||
SANE_CAP_INACTIVE;
|
||||
sod->constraint_type = SANE_CONSTRAINT_NONE;
|
||||
sod->constraint_type = SANE_CONSTRAINT_RANGE;
|
||||
sod->constraint.range = &constraint_threshold;
|
||||
OPT_IN_CTX[opt_threshold].info = 0;
|
||||
opt->def.w = 50;
|
||||
opt->val.w = 50;
|
||||
|
|
Ładowanie…
Reference in New Issue