1mlib_SignalQuant2_S16_F32(3mMeLdIiBa)Lib Library Funcmtliiobn_sSignalQuant2_S16_F32(3MLIB)
2
3
4

NAME

6       mlib_SignalQuant2_S16_F32 - float to 16-bit quantization
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_status mlib_SignalQuant2_S16_F32(mlib_s16 *dst,
13            const mlib_f32 *src, const mlib_f32 thresh, mlib_s32 length,
14            mlib_s16 offset, mlib_s32 n);
15
16

DESCRIPTION

18       The  mlib_SignalQuant2_S16_F32()  function  quantizes a signal array by
19       using the following equation:
20
21         X = x(n)                  n = 0, 1, ...
22         Z = z(n)                  n = 0, 1, ...
23           = offset                for x(n) < t(0)
24           = offset + k            for t(k) ≤ x(n) < t(k+1)
25           = offset + length - 1   for x(n) ≥ t(length - 1)
26
27

PARAMETERS

29       The function takes the following arguments:
30
31       dst       Output signal array
32
33
34       src       Input signal array .
35
36
37       thresh    Array of thresholds.
38
39
40       length    Length of the array of thresholds.
41
42
43       offset    Offset for thresholds.
44
45
46       n         Number of samples in the input signal array.
47
48

RETURN VALUES

50       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
51       MLIB_FAILURE.
52

ATTRIBUTES

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

SEE ALSO

68       attributes(5)
69
70
71
72SunOS 5.11                        2 Mar 2007  mlib_SignalQuant2_S16_F32(3MLIB)
Impressum