1mlib_ImageConstAdd_Fp(3MLIBm)ediaLib Library Functionmslib_ImageConstAdd_Fp(3MLIB)
2
3
4

NAME

6       mlib_ImageConstAdd_Fp - addition with a constant
7

SYNOPSIS

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

DESCRIPTION

17       The  mlib_ImageConstAdd_Fp()  function  adds  a constant to a floating-
18       point image on a pixel-by-pixel basis.
19
20
21       It uses the following equation:
22
23         dst[x][y][i] = c[i] + src[x][y][i]
24
25

PARAMETERS

27       The function takes the following arguments:
28
29       dst    Pointer to destination image.
30
31
32       src    Pointer to source image.
33
34
35       c      An array of constants to be added to each pixel by channel. c[i]
36              contains the constant for channel i.
37
38

RETURN VALUES

40       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
41       MLIB_FAILURE.
42

ATTRIBUTES

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

SEE ALSO

58       mlib_ImageConstAdd(3MLIB),            mlib_ImageConstAdd_Fp_Inp(3MLIB),
59       mlib_ImageConstAdd_Inp(3MLIB), attributes(5)
60
61
62
63SunOS 5.11                        2 Mar 2007      mlib_ImageConstAdd_Fp(3MLIB)
Impressum