1mlib_ImageConstAdd_Fp_Inp(3mMeLdIiBa)Lib Library Funcmtliiobn_sImageConstAdd_Fp_Inp(3MLIB)
2
3
4
6 mlib_ImageConstAdd_Fp_Inp - addition with a constant
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageConstAdd_Fp_Inp(mlib_image *srcdst,
13 const mlib_d64 *c);
14
15
17 The mlib_ImageConstAdd_Fp_Inp() function adds a constant to a floating-
18 point image on a pixel-by-pixel basis, in place.
19
20
21 It uses the following equation:
22
23 srcdst[x][y][i] = c[i] + srcdst[x][y][i]
24
25
27 The function takes the following arguments:
28
29 srcdst Pointer to source and destination image.
30
31
32 c An array of constants to be added to each pixel by channel.
33 c[i] contains the constant for channel i.
34
35
37 The function returns MLIB_SUCCESS if successful. Otherwise it returns
38 MLIB_FAILURE.
39
41 See attributes(5) for descriptions of the following attributes:
42
43
44
45
46 ┌─────────────────────────────┬─────────────────────────────┐
47 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
48 ├─────────────────────────────┼─────────────────────────────┤
49 │Interface Stability │Committed │
50 ├─────────────────────────────┼─────────────────────────────┤
51 │MT-Level │MT-Safe │
52 └─────────────────────────────┴─────────────────────────────┘
53
55 mlib_ImageConstAdd(3MLIB), mlib_ImageConstAdd_Fp(3MLIB), mlib_ImageCon‐
56 stAdd_Inp(3MLIB), attributes(5)
57
58
59
60SunOS 5.11 2 Mar 2007 mlib_ImageConstAdd_Fp_Inp(3MLIB)