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
53aeaf92
Commit
53aeaf92
authored
Apr 13, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inline and simplify aout_FormatNbChannels
parent
f4585b92
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
21 deletions
+5
-21
include/vlc_aout.h
include/vlc_aout.h
+5
-1
src/audio_output/common.c
src/audio_output/common.c
+0
-19
src/libvlccore.sym
src/libvlccore.sym
+0
-1
No files found.
include/vlc_aout.h
View file @
53aeaf92
...
...
@@ -295,7 +295,11 @@ VLC_EXPORT( bool, aout_CheckChannelExtraction, ( int *pi_selection, uint32_t *pi
VLC_EXPORT
(
void
,
aout_ChannelExtract
,
(
void
*
p_dst
,
int
i_dst_channels
,
const
void
*
p_src
,
int
i_src_channels
,
int
i_sample_count
,
const
int
*
pi_selection
,
int
i_bits_per_sample
)
);
/* */
VLC_EXPORT
(
unsigned
int
,
aout_FormatNbChannels
,
(
const
audio_sample_format_t
*
p_format
)
LIBVLC_USED
);
static
inline
unsigned
aout_FormatNbChannels
(
const
audio_sample_format_t
*
fmt
)
{
return
popcount
(
fmt
->
i_physical_channels
&
AOUT_CHAN_PHYSMASK
);
}
VLC_EXPORT
(
unsigned
int
,
aout_BitsPerSample
,
(
vlc_fourcc_t
i_format
)
LIBVLC_USED
);
VLC_EXPORT
(
void
,
aout_FormatPrepare
,
(
audio_sample_format_t
*
p_format
)
);
VLC_EXPORT
(
void
,
aout_FormatPrint
,
(
aout_instance_t
*
p_aout
,
const
char
*
psz_text
,
const
audio_sample_format_t
*
p_format
)
);
...
...
src/audio_output/common.c
View file @
53aeaf92
...
...
@@ -178,25 +178,6 @@ void aout_unlock (unsigned i)
* Formats management (internal and external)
*/
/*****************************************************************************
* aout_FormatNbChannels : return the number of channels
*****************************************************************************/
unsigned
int
aout_FormatNbChannels
(
const
audio_sample_format_t
*
p_format
)
{
static
const
uint32_t
pi_channels
[]
=
{
AOUT_CHAN_CENTER
,
AOUT_CHAN_LEFT
,
AOUT_CHAN_RIGHT
,
AOUT_CHAN_REARCENTER
,
AOUT_CHAN_REARLEFT
,
AOUT_CHAN_REARRIGHT
,
AOUT_CHAN_MIDDLELEFT
,
AOUT_CHAN_MIDDLERIGHT
,
AOUT_CHAN_LFE
};
unsigned
int
i_nb
=
0
,
i
;
for
(
i
=
0
;
i
<
sizeof
(
pi_channels
)
/
sizeof
(
uint32_t
);
i
++
)
{
if
(
p_format
->
i_physical_channels
&
pi_channels
[
i
]
)
i_nb
++
;
}
return
i_nb
;
}
/*****************************************************************************
* aout_BitsPerSample : get the number of bits per sample
*****************************************************************************/
...
...
src/libvlccore.sym
View file @
53aeaf92
...
...
@@ -16,7 +16,6 @@ aout_EnableFilter
aout_FifoFirstDate
aout_FifoPop
aout_filter_RequestVout
aout_FormatNbChannels
aout_FormatPrepare
aout_FormatPrint
aout_FormatPrintChannels
...
...
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