1mlib_SignalQuant_U8S_F32S(3mMeLdIiBa)Lib Library Funcmtliiobn_sSignalQuant_U8S_F32S(3MLIB)
2
3
4

NAME

6       mlib_SignalQuant_U8S_F32S - float to 8-bit quantization
7

SYNOPSIS

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

DESCRIPTION

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

PARAMETERS

28       The function takes the following arguments:
29
30       dst       Output signal array in two-channel interleaved stereo format.
31
32
33       src       Input signal array in two-channel interleaved stereo format.
34
35
36       thresh    Array of 256 thresholds.
37
38
39       n         Number of samples in the input signal array.
40
41

RETURN VALUES

43       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
44       MLIB_FAILURE.
45

ATTRIBUTES

47       See attributes(5) for descriptions of the following attributes:
48
49
50
51
52       ┌─────────────────────────────┬─────────────────────────────┐
53       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
54       ├─────────────────────────────┼─────────────────────────────┤
55       │Interface Stability          │Committed                    │
56       ├─────────────────────────────┼─────────────────────────────┤
57       │MT-Level                     │MT-Safe                      │
58       └─────────────────────────────┴─────────────────────────────┘
59

SEE ALSO

61       attributes(5)
62
63
64
65SunOS 5.11                        2 Mar 2007  mlib_SignalQuant_U8S_F32S(3MLIB)
Impressum