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