1mlib_ImageAndNot1_Inp(3MLIBm)ediaLib Library Functionmslib_ImageAndNot1_Inp(3MLIB)
2
3
4
6 mlib_ImageAndNot1_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_ImageAndNot1_Inp(mlib_image *src1dst,
14 const mlib_image *src2);
15
16
18 The mlib_ImageAndNot1_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 first source image. It uses the following equation:
22
23 src1dst[x][y][i] = src1dst[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 src1dst Pointer to first source and destination image.
34
35
36 src2 Pointer to second source image.
37
38
40 The function returns MLIB_SUCCESS if successful. Otherwise it returns
41 MLIB_FAILURE.
42
44 See attributes(5) for descriptions of the following attributes:
45
46
47
48
49 ┌─────────────────────────────┬─────────────────────────────┐
50 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
51 ├─────────────────────────────┼─────────────────────────────┤
52 │Interface Stability │Committed │
53 ├─────────────────────────────┼─────────────────────────────┤
54 │MT-Level │MT-Safe │
55 └─────────────────────────────┴─────────────────────────────┘
56
58 mlib_ImageAndNot(3MLIB), mlib_ImageAndNot2_Inp(3MLIB), attributes(5)
59
60
61
62SunOS 5.11 2 Mar 2007 mlib_ImageAndNot1_Inp(3MLIB)