1mlib_ImageConstXor_Inp(3MLImBe)diaLib Library Functiomnlsib_ImageConstXor_Inp(3MLIB)
2
3
4
6 mlib_ImageConstXor_Inp - Xor with a constant, in place
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageConstXor_Inp(mlib_image *srcdst, const mlib_s32 *c);
13
14
16 The mlib_ImageConstXor_Inp() function computes the exclusive Or of the
17 source image with a constant on a pixel-by-pixel basis, in place.
18
19
20 It uses the following equation:
21
22 srcdst[x][y][i] = c[i] ^ srcdst[x][y][i]
23
24
25
26 The data type of the images can be MLIB_BIT, MLIB_BYTE, MLIB_SHORT,
27 MLIB_USHORT, or MLIB_INT.
28
30 The function takes the following arguments:
31
32 srcdst Pointer to first source and destination image.
33
34
35 c Array of constants to be applied to each pixel. c[i] contains
36 the constant for channel i.
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_ImageConstXor(3MLIB), attributes(5)
59
60
61
62SunOS 5.11 2 Mar 2007 mlib_ImageConstXor_Inp(3MLIB)