1mlib_SignalConvertShift_F32m_eUd8i(a3LMiLbIBL)ibrarymlFiubn_cStiigonnaslConvertShift_F32_U8(3MLIB)
2
3
4

NAME

6       mlib_SignalConvertShift_F32_U8,         mlib_SignalConvertShift_F32_S8,
7       mlib_SignalConvertShift_F32_S16,       mlib_SignalConvertShift_F32_S32,
8       mlib_SignalConvertShift_F32S_U8S,     mlib_SignalConvertShift_F32S_S8S,
9       mlib_SignalConvertShift_F32S_S16S, mlib_SignalConvertShift_F32S_S32S  -
10       data type convert with shifting
11

SYNOPSIS

13       cc [ flag... ] file... -lmlib [ library... ]
14       #include <mlib.h>
15
16       mlib_status mlib_SignalConvertShift_F32_U8(mlib_f32 *dst, const mlib_u8 *src,
17            mlib_s32 shift, mlib_s32 n);
18
19
20       mlib_status mlib_SignalConvertShift_F32_S8(mlib_f32 *dst, const mlib_s8 *src,
21            mlib_s32 shift, mlib_s32 n);
22
23
24       mlib_status mlib_SignalConvertShift_F32_S16(mlib_f32 *dst, const mlib_s16 *src,
25            mlib_s32 shift, mlib_s32 n);
26
27
28       mlib_status mlib_SignalConvertShift_F32_S32(mlib_f32 *dst, const mlib_s32 *src,
29            mlib_s32 shift, mlib_s32 n);
30
31
32       mlib_status mlib_SignalConvertShift_F32S_U8S(mlib_f32 *dst, const mlib_u8 *src,
33            mlib_s32 shift, mlib_s32 n);
34
35
36       mlib_status mlib_SignalConvertShift_F32S_S8S(mlib_f32 *dst, const mlib_s8 *src,
37            mlib_s32 shift, mlib_s32 n);
38
39
40       mlib_status mlib_SignalConvertShift_F32S_S16S(mlib_f32 *dst, const mlib_s16 *src,
41            mlib_s32 shift, mlib_s32 n);
42
43
44       mlib_status mlib_SignalConvertShift_F32S_S32S(mlib_f32 *dst, const mlib_s32 *src,
45            mlib_s32 shift, mlib_s32 n);
46
47

DESCRIPTION

49       Each of these functions performs data type convert with shifting.
50
51
52       The following equation is used:
53
54         dst[i] = src[i] * 2**shift
55
56
57
58       See  the following table for available variations of this group of data
59       type convert functions.
60
61
62
63
64            Type [*]                F32                  F32S
65       ──────────────────────────────────────────────────────────────
66
67       U8                   Y
68       S8                   Y
69       ──────────────────────────────────────────────────────────────
70       S16                  Y
71       ──────────────────────────────────────────────────────────────
72       S32                  Y
73       ──────────────────────────────────────────────────────────────
74       U8S                                        Y
75       ──────────────────────────────────────────────────────────────
76       S8S                                        Y
77       ──────────────────────────────────────────────────────────────
78       S16S                                       Y
79       ──────────────────────────────────────────────────────────────
80       S32S                                       Y
81
82
83
84       [*] Each row represents a source data type. Each  column  represents  a
85       destination data type.
86

PARAMETERS

88       Each of the functions takes the following arguments:
89
90       dst      Destination signal array.
91
92
93       src      Source signal array.
94
95
96       shift    Left shifting factor.
97
98
99       n        Number of samples in the source signal arrays.
100
101

RETURN VALUES

103       Each  of the functions returns MLIB_SUCCESS if successful. Otherwise it
104       returns MLIB_FAILURE.
105

ATTRIBUTES

107       See attributes(5) for descriptions of the following attributes:
108
109
110
111
112       ┌─────────────────────────────┬─────────────────────────────┐
113       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
114       ├─────────────────────────────┼─────────────────────────────┤
115       │Interface Stability          │Committed                    │
116       ├─────────────────────────────┼─────────────────────────────┤
117       │MT-Level                     │MT-Safe                      │
118       └─────────────────────────────┴─────────────────────────────┘
119

SEE ALSO

121       mlib_SignalConvertShift_U8_S8_Sat(3MLIB), attributes(5)
122
123
124
125SunOS 5.11                        2 Mar 20m0l7ib_SignalConvertShift_F32_U8(3MLIB)
Impressum