1mlib_ImageAndNot2_Inp(3MLIBm)ediaLib Library Functionmslib_ImageAndNot2_Inp(3MLIB)
2
3
4
6 mlib_ImageAndNot2_Inp - computes the And of the first source image and
7 the Not of the second source image, in place
8
10 cc [ flag... ] file... -lmlib [ library... ]
11 #include <mlib.h>
12
13 mlib_status mlib_ImageAndNot2_Inp(mlib_image *src2dst, const mlib_image *
14 src1);
15
16
18 The mlib_ImageAndNot2_Inp() function computes the logical Not of the
19 second source image and then computes the logical And of that result
20 with the first source image, on a pixel-by-pixel basis, and stores the
21 final result in the second source image. It uses the following equa‐
22 tion:
23
24 src2dst[x][y][i] = src1[x][y][i] & (~src2dst[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 src2dst Pointer to second source and destination image.
35
36
37 src1 Pointer to first source image.
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_ImageAnd(3MLIB), mlib_ImageAnd_Inp(3MLIB), attributes(5)
60
61
62
63SunOS 5.11 2 Mar 2007 mlib_ImageAndNot2_Inp(3MLIB)