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
f8939044
Commit
f8939044
authored
Jul 30, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audioconvert: add av_get_standard_channel_layout().
Also bump minor version and add APIchanges entry.
parent
33449b17
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
1 deletion
+27
-1
APIchanges
doc/APIchanges
+4
-0
audioconvert.c
libavutil/audioconvert.c
+10
-0
audioconvert.h
libavutil/audioconvert.h
+12
-0
version.h
libavutil/version.h
+1
-1
No files found.
doc/APIchanges
View file @
f8939044
...
...
@@ -15,6 +15,10 @@ libavutil: 2011-04-18
API changes, most recent first:
2012-07-30 - xxxxxxx - lavu 51.66.100
Add av_get_channel_description()
and av_get_standard_channel_layout() functions.
2012-07-20 - xxxxxxx - lavc 54.43.100
Add decode_error_flags field to AVFrame.
...
...
libavutil/audioconvert.c
View file @
f8939044
...
...
@@ -243,3 +243,13 @@ uint64_t av_channel_layout_extract_channel(uint64_t channel_layout, int index)
}
return
0
;
}
int
av_get_standard_channel_layout
(
unsigned
index
,
uint64_t
*
layout
,
const
char
**
name
)
{
if
(
index
>=
FF_ARRAY_ELEMS
(
channel_layout_map
))
return
AVERROR_EOF
;
if
(
layout
)
*
layout
=
channel_layout_map
[
index
].
layout
;
if
(
name
)
*
name
=
channel_layout_map
[
index
].
name
;
return
0
;
}
libavutil/audioconvert.h
View file @
f8939044
...
...
@@ -188,6 +188,18 @@ const char *av_get_channel_name(uint64_t channel);
*/
const
char
*
av_get_channel_description
(
uint64_t
channel
);
/**
* Get the value and name of a standard channel layout.
*
* @param[in] index index in an internal list, starting at 0
* @param[out] layout channel layout mask
* @param[out] name name of the layout
* @return 0 if the layout exists,
* <0 if index is beyond the limits
*/
int
av_get_standard_channel_layout
(
unsigned
index
,
uint64_t
*
layout
,
const
char
**
name
);
/**
* @}
*/
...
...
libavutil/version.h
View file @
f8939044
...
...
@@ -39,7 +39,7 @@
*/
#define LIBAVUTIL_VERSION_MAJOR 51
#define LIBAVUTIL_VERSION_MINOR 6
5
#define LIBAVUTIL_VERSION_MINOR 6
6
#define LIBAVUTIL_VERSION_MICRO 100
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
...
...
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