summaryrefslogtreecommitdiff
path: root/libavutil/tx_float.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2019-07-27 18:54:20 +0100
committerLynne <dev@lynne.ee>2019-08-02 01:19:52 +0100
commit42e2319ba9b75c3ca55be7f18a0322ecb498ea97 (patch)
tree0ea27392acae99024413f7acf50e70d6f8034130 /libavutil/tx_float.c
parentf60b1211b2aa7b6e8902d64072b678b4ccd87e54 (diff)
lavu/tx: add support for double precision FFT and MDCT
Simply moves and templates the actual transforms to support an additional data type. Unlike the float version, which is equal or better than libfftw3f, double precision output is bit identical with libfftw3.
Diffstat (limited to 'libavutil/tx_float.c')
-rw-r--r--libavutil/tx_float.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/libavutil/tx_float.c b/libavutil/tx_float.c
new file mode 100644
index 0000000000..018f2a21ac
--- /dev/null
+++ b/libavutil/tx_float.c
@@ -0,0 +1,21 @@
+/*
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#define TX_FLOAT
+#include "tx_priv.h"
+#include "tx_template.c"