1mlib_ImageConstNotXor(3MLIBm)ediaLib Library Functionmslib_ImageConstNotXor(3MLIB)
2
3
4

NAME

6       mlib_ImageConstNotXor - NotXor with a constant
7

SYNOPSIS

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

DESCRIPTION

17       The  mlib_ImageConstNotXor() function computes the logical exclusive Or
18       of the source image with a constant and then takes the logical  Not  of
19       that result on a pixel-by-pixel basis.
20
21
22       It uses the following equation:
23
24         dst[x][y][i] = ~(c[i] ^ src[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

PARAMETERS

32       The function takes the following arguments:
33
34       dst    Pointer to destination image.
35
36
37       src    Pointer to source image.
38
39
40       c      Array of constants to be applied to each  pixel.  c[i]  contains
41              the constant for channel i.
42
43

RETURN VALUES

45       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
46       MLIB_FAILURE.
47

ATTRIBUTES

49       See attributes(5) for descriptions of the following attributes:
50
51
52
53
54       ┌─────────────────────────────┬─────────────────────────────┐
55       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
56       ├─────────────────────────────┼─────────────────────────────┤
57       │Interface Stability          │Committed                    │
58       ├─────────────────────────────┼─────────────────────────────┤
59       │MT-Level                     │MT-Safe                      │
60       └─────────────────────────────┴─────────────────────────────┘
61

SEE ALSO

63       mlib_ImageConstNotXor_Inp(3MLIB), attributes(5)
64
65
66
67SunOS 5.11                        2 Mar 2007      mlib_ImageConstNotXor(3MLIB)
Impressum