1mlib_ImageConstMulShift_Inpm(e3dMiLaILBi)b Library Fumnlcitbi_oInmsageConstMulShift_Inp(3MLIB)
2
3
4

NAME

6       mlib_ImageConstMulShift_Inp - multiply with a constant, with shifting
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_status mlib_ImageConstMulShift_Inp(mlib_image *srcdst,
13            const mlib_s32 *c, mlib_s32 shift);
14
15

DESCRIPTION

17       The  mlib_ImageConstMulShift_Inp() function multiplies each pixel in an
18       image by a constant value on a  pixel-by-pixel  basis.  It  scales  the
19       result  by a right shift and writes the result to the destination image
20       on a pixel-by-pixel basis.
21
22
23       It uses the following equation:
24
25         srcdst[x][y][i] = c[i] * srcdst[x][y][i] * 2**(-shift)
26
27

PARAMETERS

29       The function takes the following arguments:
30
31       srcdst    Pointer to source and destination image.
32
33
34       c         Constant by which each pixel is multiplied. c[i] contains the
35                 constant for channel i.
36
37
38       shift     Right shifting factor. 0 ≤ shift ≤ 31.
39
40

RETURN VALUES

42       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
43       MLIB_FAILURE.
44

ATTRIBUTES

46       See attributes(5) for descriptions of the following attributes:
47
48
49
50
51       ┌─────────────────────────────┬─────────────────────────────┐
52       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
53       ├─────────────────────────────┼─────────────────────────────┤
54       │Interface Stability          │Committed                    │
55       ├─────────────────────────────┼─────────────────────────────┤
56       │MT-Level                     │MT-Safe                      │
57       └─────────────────────────────┴─────────────────────────────┘
58

SEE ALSO

60       mlib_ImageConstMul(3MLIB), mlib_ImageConstMul_Fp(3MLIB), mlib_ImageCon‐
61       stMul_Fp_Inp(3MLIB), mlib_ImageConstMul_Inp(3MLIB), mlib_ImageConstMul‐
62       Shift(3MLIB), attributes(5)
63
64
65
66SunOS 5.11                        2 Mar 2007mlib_ImageConstMulShift_Inp(3MLIB)
Impressum