diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-05-28 08:16:40 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-06-10 08:02:18 +0200 |
commit | 406b257de936b59f1fc943e399fbf1289fec6b95 (patch) | |
tree | 7bbacf18560a6a1308e3f90fdc8e4409d00545ed /libavutil/audioconvert.h | |
parent | 3596de55fc054b5c336e7e542c26ced0505d4f2e (diff) | |
download | ffmpeg-406b257de936b59f1fc943e399fbf1289fec6b95.tar.gz |
audioconvert: add a function for getting channel's index in layout
Diffstat (limited to 'libavutil/audioconvert.h')
-rw-r--r-- | libavutil/audioconvert.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavutil/audioconvert.h b/libavutil/audioconvert.h index 35a1a087f6..6f6b4447ef 100644 --- a/libavutil/audioconvert.h +++ b/libavutil/audioconvert.h @@ -144,6 +144,18 @@ int av_get_channel_layout_nb_channels(uint64_t channel_layout); uint64_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); + +/** * @} */ |