Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-10 23:34:15 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-06-10 23:34:15 +0400
commit3630a075132a8d059b16f92a291e523c1bc7ebc9 (patch)
tree37e9a6cbb8fced1a6e3f34dd348985ff8c081663 /libavutil/audioconvert.h
parent9e724d7216e693ba7af76caee5ccfb98c73d7a4b (diff)
parentbcbb30e2a0f3be3e6b158694687d0fde2f6db625 (diff)
Merge remote-tracking branch 'qatar/master'
* qatar/master: libmp3lame: add missing layout terminator avconv: multithreaded demuxing. Bump lavu minor and add an APIChanges entry for audioconvert functions. audioconvert: add a function for extracting the channel with the given index audioconvert: add a function for getting the name of a single channel. audioconvert: add a function for getting channel's index in layout audioconvert: use av_popcount64 in av_get_channel_layout_nb_channels vf_libopencv: add missing headers. iac: add missing dependency Conflicts: configure doc/APIchanges ffmpeg.c libavcodec/libmp3lame.c libavutil/avutil.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/audioconvert.h')
-rw-r--r--libavutil/audioconvert.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/libavutil/audioconvert.h b/libavutil/audioconvert.h
index 319cc8ab71..03e080cb26 100644
--- a/libavutil/audioconvert.h
+++ b/libavutil/audioconvert.h
@@ -150,6 +150,30 @@ int av_get_channel_layout_nb_channels(uint64_t channel_layout);
int64_t av_get_default_channel_layout(int nb_channels);
/**
+ * Get the index of a channel in channel_layout.
+ *
+ * @param channel a channel layout describing exactly one channel which must be
+ * present in channel_layout.
+ *
+ * @return index of channel in channel_layout on success, a negative AVERROR
+ * on error.
+ */
+int av_get_channel_layout_channel_index(uint64_t channel_layout,
+ uint64_t channel);
+
+/**
+ * Get the channel with the given index in channel_layout.
+ */
+uint64_t av_channel_layout_extract_channel(uint64_t channel_layout, int index);
+
+/**
+ * Get the name of a given channel.
+ *
+ * @return channel name on success, NULL on error.
+ */
+const char *av_get_channel_name(uint64_t channel);
+
+/**
* @}
*/