Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
17940740
Commit
17940740
authored
Jul 05, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for NEON at run-time in audio converter
Also disable the sub-standard FL32 -> FI32 converter.
parent
621f7cd4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
modules/arm_neon/Modules.am
modules/arm_neon/Modules.am
+0
-2
modules/arm_neon/audio_format.c
modules/arm_neon/audio_format.c
+8
-2
No files found.
modules/arm_neon/Modules.am
View file @
17940740
...
...
@@ -2,8 +2,6 @@
# without this. (This is the case with iOS).
LIBTOOL=@LIBTOOL@ --tag=CC
AM_CFLAGS += $(NEON_CFLAGS)
libaudio_format_neon_plugin_la_SOURCES = \
s32_s16.S \
audio_format.c
...
...
modules/arm_neon/audio_format.c
View file @
17940740
...
...
@@ -26,6 +26,7 @@
#include <vlc_plugin.h>
#include <vlc_aout.h>
#include <vlc_filter.h>
#include <vlc_cpu.h>
#include <assert.h>
...
...
@@ -37,18 +38,21 @@ vlc_module_begin ()
set_callbacks
(
Open
,
NULL
)
vlc_module_end
()
static
block_t
*
Do_F32_S32
(
filter_t
*
,
block_t
*
);
//
static block_t *Do_F32_S32 (filter_t *, block_t *);
static
block_t
*
Do_S32_S16
(
filter_t
*
,
block_t
*
);
static
int
Open
(
vlc_object_t
*
obj
)
{
filter_t
*
filter
=
(
filter_t
*
)
obj
;
if
(
!
(
vlc_CPU
()
&
CPU_CAPABILITY_NEON
))
return
VLC_EGENERIC
;
if
(
!
AOUT_FMTS_SIMILAR
(
&
filter
->
fmt_in
.
audio
,
&
filter
->
fmt_out
.
audio
))
return
VLC_EGENERIC
;
switch
(
filter
->
fmt_in
.
audio
.
i_format
)
{
#if 0
case VLC_CODEC_FL32:
switch (filter->fmt_out.audio.i_format)
{
...
...
@@ -59,7 +63,7 @@ static int Open (vlc_object_t *obj)
return VLC_EGENERIC;
}
break;
#endif
case
VLC_CODEC_FI32
:
switch
(
filter
->
fmt_out
.
audio
.
i_format
)
{
...
...
@@ -76,6 +80,7 @@ static int Open (vlc_object_t *obj)
return
VLC_SUCCESS
;
}
#if 0
/**
* Single-precision floating point to signed fixed point conversion.
*/
...
...
@@ -128,6 +133,7 @@ static block_t *Do_F32_S32 (filter_t *filter, block_t *inbuf)
return inbuf;
}
#endif
void
s32_s16_neon_unaligned
(
int16_t
*
out
,
const
int32_t
*
in
,
unsigned
nb
);
void
s32_s16_neon
(
int16_t
*
out
,
const
int32_t
*
in
,
unsigned
nb
);
...
...
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