1mlib_ImageAndNot(3MLIB) mediaLib Library Functions mlib_ImageAndNot(3MLIB)
2
3
4
6 mlib_ImageAndNot - computes the And of the first source image and the
7 Not of the second source image
8
10 cc [ flag... ] file... -lmlib [ library... ]
11 #include <mlib.h>
12
13 mlib_status mlib_ImageAndNot(mlib_image *dst, const mlib_image *src1,
14 const mlib_image *src2);
15
16
18 The mlib_ImageAndNot() function computes the logical Not of the second
19 source image and then computes the logical And of the result with the
20 first source image, on a pixel-by-pixel basis. It uses the following
21 equation:
22
23 dst[x][y][i] = src1[x][y][i] & (~src2[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 dst Pointer to destination image.
34
35
36 src1 Pointer to first source image.
37
38
39 src2 Pointer to second source image.
40
41
43 The function returns MLIB_SUCCESS if successful. Otherwise it returns
44 MLIB_FAILURE.
45
47 See attributes(5) for descriptions of the following attributes:
48
49
50
51
52 ┌─────────────────────────────┬─────────────────────────────┐
53 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
54 ├─────────────────────────────┼─────────────────────────────┤
55 │Interface Stability │Committed │
56 ├─────────────────────────────┼─────────────────────────────┤
57 │MT-Level │MT-Safe │
58 └─────────────────────────────┴─────────────────────────────┘
59
61 mlib_ImageAndNot1_Inp(3MLIB), mlib_ImageAndNot2_Inp(3MLIB),
62 attributes(5)
63
64
65
66SunOS 5.11 30 Aug 2007 mlib_ImageAndNot(3MLIB)