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

NAME

6       mlib_VectorMag_U8C,  mlib_VectorMag_S8C, mlib_VectorMag_S16C, mlib_Vec‐
7       torMag_S32C - vector complex magnitude
8

SYNOPSIS

10       cc [ flag... ] file... -lmlib [ library... ]
11       #include <mlib.h>
12
13       mlib_status mlib_VectorMag_U8C(mlib_d64 *m, const mlib_u8 *x,
14            mlib_s32 n);
15
16
17       mlib_status mlib_VectorMag_S8C(mlib_d64 *m, const mlib_s8 *x,
18            mlib_s32 n);
19
20
21       mlib_status mlib_VectorMag_S16C(mlib_d64 *m, const mlib_s16 *x,
22            mlib_s32 n);
23
24
25       mlib_status mlib_VectorMag_S32C(mlib_d64 *m, const mlib_s32 *x,
26            mlib_s32 n);
27
28

DESCRIPTION

30       Each of these functions computes the magnitude vector  of  the  complex
31       input vector.
32
33
34       The following equation is used:
35
36         m[i] = (x[2*i]**2 + x[2*i + 1]**2)**0.5
37
38
39
40       where i = 0, 1, ..., (n - 1).
41

PARAMETERS

43       Each of the functions takes the following arguments:
44
45       m    Pointer to the destination magnitude vector.
46
47
48       x    Pointer to the source vector
49
50
51       n    Number of elements in the vector.
52
53

RETURN VALUES

55       Each  of the functions returns MLIB_SUCCESS if successful. Otherwise it
56       returns MLIB_FAILURE.
57

ATTRIBUTES

59       See attributes(5) for descriptions of the following attributes:
60
61
62
63
64       ┌─────────────────────────────┬─────────────────────────────┐
65       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
66       ├─────────────────────────────┼─────────────────────────────┤
67       │Interface Stability          │Committed                    │
68       ├─────────────────────────────┼─────────────────────────────┤
69       │MT-Level                     │MT-Safe                      │
70       └─────────────────────────────┴─────────────────────────────┘
71

SEE ALSO

73       attributes(5)
74
75
76
77SunOS 5.11                        2 Mar 2007         mlib_VectorMag_U8C(3MLIB)
Impressum