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

NAME

6       mlib_VectorAng_U8C,  mlib_VectorAng_S8C, mlib_VectorAng_S16C, mlib_Vec‐
7       torAng_S32C - vector complex phase (angle)
8

SYNOPSIS

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

DESCRIPTION

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

PARAMETERS

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

RETURN VALUES

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

ATTRIBUTES

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

SEE ALSO

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