-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyGFT.pxd
executable file
·24 lines (20 loc) · 1018 Bytes
/
pyGFT.pxd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This software is copyright (c) 2010 UTI Limited Partnership.
# The original authors are Robert A. Brown, M. Louis Lauzon
# and Richard Frayne. This software is licensed in the terms
# set forth in the "FST License Notice.txt" file, which is
# included in the LICENSE directory of this distribution.
cdef extern from "string.h":
void* memcpy(void *s1, void *s2, size_t n)
cdef extern from "stdlib.h":
void free(void *ptr)
cdef extern from "gft.h":
int gft_1dSizeOfPartitions(unsigned int N)
int* gft_1dPartitions(unsigned int N)
int* gft_1dRealPartitions(unsigned int N)
void gaussian(double *win, int N, int freq)
void box(double *win, int N, int freq)
double *windows(int N, void *window)
double *windowsFromPars(int N, void *window, int *pars)
void gft_1dComplex64(double *signal, unsigned int N, double *win, int *pars, int stride)
void gft_2dComplex64(double *image, unsigned int N, unsigned int M, void *window)
double *gft_1d_interpolateNN(double *signal, unsigned int N, unsigned int M)