1mlib_ImageSqrShift_Inp(3MLImBe)diaLib Library Functiomnlsib_ImageSqrShift_Inp(3MLIB)
2
3
4
6 mlib_ImageSqrShift_Inp - square with shifting, in place
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageSqrShift_Inp(mlib_image *srcdst, mlib_s32 shift);
13
14
16 The mlib_ImageSqrShift_Inp() function computes the square of each pixel
17 in the source image and scales the result by the shift factor, in
18 place.
19
20
21 It uses the following equation:
22
23 srcdst[x][y][i] = srcdst[x][y][i] * srcdst[x][y][i] * 2**(-shift)
24
25
27 The function takes the following arguments:
28
29 srcdst Pointer to source and destination image.
30
31
32 shift Right shifting factor. 0 ≤ shift ≤ 31.
33
34
36 The function returns MLIB_SUCCESS if successful. Otherwise it returns
37 MLIB_FAILURE.
38
40 See attributes(5) for descriptions of the following attributes:
41
42
43
44
45 ┌─────────────────────────────┬─────────────────────────────┐
46 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
47 ├─────────────────────────────┼─────────────────────────────┤
48 │Interface Stability │Committed │
49 ├─────────────────────────────┼─────────────────────────────┤
50 │MT-Level │MT-Safe │
51 └─────────────────────────────┴─────────────────────────────┘
52
54 mlib_ImageSqrShift(3MLIB), attributes(5)
55
56
57
58SunOS 5.11 2 Mar 2007 mlib_ImageSqrShift_Inp(3MLIB)