1mlib_ImageConstAndNot_Inp(3mMeLdIiBa)Lib Library Funcmtliiobn_sImageConstAndNot_Inp(3MLIB)
2
3
4
6 mlib_ImageConstAndNot_Inp - AndNot with a constant
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageConstAndNot_Inp(mlib_image *srcdst,
13 const mlib_s32 *c);
14
15
17 The mlib_ImageConstAndNot_Inp() function computes the And of the Not of
18 the source image with a constant, in place.
19
20
21 It uses the following equation:
22
23 srcdst[x][y][i] = c[i] & (~srcdst[x][y][i])
24
25
26
27 The data type of the images can be MLIB_BIT, MLIB_BYTE, MLIB_SHORT,
28 MLIB_USHORT, or MLIB_INT.
29
31 The function takes the following arguments:
32
33 srcdst Pointer to first source and destination image.
34
35
36 c Array of constants to be applied to each pixel. c[i] contains
37 the constant for channel i.
38
39
41 The function returns MLIB_SUCCESS if successful. Otherwise it returns
42 MLIB_FAILURE.
43
45 See attributes(5) for descriptions of the following attributes:
46
47
48
49
50 ┌─────────────────────────────┬─────────────────────────────┐
51 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
52 ├─────────────────────────────┼─────────────────────────────┤
53 │Interface Stability │Committed │
54 ├─────────────────────────────┼─────────────────────────────┤
55 │MT-Level │MT-Safe │
56 └─────────────────────────────┴─────────────────────────────┘
57
59 mlib_ImageConstAndNot(3MLIB), attributes(5)
60
61
62
63SunOS 5.11 2 Mar 2007 mlib_ImageConstAndNot_Inp(3MLIB)