fork/rust-sdks

git clone https://git.julia.blue/fork/rust-sdks

Théo Monnomsoxr-sys (#438)2e4d385

livekit/livekit-ffi@0.13.0
1.0 KiB23 linesraw
1/* SoX Resampler Library      Copyright (c) 2007-13 robs@users.sourceforge.net
2 * Licence for this file: LGPL v2.1                  See LICENCE for details. */
3
4void lsx_cdft(int, int, double *, int *, double *);
5void lsx_rdft(int, int, double *, int *, double *);
6void lsx_ddct(int, int, double *, int *, double *);
7void lsx_ddst(int, int, double *, int *, double *);
8void lsx_dfct(int, double *, double *, int *, double *);
9void lsx_dfst(int, double *, double *, int *, double *);
10
11void lsx_cdft_f(int, int, float *, int *, float *);
12void lsx_rdft_f(int, int, float *, int *, float *);
13void lsx_ddct_f(int, int, float *, int *, float *);
14void lsx_ddst_f(int, int, float *, int *, float *);
15void lsx_dfct_f(int, float *, float *, int *, float *);
16void lsx_dfst_f(int, float *, float *, int *, float *);
17
18#define dft_br_len(l) (2ul + (1ul << (int)(log(l / 2 + .5) / log(2.)) / 2))
19#define dft_sc_len(l) ((unsigned long)l / 2)
20
21/* Over-allocate h by 2 to use these macros */
22#define LSX_PACK(h, n)   h[1] = h[n]
23#define LSX_UNPACK(h, n) h[n] = h[1], h[n + 1] = h[1] = 0;