1mlib_ImageXor(3MLIB)      mediaLib Library Functions      mlib_ImageXor(3MLIB)
2
3
4

NAME

6       mlib_ImageXor - Xor
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_status mlib_ImageXor(mlib_image *dst, const mlib_image *src1,
13            const mlib_image *src2);
14
15

DESCRIPTION

17       The  mlib_ImageXor()  function  computes  the exclusive Or of the first
18       source image with the second source image on a pixel-by-pixel basis.
19
20
21       It uses the following 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

PARAMETERS

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

RETURN VALUES

43       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
44       MLIB_FAILURE.
45

ATTRIBUTES

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

SEE ALSO

61       mlib_ImageXor_Inp(3MLIB), attributes(5)
62
63
64
65SunOS 5.11                        2 Mar 2007              mlib_ImageXor(3MLIB)
Impressum