1mlib_ImageConstSub_Fp_Inp(3mMeLdIiBa)Lib Library Funcmtliiobn_sImageConstSub_Fp_Inp(3MLIB)
2
3
4
6 mlib_ImageConstSub_Fp_Inp - subtraction with a constant
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageConstSub_Fp_Inp(mlib_image *srcdst,
13 const mlib_d64 *c);
14
15
17 The mlib_ImageConstSub_Fp_Inp() function subtracts a floating-point
18 image pixel from a constant 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 Array of constants from which each pixel is subtracted by
33 channel. 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_ImageConstSub(3MLIB), mlib_ImageConstSub_Fp(3MLIB), mlib_ImageCon‐
56 stSub_Inp(3MLIB), attributes(5)
57
58
59
60SunOS 5.11 2 Mar 2007 mlib_ImageConstSub_Fp_Inp(3MLIB)