1mlib_MatrixAve_U8(3MLIB)  mediaLib Library Functions  mlib_MatrixAve_U8(3MLIB)
2
3
4

NAME

6       mlib_MatrixAve_U8,  mlib_MatrixAve_U8C, mlib_MatrixAve_S8, mlib_Matrix‐
7       Ave_S8C, mlib_MatrixAve_S16,  mlib_MatrixAve_S16C,  mlib_MatrixAve_S32,
8       mlib_MatrixAve_S32C - matrix average, in place
9

SYNOPSIS

11       cc [ flag... ] file... -lmlib [ library... ]
12       #include <mlib.h>
13
14       mlib_status mlib_MatrixAve_U8(mlib_u8 *xz,
15           const mlib_u8 *y, mlib_s32 m, mlib_s32 n);
16
17
18       mlib_status mlib_MatrixAve_U8C(mlib_u8 *xz,
19           const mlib_u8 *y, mlib_s32 m, mlib_s32 n);
20
21
22       mlib_status mlib_MatrixAve_S8(mlib_s8 *xz,
23           const mlib_s8 *y, mlib_s32 m, mlib_s32 n);
24
25
26       mlib_status mlib_MatrixAve_S8C(mlib_s8 *xz,
27           const mlib_s8 *y, mlib_s32 m, mlib_s32 n);
28
29
30       mlib_status mlib_MatrixAve_S16(mlib_s16 *xz,
31           const mlib_s16 *y, mlib_s32 m, mlib_s32 n);
32
33
34       mlib_status mlib_MatrixAve_S16C(mlib_s16 *xz,
35            const mlib_s16 *y, mlib_s32 m, mlib_s32 n);
36
37
38       mlib_status mlib_MatrixAve_S32(mlib_s32 *xz,
39            const mlib_s32 *y, mlib_s32 m, mlib_s32 n);
40
41
42       mlib_status mlib_MatrixAve_S32C(mlib_s32 *xz,
43            const mlib_s32 *y, mlib_s32 m, mlib_s32 n);
44
45

DESCRIPTION

47       Each of these functions performs an in-place averaging of two matrices.
48
49
50       It uses the following equation:
51
52         xz[i] = (xz[i] + y[i] + 1) / 2
53
54
55
56       where  i  = 0, 1, ..., (m*n - 1) for real data; i = 0, 1, ..., (m*n*2 -
57       1) for complex data.
58

PARAMETERS

60       Each of the functions takes the following arguments:
61
62       xz    Pointer to the first source and destination matrix.
63
64
65       y     Pointer to the second source matrix.
66
67
68       m     Number of rows in the matrices.
69
70
71       n     Number of columns in the matrices.
72
73

RETURN VALUES

75       Each of the functions returns MLIB_SUCCESS if successful. Otherwise  it
76       returns MLIB_FAILURE.
77

ATTRIBUTES

79       See attributes(5) for descriptions of the following attributes:
80
81
82
83
84       ┌─────────────────────────────┬─────────────────────────────┐
85       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
86       ├─────────────────────────────┼─────────────────────────────┤
87       │Interface Stability          │Committed                    │
88       ├─────────────────────────────┼─────────────────────────────┤
89       │MT-Level                     │MT-Safe                      │
90       └─────────────────────────────┴─────────────────────────────┘
91

SEE ALSO

93       mlib_MatrixAve_U8_U8(3MLIB), attributes(5)
94
95
96
97SunOS 5.11                        23 May 2007         mlib_MatrixAve_U8(3MLIB)
Impressum