1mlib_ImageConstMul_Fp(3MLIBm)ediaLib Library Functionmslib_ImageConstMul_Fp(3MLIB)
2
3
4
6 mlib_ImageConstMul_Fp - multiply with a constant
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageConstMul_Fp(mlib_image *dst, const mlib_image *src,
13 const mlib_d64 *c);
14
15
17 The mlib_ImageConstMul_Fp() function multiplies each pixel in a float‐
18 ing-point image by a constant value 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
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 Constant by which each pixel is multiplied. c[i] contains the
36 constant for channel i.
37
38
40 The function returns MLIB_SUCCESS if successful. Otherwise it returns
41 MLIB_FAILURE.
42
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
58 mlib_ImageConstMul(3MLIB), mlib_ImageConstMul_Fp_Inp(3MLIB),
59 mlib_ImageConstMul_Inp(3MLIB), mlib_ImageConstMulShift(3MLIB),
60 mlib_ImageConstMulShift_Inp(3MLIB), attributes(5)
61
62
63
64SunOS 5.11 2 Mar 2007 mlib_ImageConstMul_Fp(3MLIB)