1mlib_SignalLPCPerceptWeightm_eFd3i2a(L3iMbLILBi)brarmyliFbu_nScitginoanlsLPCPerceptWeight_F32(3MLIB)
2
3
4
6 mlib_SignalLPCPerceptWeight_F32 - perform perceptual weighting on input
7 signal
8
10 cc [ flag... ] file... -lmlib [ library... ]
11 #include <mlib.h>
12
13 mlib_status mlib_SignalLPCPerceptWeight_F32(mlib_f32 *sigwgt,
14 const mlib_f32 *signal, const mlib_f32 *lpc, mlib_f32 r1,
15 mlib_f32 r2, void *state);
16
17
19 The mlib_SignalLPCPerceptWeight_F32() function performs perceptual
20 weighting on input signal.
21
22
23 The perceptual weighting filter is defined as following.
24
25 A(z*r1)
26 W(z) = ---------
27 A(z*r2)
28
29
30
31 where A(z) is the inverse filter
32
33 M -i
34 A(z) = 1 - SUM a(i) * z
35 i=1
36
37
38
39 See G.723.1, G.728, G.729, G.729A, GSM EFR standards.
40
42 The function takes the following arguments:
43
44 sigwgt The weighted signal vector.
45
46
47 signal The input signal vector.
48
49
50 lpc The linear prediction coefficients.
51
52
53 r1 The perceptual weighting filter coefficient, it is treated as
54 1 if 0 is supplied.
55
56
57 r2 The perceptual weighting filter coefficient, it is treated as
58 1 if 0 is supplied.
59
60
61 state Pointer to the internal state structure.
62
63
65 The function returns MLIB_SUCCESS if successful. Otherwise it returns
66 MLIB_FAILURE.
67
69 See attributes(5) for descriptions of the following attributes:
70
71
72
73
74 ┌─────────────────────────────┬─────────────────────────────┐
75 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
76 ├─────────────────────────────┼─────────────────────────────┤
77 │Interface Stability │Committed │
78 ├─────────────────────────────┼─────────────────────────────┤
79 │MT-Level │MT-Safe │
80 └─────────────────────────────┴─────────────────────────────┘
81
83 mlib_SignalLPCPerceptWeightInit_F32(3MLIB), mlib_SignalLPCPer‐
84 ceptWeightFree_F32(3MLIB), attributes(5)
85
86
87
88SunOS 5.11 2 Mar 2m0l0i7b_SignalLPCPerceptWeight_F32(3MLIB)