1mlib_ImageDivAlpha_Fp(3MLIBm)ediaLib Library Functionmslib_ImageDivAlpha_Fp(3MLIB)
2
3
4

NAME

6       mlib_ImageDivAlpha_Fp - alpha channel division
7

SYNOPSIS

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

DESCRIPTION

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

PARAMETERS

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

RETURN VALUES

48       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
49       MLIB_FAILURE.
50

ATTRIBUTES

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

SEE ALSO

66       mlib_ImageDivAlpha(3MLIB),            mlib_ImageDivAlpha_Fp_Inp(3MLIB),
67       mlib_ImageDivAlpha_Inp(3MLIB), attributes(5)
68
69
70
71SunOS 5.11                        2 Mar 2007      mlib_ImageDivAlpha_Fp(3MLIB)
Impressum