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

NAME

6       mlib_VectorSet_U8,   mlib_VectorSet_U8C,  mlib_VectorSet_S8,  mlib_Vec‐
7       torSet_S8C,    mlib_VectorSet_S16,    mlib_VectorSet_S16C,    mlib_Vec‐
8       torSet_S32, mlib_VectorSet_S32C - set vector to specified value
9

SYNOPSIS

11       cc [ flag... ] file... -lmlib [ library... ]
12       #include <mlib.h>
13
14       mlib_status mlib_VectorSet_U8(mlib_u8 *z, const mlib_u8 *c,
15            mlib_s32 n);
16
17
18       mlib_status mlib_VectorSet_U8C(mlib_u8 *z, const mlib_u8 *c,
19            mlib_s32 n);
20
21
22       mlib_status mlib_VectorSet_S8(mlib_s8 *z, const mlib_s8 *c,
23            mlib_s32 n);
24
25
26       mlib_status mlib_VectorSet_S8C(mlib_s8 *z, const mlib_s8 *c,
27            mlib_s32 n);
28
29
30       mlib_status mlib_VectorSet_S16(mlib_s16 *z, const mlib_s16 *c,
31            mlib_s32 n);
32
33
34       mlib_status mlib_VectorSet_S16C(mlib_s16 *z, const mlib_s16 *c,
35            mlib_s32 n);
36
37
38       mlib_status mlib_VectorSet_S32(mlib_s32 *z, const mlib_s32 *c,
39            mlib_s32 n);
40
41
42       mlib_status mlib_VectorSet_S32C(mlib_s32 *z, const mlib_s32 *c,
43            mlib_s32 n);
44
45

DESCRIPTION

47       Each of these functions sets a vector to a specified value.
48
49
50       For real data, the following equation is used:
51
52         z[i] = c[0]
53
54
55
56       where i = 0, 1, ..., (n - 1).
57
58
59       For complex data, the following equation is used:
60
61         z[2*i]     = c[0]
62         z[2*i + 1] = c[1]
63
64
65
66       where i = 0, 1, ..., (n - 1).
67

PARAMETERS

69       Each of the functions takes the following arguments:
70
71       z    Pointer to the first element of the destination vector.
72
73
74       c    Pointer  to the source scalar. When the function is used with com‐
75            plex data types, c[0] contains the scaling  factor  for  the  real
76            part, and c[1] contains the scaling factor for the imaginary part.
77
78
79       n    Number of elements in the vector.
80
81

RETURN VALUES

83       Each  of the functions returns MLIB_SUCCESS if successful. Otherwise it
84       returns MLIB_FAILURE.
85

ATTRIBUTES

87       See attributes(5) for descriptions of the following attributes:
88
89
90
91
92       ┌─────────────────────────────┬─────────────────────────────┐
93       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
94       ├─────────────────────────────┼─────────────────────────────┤
95       │Interface Stability          │Committed                    │
96       ├─────────────────────────────┼─────────────────────────────┤
97       │MT-Level                     │MT-Safe                      │
98       └─────────────────────────────┴─────────────────────────────┘
99

SEE ALSO

101       attributes(5)
102
103
104
105SunOS 5.11                        2 Mar 2007          mlib_VectorSet_U8(3MLIB)
Impressum