1mlib_SignalQuant_U8_S16(3MLmIeBd)iaLib Library Functimolnisb_SignalQuant_U8_S16(3MLIB)
2
3
4

NAME

6       mlib_SignalQuant_U8_S16,  mlib_SignalQuant_U8S_S16S  -  16-bit to 8-bit
7       quantization
8

SYNOPSIS

10       cc [ flag... ] file... -lmlib [ library... ]
11       #include <mlib.h>
12
13       mlib_status mlib_SignalQuant_U8_S16(mlib_u8 *dst,
14            const mlib_s16 *src, const mlib_s16 *thresh, mlib_s32 n);
15
16
17       mlib_status mlib_SignalQuant_U8S_S16S(mlib_u8 *dst,
18            const mlib_s16 *src, const mlib_s16 *thresh, mlib_s32 n);
19
20

DESCRIPTION

22       Each of these functions quantizes a signal array by using the following
23       equation:
24
25         X = x(n)  n = 0, 1, ...
26         Z = z(n)  n = 0, 1, ...
27           =   0   for x(n) < t(0)
28           =   k   for t(k) ≤ x(n) < t(k+1)
29           = 255   for x(n) ≥ t(255)
30
31

PARAMETERS

33       Each of the functions takes the following arguments:
34
35       dst       Output signal array.
36
37
38       src       Input signal array.
39
40
41       thresh    Array of 256 thresholds.
42
43
44       n         Number of samples in the input signal array.
45
46

RETURN VALUES

48       Each  of the functions returns MLIB_SUCCESS if successful. Otherwise it
49       returns MLIB_FAILURE.
50

ATTRIBUTES

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

SEE ALSO

66       attributes(5)
67
68
69
70SunOS 5.11                        2 Mar 2007    mlib_SignalQuant_U8_S16(3MLIB)
Impressum