diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-22 23:05:56 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-22 23:06:24 +0200 |
commit | 13f4428915d611293c521f5466d08d3a55b290bf (patch) | |
tree | fd1d27b33f65d20789ca0c11afb52babb4e4ec4c /libavcodec/aarch64/fft_init_aarch64.c | |
parent | c7251fec39c5b54470bb295acfc81d89683843c7 (diff) | |
parent | 650c4300d94aa9398ff1dd4f454bf39eaa285f62 (diff) | |
download | ffmpeg-13f4428915d611293c521f5466d08d3a55b290bf.tar.gz |
Merge commit '650c4300d94aa9398ff1dd4f454bf39eaa285f62'
* commit '650c4300d94aa9398ff1dd4f454bf39eaa285f62':
aarch64: NEON float FFT
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/aarch64/fft_init_aarch64.c')
-rw-r--r-- | libavcodec/aarch64/fft_init_aarch64.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/libavcodec/aarch64/fft_init_aarch64.c b/libavcodec/aarch64/fft_init_aarch64.c new file mode 100644 index 0000000000..78a2703360 --- /dev/null +++ b/libavcodec/aarch64/fft_init_aarch64.c @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2009 Mans Rullgard <mans@mansr.com> + * + * 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 + */ + +#include "config.h" + +#include "libavutil/aarch64/cpu.h" +#include "libavcodec/fft.h" + +void ff_fft_permute_neon(FFTContext *s, FFTComplex *z); +void ff_fft_calc_neon(FFTContext *s, FFTComplex *z); + +av_cold void ff_fft_init_aarch64(FFTContext *s) +{ + int cpu_flags = av_get_cpu_flags(); + + if (have_neon(cpu_flags)) { + s->fft_permute = ff_fft_permute_neon; + s->fft_calc = ff_fft_calc_neon; + } +} |