1mlib_ImageConstMulShift(3MLmIeBd)iaLib Library Functimolnisb_ImageConstMulShift(3MLIB)
2
3
4

NAME

6       mlib_ImageConstMulShift - multiply with a constant, with shifting
7

SYNOPSIS

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

DESCRIPTION

17       The  mlib_ImageConstMulShift()  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         dst[x][y][i] = c[i] * src[x][y][i] * 2**(-shift)
26
27

PARAMETERS

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

RETURN VALUES

45       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
46       MLIB_FAILURE.
47

ATTRIBUTES

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

SEE ALSO

63       mlib_ImageConstMul(3MLIB), mlib_ImageConstMul_Fp(3MLIB), mlib_ImageCon‐
64       stMul_Fp_Inp(3MLIB), mlib_ImageConstMul_Inp(3MLIB), mlib_ImageConstMul‐
65       Shift_Inp(3MLIB), attributes(5)
66
67
68
69SunOS 5.11                        2 Mar 2007    mlib_ImageConstMulShift(3MLIB)
Impressum