1mlib_SignalConv_S16_S16_Satm(e3dMiLaILBi)b Library Fumnlcitbi_oSnisgnalConv_S16_S16_Sat(3MLIB)
2
3
4

NAME

6       mlib_SignalConv_S16_S16_Sat,  mlib_SignalConv_S16S_S16S_Sat,  mlib_Sig‐
7       nalConv_F32_F32, mlib_SignalConv_F32S_F32S - signal convolution
8

SYNOPSIS

10       cc [ flag... ] file... -lmlib [ library... ]
11       #include <mlib.h>
12
13       mlib_status mlib_SignalConv_S16_S16_Sat(mlib_s16 *dst,
14            const mlib_s16 *src1, const mlib_s16 *src2, mlib_s32 m,
15            mlib_s32 n);
16
17
18       mlib_status mlib_SignalConv_S16S_S16S_Sat(mlib_s16 *dst,
19            const mlib_s16 *src1, const mlib_s16 *src2, mlib_s32 m,
20            mlib_s32 n);
21
22
23       mlib_status mlib_SignalConv_F32_F32(mlib_f32 *dst,
24            const mlib_f32 *src1, const mlib_f32 *src2, mlib_s32 m,
25            mlib_s32 n);
26
27
28       mlib_status mlib_SignalConv_F32S_F32S(mlib_f32 *dst,
29            const mlib_f32 *src1, const mlib_f32 *src2, mlib_s32 m,
30            mlib_s32 n);
31
32

DESCRIPTION

34       Each of these functions performs convolution.
35
36
37       For monaural signals, the following equation is used:
38
39                  m-1
40         dst[i] = SUM (src1[j] * src2[i - j])  if m ≤ n
41                  j=0
42
43                  n-1
44         dst[i] = SUM (src2[j] * src1[i - j])  if m > n
45                  j=0
46
47
48
49       where i = 0, 1, ..., (m + n - 2).
50
51
52       For stereo signals, the following equation is used:
53
54                        m-1
55         dst[2*i]     = SUM (src1[2*j] * src2[2*(i - j)])
56                        j=0
57
58                        m-1
59         dst[2*i + 1] = SUM (src1[2*j + 1] * src2[2*(i - j) + 1])
60                        j=0
61
62
63
64       if m ≤ n, or
65
66                        n-1
67         dst[2*i]     = SUM (src2[2*j] * src1[2*(i - j)])
68                        j=0
69
70                        n-1
71         dst[2*i + 1] = SUM (src2[2*j + 1] * src1[2*(i - j) + 1])
72                        j=0
73
74
75
76       if m > n; where i = 0, 1, ..., (m + n - 2).
77

PARAMETERS

79       Each of the functions takes the following arguments:
80
81       dst     Destination signal array.
82
83
84       src1    First source signal array.
85
86
87       src2    Second source signal array.
88
89
90       m       Number of samples in the first source signal array.
91
92
93       n       Number of samples in the second source signal arrays.
94
95

RETURN VALUES

97       Each of the functions returns MLIB_SUCCESS if successful. Otherwise  it
98       returns MLIB_FAILURE.
99

ATTRIBUTES

101       See attributes(5) for descriptions of the following attributes:
102
103
104
105
106       ┌─────────────────────────────┬─────────────────────────────┐
107       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
108       ├─────────────────────────────┼─────────────────────────────┤
109       │Interface Stability          │Committed                    │
110       ├─────────────────────────────┼─────────────────────────────┤
111       │MT-Level                     │MT-Safe                      │
112       └─────────────────────────────┴─────────────────────────────┘
113

SEE ALSO

115       attributes(5)
116
117
118
119SunOS 5.11                        2 Mar 2007mlib_SignalConv_S16_S16_Sat(3MLIB)
Impressum