Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
650c4300
Commit
650c4300
authored
Mar 26, 2014
by
Janne Grunau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aarch64: NEON float FFT
Approximately as fast as the ARM NEON version on Apple's A7.
parent
f9157463
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
483 additions
and
0 deletions
+483
-0
Makefile
libavcodec/aarch64/Makefile
+2
-0
fft_init_aarch64.c
libavcodec/aarch64/fft_init_aarch64.c
+37
-0
fft_neon.S
libavcodec/aarch64/fft_neon.S
+442
-0
fft.h
libavcodec/fft.h
+1
-0
fft_template.c
libavcodec/fft_template.c
+1
-0
No files found.
libavcodec/aarch64/Makefile
View file @
650c4300
OBJS-$(CONFIG_FFT)
+=
aarch64/fft_init_aarch64.o
OBJS-$(CONFIG_H264CHROMA)
+=
aarch64/h264chroma_init_aarch64.o
OBJS-$(CONFIG_H264DSP)
+=
aarch64/h264dsp_init_aarch64.o
OBJS-$(CONFIG_H264QPEL)
+=
aarch64/h264qpel_init_aarch64.o
...
...
@@ -10,6 +11,7 @@ OBJS-$(CONFIG_VC1_DECODER) += aarch64/vc1dsp_init_aarch64.o
ARMV8-OBJS-$(CONFIG_VIDEODSP)
+=
aarch64/videodsp.o
NEON-OBJS-$(CONFIG_FFT)
+=
aarch64/fft_neon.o
NEON-OBJS-$(CONFIG_H264CHROMA)
+=
aarch64/h264cmc_neon.o
NEON-OBJS-$(CONFIG_H264DSP)
+=
aarch64/h264dsp_neon.o
\
aarch64/h264idct_neon.o
...
...
libavcodec/aarch64/fft_init_aarch64.c
0 → 100644
View file @
650c4300
/*
* Copyright (c) 2009 Mans Rullgard <mans@mansr.com>
*
* This file is part of Libav.
*
* Libav 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.
*
* Libav 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 Libav; 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
;
}
}
libavcodec/aarch64/fft_neon.S
0 → 100644
View file @
650c4300
This diff is collapsed.
Click to expand it.
libavcodec/fft.h
View file @
650c4300
...
...
@@ -133,6 +133,7 @@ void ff_init_ff_cos_tabs(int index);
*/
int
ff_fft_init
(
FFTContext
*
s
,
int
nbits
,
int
inverse
);
void
ff_fft_init_aarch64
(
FFTContext
*
s
);
void
ff_fft_init_x86
(
FFTContext
*
s
);
void
ff_fft_init_arm
(
FFTContext
*
s
);
void
ff_fft_init_ppc
(
FFTContext
*
s
);
...
...
libavcodec/fft_template.c
View file @
650c4300
...
...
@@ -158,6 +158,7 @@ av_cold int ff_fft_init(FFTContext *s, int nbits, int inverse)
#endif
#if FFT_FLOAT
if
(
ARCH_AARCH64
)
ff_fft_init_aarch64
(
s
);
if
(
ARCH_ARM
)
ff_fft_init_arm
(
s
);
if
(
ARCH_PPC
)
ff_fft_init_ppc
(
s
);
if
(
ARCH_X86
)
ff_fft_init_x86
(
s
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment