Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
d0aa4891
Commit
d0aa4891
authored
Sep 12, 2012
by
Simon Morlat
Browse files
fix resampler neon optim problem
parent
4a583d24
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/msresample.c
View file @
d0aa4891
...
...
@@ -62,17 +62,17 @@ static void resample_init(MSFilter *obj){
obj
->
data
=
resample_data_new
();
#ifdef SPEEX_LIB_SET_CPU_FEATURES
int
cpuFeatures
=
0
;
#ifdef __
ARM_NEON
__
#ifdef __
arm
__
#ifdef ANDROID
if
(
android_getCpuFamily
()
==
ANDROID_CPU_FAMILY_ARM
&&
(
android_getCpuFeatures
()
&
ANDROID_CPU_ARM_FEATURE_NEON
)
!=
0
)
{
cpuFeatures
=
SPEEX_LIB_CPU_FEATURE_NEON
;
}
#el
se
#el
if defined(__ARM_NEON__)
cpuFeatures
=
SPEEX_LIB_CPU_FEATURE_NEON
;
#endif
#endif
ms_message
(
"speex_lib_ctl init with neon ? %d"
,
(
cpuFeatures
==
SPEEX_LIB_CPU_FEATURE_NEON
));
#endif
speex_lib_ctl
(
SPEEX_LIB_SET_CPU_FEATURES
,
&
cpuFeatures
);
#else
ms_message
(
"speex_lib_ctl does not support SPEEX_LIB_CPU_FEATURE_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