soxr-code/src/fft4g64.c

36 lines
961 B
C
Raw Normal View History

2013-01-08 10:08:03 +01:00
/* SoX Resampler Library Copyright (c) 2007-13 robs@users.sourceforge.net
2012-12-03 18:25:33 +01:00
* Licence for this file: LGPL v2.1 See LICENCE for details. */
2016-05-23 08:55:16 +02:00
#include <stdlib.h>
2012-12-03 18:25:33 +01:00
#include "filter.h"
#include "fft4g.c"
#include "soxr-config.h"
2016-05-23 08:55:16 +02:00
#if WITH_CR64
2012-12-03 18:25:33 +01:00
static void * null(void) {return 0;}
static void nothing(void) {}
static void forward (int length, void * setup, double * H) {lsx_safe_rdft(length, 1, H); (void)setup;}
static void backward(int length, void * setup, double * H) {lsx_safe_rdft(length, -1, H); (void)setup;}
static int multiplier(void) {return 2;}
2016-05-23 08:55:16 +02:00
static int flags(void) {return 0;}
2012-12-03 18:25:33 +01:00
typedef void (* fn_t)(void);
fn_t _soxr_rdft64_cb[] = {
(fn_t)null,
(fn_t)null,
(fn_t)nothing,
(fn_t)forward,
(fn_t)forward,
(fn_t)backward,
(fn_t)backward,
(fn_t)_soxr_ordered_convolve,
(fn_t)_soxr_ordered_partial_convolve,
(fn_t)multiplier,
(fn_t)nothing,
2016-05-23 08:55:16 +02:00
(fn_t)malloc,
(fn_t)calloc,
(fn_t)free,
(fn_t)flags,
2012-12-03 18:25:33 +01:00
};
#endif