1mlib_ImageMulShift_Inp(3MLImBe)diaLib Library Functiomnlsib_ImageMulShift_Inp(3MLIB)
2
3
4

NAME

6       mlib_ImageMulShift_Inp - multiplication, in place
7

SYNOPSIS

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

DESCRIPTION

17       The  mlib_ImageMulShift_Inp()  function  multiplies the pixel values of
18       the two source images in place. It scales the result by a  right  shift
19       and  writes  the  result  to  the destination image on a pixel-by-pixel
20       basis.
21
22
23       It uses the following equation:
24
25         src1dst[x][y][i] = src1dst[x][y][i] * src2[x][y][i] * 2**(-shift)
26
27

PARAMETERS

29       The function takes the following arguments:
30
31       src1dst    Pointer to source and destination image.
32
33
34       src2       Pointer to second source image.
35
36
37       shift      Right shifting factor. 0 ≤ shift ≤ 31.
38
39

RETURN VALUES

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

ATTRIBUTES

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

SEE ALSO

59       mlib_ImageMulShift(3MLIB), attributes(5)
60
61
62
63SunOS 5.11                        2 Mar 2007     mlib_ImageMulShift_Inp(3MLIB)
Impressum