1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- #define Nhc 8
- #define Na 7
- #define Np (Nhc+Na)
- #define Npc (1<<Nhc)
- #define Amask ((1<<Na)-1)
- #define Pmask ((1<<Np)-1)
- #define Nh 16
- #define Nb 16
- #define Nhxn 14
- #define Nhg (Nh-Nhxn)
- #define NLpScl 13
- typedef char BOOL;
- typedef short HWORD;
- typedef unsigned short UHWORD;
- typedef int WORD;
- typedef unsigned int UWORD;
- struct resample16_s;
- typedef struct {
- UHWORD LpScl;
- UHWORD Nwing;
- UHWORD Nmult;
- const HWORD *Imp;
- const HWORD *ImpD;
- } resample16_filter_t;
- typedef enum { RESAMPLE16_BASIC, RESAMPLE16_LOW, RESAMPLE16_MED } resample16_filter_e;
- WORD resample16(struct resample16_s *r, HWORD X[], int inCount, HWORD Y[]);
- struct resample16_s* resample16_create(float factor, resample16_filter_e filter, resample16_filter_t *custom, BOOL interp);
- void resample16_delete(struct resample16_s *r);
- void resample16_flush(struct resample16_s *r);
|