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
33449b17
Commit
33449b17
authored
Jul 29, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audioconvert: add av_get_channel_description().
parent
cc554704
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
audioconvert.c
libavutil/audioconvert.c
+11
-0
audioconvert.h
libavutil/audioconvert.h
+8
-0
No files found.
libavutil/audioconvert.c
View file @
33449b17
...
...
@@ -219,6 +219,17 @@ const char *av_get_channel_name(uint64_t channel)
return
NULL
;
}
const
char
*
av_get_channel_description
(
uint64_t
channel
)
{
int
i
;
if
(
av_get_channel_layout_nb_channels
(
channel
)
!=
1
)
return
NULL
;
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
channel_names
);
i
++
)
if
((
1ULL
<<
i
)
&
channel
)
return
channel_names
[
i
].
description
;
return
NULL
;
}
uint64_t
av_channel_layout_extract_channel
(
uint64_t
channel_layout
,
int
index
)
{
int
i
;
...
...
libavutil/audioconvert.h
View file @
33449b17
...
...
@@ -180,6 +180,14 @@ uint64_t av_channel_layout_extract_channel(uint64_t channel_layout, int index);
*/
const
char
*
av_get_channel_name
(
uint64_t
channel
);
/**
* Get the description of a given channel.
*
* @param channel a channel layout with a single channel
* @return channel description on success, NULL on error
*/
const
char
*
av_get_channel_description
(
uint64_t
channel
);
/**
* @}
*/
...
...
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