Name | Synopsis | Description | Parameters | Return Values | Attributes | See Also
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_SignalConvertShift_F32_U8(mlib_f32 *dst, const mlib_u8 *src,
     mlib_s32 shift, mlib_s32 n);
mlib_status mlib_SignalConvertShift_F32_S8(mlib_f32 *dst, const mlib_s8 *src,
     mlib_s32 shift, mlib_s32 n);
mlib_status mlib_SignalConvertShift_F32_S16(mlib_f32 *dst, const mlib_s16 *src,
     mlib_s32 shift, mlib_s32 n);
mlib_status mlib_SignalConvertShift_F32_S32(mlib_f32 *dst, const mlib_s32 *src,
     mlib_s32 shift, mlib_s32 n);
mlib_status mlib_SignalConvertShift_F32S_U8S(mlib_f32 *dst, const mlib_u8 *src,
     mlib_s32 shift, mlib_s32 n);
mlib_status mlib_SignalConvertShift_F32S_S8S(mlib_f32 *dst, const mlib_s8 *src,
     mlib_s32 shift, mlib_s32 n);
mlib_status mlib_SignalConvertShift_F32S_S16S(mlib_f32 *dst, const mlib_s16 *src,
     mlib_s32 shift, mlib_s32 n);
mlib_status mlib_SignalConvertShift_F32S_S32S(mlib_f32 *dst, const mlib_s32 *src,
     mlib_s32 shift, mlib_s32 n);
dst[i] = src[i] * 2**shift
See the following table for available variations of this group of data type convert functions.
| 
 Type [*]  | 
 F32  | 
 F32S  | 
|---|---|---|
| 
 U8  | 
 Y  | |
| 
 S8  | 
 Y  | |
| 
 S16  | 
 Y  | |
| 
 S32  | 
 Y  | |
| 
 U8S  | 
 Y  | 
|
| 
 S8S  | 
 Y  | 
|
| 
 S16S  | 
 Y  | 
|
| 
 S32S  | 
 Y  | 
[*] Each row represents a source data type. Each column represents a destination data type.
Each of the functions takes the following arguments:
Destination signal array.
Source signal array.
Left shifting factor.
Number of samples in the source signal arrays.
Each of the functions returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
See attributes(5) for descriptions of the following attributes:
| 
 ATTRIBUTE TYPE  | 
 ATTRIBUTE VALUE  | 
|---|---|
| 
 Interface Stability  | 
 Committed  | 
| 
 MT-Level  | 
 MT-Safe  | 
Name | Synopsis | Description | Parameters | Return Values | Attributes | See Also