1mlib_ImageConstNotAnd_Inp(3mMeLdIiBa)Lib Library Funcmtliiobn_sImageConstNotAnd_Inp(3MLIB)
2
3
4
6 mlib_ImageConstNotAnd_Inp - NotAnd with a constant, in place
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageConstNotAnd_Inp(mlib_image *srcdst,
13 const mlib_s32 *c);
14
15
17 The mlib_ImageConstNotAnd_Inp() function computes the logical And of
18 the source image with a constant and then takes the logical Not of that
19 result on a pixel-by-pixel basis, in place.
20
21
22 It uses the following equation:
23
24 srcdst[x][y][i] = ~(c[i] & srcdst[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 srcdst Pointer to first source and destination image.
35
36
37 c Array of constants to be applied to each pixel. c[i] contains
38 the constant for channel i.
39
40
42 The function returns MLIB_SUCCESS if successful. Otherwise it returns
43 MLIB_FAILURE.
44
46 See attributes(5) for descriptions of the following attributes:
47
48
49
50
51 ┌─────────────────────────────┬─────────────────────────────┐
52 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
53 ├─────────────────────────────┼─────────────────────────────┤
54 │Interface Stability │Committed │
55 ├─────────────────────────────┼─────────────────────────────┤
56 │MT-Level │MT-Safe │
57 └─────────────────────────────┴─────────────────────────────┘
58
60 mlib_ImageConstNotAnd(3MLIB), attributes(5)
61
62
63
64SunOS 5.11 2 Mar 2007 mlib_ImageConstNotAnd_Inp(3MLIB)