Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
8cfc8c96
Commit
8cfc8c96
authored
Aug 03, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: support indirect sample format conversion (fix #5150)
parent
f6a0d76f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
src/audio_output/filters.c
src/audio_output/filters.c
+15
-1
No files found.
src/audio_output/filters.c
View file @
8cfc8c96
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#include <vlc_aout.h>
#include <vlc_aout.h>
#include <vlc_filter.h>
#include <vlc_filter.h>
#include <vlc_cpu.h>
#include "aout_internal.h"
#include "aout_internal.h"
#include <libvlc.h>
#include <libvlc.h>
...
@@ -100,7 +101,20 @@ static int SplitConversion( const audio_sample_format_t *restrict infmt,
...
@@ -100,7 +101,20 @@ static int SplitConversion( const audio_sample_format_t *restrict infmt,
midfmt
->
i_original_channels
=
infmt
->
i_original_channels
;
midfmt
->
i_original_channels
=
infmt
->
i_original_channels
;
}
}
else
else
return
-
1
;
{
assert
(
infmt
->
i_format
!=
outfmt
->
i_format
);
if
(
AOUT_FMT_NON_LINEAR
(
infmt
)
)
{
if
(
AOUT_FMT_NON_LINEAR
(
outfmt
)
)
return
-
1
;
/* no indirect non-linear -> non-linear */
/* NOTE: our non-linear -> linear filters always output 32-bits */
midfmt
->
i_format
=
HAVE_FPU
?
VLC_CODEC_FL32
:
VLC_CODEC_FI32
;
}
else
/* NOTE: Use S16N as intermediate. We have all conversions to S16N,
* and all useful conversions from S16N. TODO: FL32 if HAVE_FPU. */
midfmt
->
i_format
=
VLC_CODEC_S16N
;
}
aout_FormatPrepare
(
midfmt
);
aout_FormatPrepare
(
midfmt
);
return
AOUT_FMTS_IDENTICAL
(
infmt
,
midfmt
)
?
-
1
:
0
;
return
AOUT_FMTS_IDENTICAL
(
infmt
,
midfmt
)
?
-
1
:
0
;
...
...
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