1mlib_ImageConstDiv_Fp(3MLIBm)ediaLib Library Functionmslib_ImageConstDiv_Fp(3MLIB)
2
3
4

NAME

6       mlib_ImageConstDiv_Fp - division into a constant
7

SYNOPSIS

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

DESCRIPTION

17       The  mlib_ImageConstDiv_Fp() function divides each pixel in a floating-
18       point image by a constant value on a pixel-by-pixel basis.
19
20
21       It uses the following equation:
22
23         dst[x][y][i] = c[i] / src[x][y][i]
24
25
26
27       where the operation follows the IEEE-754 standard.
28

PARAMETERS

30       The function takes the following arguments:
31
32       dst    Pointer to destination image.
33
34
35       src    Pointer to source image.
36
37
38       c      Constant into which each pixel is  divided.  c[i]  contains  the
39              constant for channel i.
40
41

RETURN VALUES

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

ATTRIBUTES

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

SEE ALSO

61       mlib_ImageConstDiv(3MLIB),            mlib_ImageConstDiv_Fp_Inp(3MLIB),
62       mlib_ImageConstDiv_Inp(3MLIB),          mlib_ImageConstDivShift(3MLIB),
63       mlib_ImageConstDivShift_Inp(3MLIB), attributes(5)
64
65
66
67SunOS 5.11                        2 Mar 2007      mlib_ImageConstDiv_Fp(3MLIB)
Impressum