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
4c297249
Commit
4c297249
authored
Jan 30, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rdft: arm: Split RDFT initialization into a separate file
parent
97aec6e7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
13 deletions
+34
-13
Makefile
libavcodec/arm/Makefile
+1
-0
fft_init_arm.c
libavcodec/arm/fft_init_arm.c
+0
-13
rdft_init_arm.c
libavcodec/arm/rdft_init_arm.c
+33
-0
No files found.
libavcodec/arm/Makefile
View file @
4c297249
...
...
@@ -27,6 +27,7 @@ OBJS-$(CONFIG_MPEGVIDEO) += arm/mpegvideo_arm.o
OBJS-$(CONFIG_MPEGVIDEOENC)
+=
arm/mpegvideoencdsp_init_arm.o
OBJS-$(CONFIG_NEON_CLOBBER_TEST)
+=
arm/neontest.o
OBJS-$(CONFIG_PIXBLOCKDSP)
+=
arm/pixblockdsp_init_arm.o
OBJS-$(CONFIG_RDFT)
+=
arm/rdft_init_arm.o
OBJS-$(CONFIG_RV34DSP)
+=
arm/rv34dsp_init_arm.o
OBJS-$(CONFIG_VC1DSP)
+=
arm/vc1dsp_init_arm.o
OBJS-$(CONFIG_VIDEODSP)
+=
arm/videodsp_init_arm.o
...
...
libavcodec/arm/fft_init_arm.c
View file @
4c297249
...
...
@@ -23,7 +23,6 @@
#include "libavutil/arm/cpu.h"
#include "libavcodec/fft.h"
#include "libavcodec/rdft.h"
void
ff_fft_calc_vfp
(
FFTContext
*
s
,
FFTComplex
*
z
);
...
...
@@ -36,8 +35,6 @@ void ff_imdct_calc_neon(FFTContext *s, FFTSample *output, const FFTSample *input
void
ff_imdct_half_neon
(
FFTContext
*
s
,
FFTSample
*
output
,
const
FFTSample
*
input
);
void
ff_mdct_calc_neon
(
FFTContext
*
s
,
FFTSample
*
output
,
const
FFTSample
*
input
);
void
ff_rdft_calc_neon
(
struct
RDFTContext
*
s
,
FFTSample
*
z
);
av_cold
void
ff_fft_init_arm
(
FFTContext
*
s
)
{
int
cpu_flags
=
av_get_cpu_flags
();
...
...
@@ -60,13 +57,3 @@ av_cold void ff_fft_init_arm(FFTContext *s)
#endif
}
}
#if CONFIG_RDFT
av_cold
void
ff_rdft_init_arm
(
RDFTContext
*
s
)
{
int
cpu_flags
=
av_get_cpu_flags
();
if
(
have_neon
(
cpu_flags
))
s
->
rdft_calc
=
ff_rdft_calc_neon
;
}
#endif
libavcodec/arm/rdft_init_arm.c
0 → 100644
View file @
4c297249
/*
* 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 "libavutil/attributes.h"
#include "libavutil/cpu.h"
#include "libavutil/arm/cpu.h"
#include "libavcodec/rdft.h"
void
ff_rdft_calc_neon
(
struct
RDFTContext
*
s
,
FFTSample
*
z
);
av_cold
void
ff_rdft_init_arm
(
RDFTContext
*
s
)
{
int
cpu_flags
=
av_get_cpu_flags
();
if
(
have_neon
(
cpu_flags
))
s
->
rdft_calc
=
ff_rdft_calc_neon
;
}
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