1mlib_SignalIFFT_4(3MLIB)  mediaLib Library Functions  mlib_SignalIFFT_4(3MLIB)
2
3
4

NAME

6       mlib_SignalIFFT_4,         mlib_SignalIFFT_4_S16_S16,         mlib_Sig‐
7       nalIFFT_4_S16C_S16C, mlib_SignalIFFT_4_S16_S16C, mlib_SignalIFFT_4_S16,
8       mlib_SignalIFFT_4_S16C - signal Inverse Fast Fourier Transform (IFFT)
9

SYNOPSIS

11       cc [ flag... ] file... -lmlib [ library... ]
12       #include <mlib.h>
13
14       mlib_status mlib_SignalIFFT_4_S16_S16(mlib_s16 *dstr, mlib_s16 *dsti,
15            const mlib_s16 *srcr, const mlib_s16 *srci,
16            mlib_s32 order, mlib_s32 *scale);
17
18
19       mlib_status mlib_SignalIFFT_4_S16C_S16C(mlib_s16 *dstc,
20            const mlib_s16 *srcc,
21            mlib_s32 order, mlib_s32 *scale);
22
23
24       mlib_status mlib_SignalIFFT_4_S16_S16C(mlib_s16 *dstr,
25            const mlib_s16 *srcc,
26            mlib_s32 order, mlib_s32 *scale);
27
28
29       mlib_status mlib_SignalIFFT_4_S16(mlib_s16 *srcdstr,
30            mlib_s16 *srcdsti,
31            mlib_s32 order, mlib_s32 *scale);
32
33
34       mlib_status mlib_SignalIFFT_4_S16C(mlib_s16 *srcdstc,
35            mlib_s32 order,
36            mlib_s32 *scale);
37
38

DESCRIPTION

40       Each  of  the  functions  in  this  group performs Inverse Fast Fourier
41       Transform (IFFT).
42
43
44       The following equation is used for forward FFT:
45
46                   1   N-1
47         dst[k] = ---- SUM {src[n] * exp(-j2*PI*n*k/N)}
48                   C1  n=0
49
50
51
52       and the following equation is used for inverse FFT (IFFT):
53
54                   1   N-1
55         dst[n] = ---- SUM {src[k] * exp(j2*PI*n*k/N)}
56                   C2  k=0
57
58
59
60       where
61
62         k = 0, 1, ..., (N - 1)
63         n = 0, 1, ..., (N - 1)
64         N = 2**order
65
66
67
68       The signal FFT/IFFT functions  can  be  categorized  into  four  groups
69       according to the ScaleMode in the function names in the following form:
70
71         mlib_Signal[FFT|IFFT]_ScaleMode_OutType_InType_OpMode()
72         mlib_Signal[FFT|IFFT]_ScaleMode_DataType_OpMode()
73
74
75
76       The scaling factors C1 and C2 used in the equations are defined as fol‐
77       lows:
78
79           o      For ScaleMode = 1, C1 = 1 and C2 = 2**order.
80
81           o      For ScaleMode = 2, C1 = 2**order and C2 = 1.
82
83           o      For ScaleMode = 3, C1 = C2  =  2**(order/2)  when  order  is
84                  even,  or  C1  =  2**((order+1)/2) and C2 = 2**((order-1)/2)
85                  when order is odd.
86
87           o      For ScaleMode = 4, C1 = 2**P and C2 = 2**Q, where  P  and  Q
88                  are  adaptive scaling factors and are generated by the func‐
89                  tions.
90
91
92       For functions with only real parts for the source signal, the imaginary
93       parts  are  assumed  to be all zero. For functions with only real parts
94       for the destination signal, the  imaginary  parts  are  discarded.  The
95       functions  with only one data type in their names perform the operation
96       in place.
97

PARAMETERS

99       Each function takes some of the following arguments:
100
101       dstr       Destination signal array that contains the real parts.
102
103
104       dsti       Destination signal array that contains the imaginary parts.
105
106
107       srcr       Source signal array that contains the real parts.
108
109
110       srci       Source signal array that contains the imaginary parts.
111
112
113       dstc       Complex destination signal  array.  dstc[2*i]  contains  the
114                  real parts, and dstc[2*i+1] contains the imaginary parts.
115
116
117       srcc       Complex  source  signal  array.  srcc[2*i] contains the real
118                  parts, and srcc[2*i+1] contains the imaginary parts.
119
120
121       srcdstr    Source and destination signal array that contains  the  real
122                  parts.
123
124
125       srcdsti    Source and destination signal array that contains the imagi‐
126                  nary parts.
127
128
129       srcdstc    Complex source and destination  signal  array.  srcdstc[2*i]
130                  contains  the  real  parts,  and srcdstc[2*i+1] contains the
131                  imaginary parts.
132
133
134       order      Order of the transformation. The  base-2  logarithm  of  the
135                  number of data samples.
136
137
138       scale      Adaptive scaling factor.
139
140

RETURN VALUES

142       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
143       MLIB_FAILURE.
144

ATTRIBUTES

146       See attributes(5) for descriptions of the following attributes:
147
148
149
150
151       ┌─────────────────────────────┬─────────────────────────────┐
152       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
153       ├─────────────────────────────┼─────────────────────────────┤
154       │Interface Stability          │Committed                    │
155       ├─────────────────────────────┼─────────────────────────────┤
156       │MT-Level                     │MT-Safe                      │
157       └─────────────────────────────┴─────────────────────────────┘
158

SEE ALSO

160       mlib_SignalFFT_1(3MLIB),       mlib_SignalFFT_2(3MLIB),       mlib_Sig‐
161       nalFFT_3(3MLIB),   mlib_SignalFFT_4(3MLIB),   mlib_SignalIFFT_1(3MLIB),
162       mlib_SignalIFFT_2(3MLIB), mlib_SignalIFFT_3(3MLIB), attributes(5)
163
164
165
166SunOS 5.11                        2 Mar 2007          mlib_SignalIFFT_4(3MLIB)
Impressum