1mlib_ImageConstOrNot_Inp(3MmLeIdBi)aLib Library Functmiloinbs_ImageConstOrNot_Inp(3MLIB)
2
3
4

NAME

6       mlib_ImageConstOrNot_Inp - OrNot with a constant, in place
7

SYNOPSIS

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

DESCRIPTION

17       The mlib_ImageConstOrNot_Inp() function computes the logical Not of the
18       source image and then takes the logical Or of that result with  a  con‐
19       stant on a pixel-by-pixel basis, in place.
20
21
22       It uses the following equation:
23
24         srcdst[x][y][i] = c[i] | (~srcdst[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       srcdst    Pointer to first source and destination image.
35
36
37       c         Array of constants to be applied to each pixel. c[i] contains
38                 the constant for channel i.
39
40

RETURN VALUES

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

ATTRIBUTES

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

SEE ALSO

60       mlib_ImageConstOrNot(3MLIB), attributes(5)
61
62
63
64SunOS 5.11                        2 Mar 2007   mlib_ImageConstOrNot_Inp(3MLIB)
Impressum