1mlib_ImageDivAlpha_Fp_Inp(3mMeLdIiBa)Lib Library Funcmtliiobn_sImageDivAlpha_Fp_Inp(3MLIB)
2
3
4

NAME

6       mlib_ImageDivAlpha_Fp_Inp - alpha channel division, in place
7

SYNOPSIS

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

DESCRIPTION

16       The  mlib_ImageDivAlpha_Fp_Inp()  function divides floating-point color
17       channels by the alpha channel on a pixel-by-pixel basis, in place.
18
19
20       It uses the following equation:
21
22         srcdst[x][y][c] = srcdst[x][y][c] / srcdst[x][y][a]
23
24
25
26       where c and a are the indices for the  color  channels  and  the  alpha
27       channel, respectively, so c != a.
28
29
30       The operation follows the IEEE-754 standard.
31

PARAMETERS

33       The function takes the following arguments:
34
35       srcdst    Pointer to source and destination image.
36
37
38       cmask     Channel  mask  to indicate the alpha channel. Each bit of the
39                 mask represents a channel in the image.  The  channel  corre‐
40                 sponding to the 1 bit of cmask is the alpha channel.
41
42

RETURN VALUES

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

ATTRIBUTES

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

SEE ALSO

62       mlib_ImageDivAlpha(3MLIB), mlib_ImageDivAlpha_Fp(3MLIB),  mlib_ImageDi‐
63       vAlpha_Inp(3MLIB), attributes(5)
64
65
66
67SunOS 5.11                        2 Mar 2007  mlib_ImageDivAlpha_Fp_Inp(3MLIB)
Impressum