1mlib_ImageAdd(3MLIB) mediaLib Library Functions mlib_ImageAdd(3MLIB)
2
3
4
6 mlib_ImageAdd - computes the addition of two images on a pixel-by-pixel
7 basis
8
10 cc [ flag... ] file... -lmlib [ library... ]
11 #include <mlib.h>
12
13 mlib_status mlib_ImageAdd(mlib_image dst, const mlib_image *src1,
14 const mlib_image *src2);
15
16
18 The mlib_ImageAdd() function computes the addition of two images on a
19 pixel-by-pixel basis.
20
21
22 It uses the following equation:
23
24 dst[x][y][i] = src1[x][y][i] + src2[x][y][i]
25
26
28 The function takes the following arguments:
29
30 dst Pointer to destination image.
31
32
33 src1 Pointer to first source image.
34
35
36 src2 Pointer to second source image.
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_ImageAdd_Fp(3MLIB), mlib_ImageAdd_Fp_Inp(3MLIB),
59 mlib_ImageAdd_Inp(3MLIB), attributes(5)
60
61
62
63SunOS 5.11 2 Mar 2007 mlib_ImageAdd(3MLIB)