Repository URL to install this package:
Version:
7:2.7.1-1ubuntu3 ▾
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>FFmpeg: libavutil/channel_layout.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
</head>
<body>
<div id="top"><!-- do not remove this div! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">FFmpeg
 <span id="projectnumber">2.7.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<div class="title">libavutil/channel_layout.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="channel__layout_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * Copyright (c) 2006 Michael Niedermayer <michaelni@gmx.at></span>
<a name="l00003"></a>00003 <span class="comment"> * Copyright (c) 2008 Peter Ross</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * This file is part of FFmpeg.</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * FFmpeg is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> *</span>
<a name="l00012"></a>00012 <span class="comment"> * FFmpeg is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> * Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> *</span>
<a name="l00017"></a>00017 <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> * License along with FFmpeg; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</span>
<a name="l00020"></a>00020 <span class="comment"> */</span>
<a name="l00021"></a>00021
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef AVUTIL_CHANNEL_LAYOUT_H</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define AVUTIL_CHANNEL_LAYOUT_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include <stdint.h></span>
<a name="l00026"></a>00026 <span class="comment"></span>
<a name="l00027"></a>00027 <span class="comment">/**</span>
<a name="l00028"></a>00028 <span class="comment"> * @file</span>
<a name="l00029"></a>00029 <span class="comment"> * audio channel layout utility functions</span>
<a name="l00030"></a>00030 <span class="comment"> */</span>
<a name="l00031"></a>00031 <span class="comment"></span>
<a name="l00032"></a>00032 <span class="comment">/**</span>
<a name="l00033"></a>00033 <span class="comment"> * @addtogroup lavu_audio</span>
<a name="l00034"></a>00034 <span class="comment"> * @{</span>
<a name="l00035"></a>00035 <span class="comment"> */</span>
<a name="l00036"></a>00036 <span class="comment"></span>
<a name="l00037"></a>00037 <span class="comment">/**</span>
<a name="l00038"></a>00038 <span class="comment"> * @defgroup channel_masks Audio channel masks</span>
<a name="l00039"></a>00039 <span class="comment"> *</span>
<a name="l00040"></a>00040 <span class="comment"> * A channel layout is a 64-bits integer with a bit set for every channel.</span>
<a name="l00041"></a>00041 <span class="comment"> * The number of bits set must be equal to the number of channels.</span>
<a name="l00042"></a>00042 <span class="comment"> * The value 0 means that the channel layout is not known.</span>
<a name="l00043"></a>00043 <span class="comment"> * @note this data structure is not powerful enough to handle channels</span>
<a name="l00044"></a>00044 <span class="comment"> * combinations that have the same channel multiple times, such as</span>
<a name="l00045"></a>00045 <span class="comment"> * dual-mono.</span>
<a name="l00046"></a>00046 <span class="comment"> *</span>
<a name="l00047"></a>00047 <span class="comment"> * @{</span>
<a name="l00048"></a>00048 <span class="comment"> */</span>
<a name="l00049"></a><a class="code" href="group__channel__masks.html#gaf9c5619f74c99ea8a8606719c01fe7df">00049</a> <span class="preprocessor">#define AV_CH_FRONT_LEFT 0x00000001</span>
<a name="l00050"></a><a class="code" href="group__channel__masks.html#ga394b4b2c87790178bf7b683b45320f31">00050</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_FRONT_RIGHT 0x00000002</span>
<a name="l00051"></a><a class="code" href="group__channel__masks.html#ga88f2868b232a89fd11ad9d6c39d502a1">00051</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_FRONT_CENTER 0x00000004</span>
<a name="l00052"></a><a class="code" href="group__channel__masks.html#gab19b66e345cf1f9d50ffc26c28862bcc">00052</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LOW_FREQUENCY 0x00000008</span>
<a name="l00053"></a><a class="code" href="group__channel__masks.html#gaa3cae8c6d0eaab3dc3ce178f6af81ae2">00053</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_BACK_LEFT 0x00000010</span>
<a name="l00054"></a><a class="code" href="group__channel__masks.html#ga7a7ab3bb418bf9672dcdf6554346e5eb">00054</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_BACK_RIGHT 0x00000020</span>
<a name="l00055"></a><a class="code" href="group__channel__masks.html#ga6c9ea2ea60044bfe844174300b237386">00055</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_FRONT_LEFT_OF_CENTER 0x00000040</span>
<a name="l00056"></a><a class="code" href="group__channel__masks.html#ga558dc25b0ce327d2547d3cc9e4bd6a4e">00056</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_FRONT_RIGHT_OF_CENTER 0x00000080</span>
<a name="l00057"></a><a class="code" href="group__channel__masks.html#ga68650a364e52edb62d5984dddec4f935">00057</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_BACK_CENTER 0x00000100</span>
<a name="l00058"></a><a class="code" href="group__channel__masks.html#ga02e55f35249dfa57a2e4edfd3acfec4f">00058</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_SIDE_LEFT 0x00000200</span>
<a name="l00059"></a><a class="code" href="group__channel__masks.html#ga947b60ab70c428ebb07c8b9c87023b39">00059</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_SIDE_RIGHT 0x00000400</span>
<a name="l00060"></a><a class="code" href="group__channel__masks.html#ga922199ce7638a651d66a423379b4c5dc">00060</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_TOP_CENTER 0x00000800</span>
<a name="l00061"></a><a class="code" href="group__channel__masks.html#ga352bec66d2e1bef67efe5b7f0a4207f3">00061</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_TOP_FRONT_LEFT 0x00001000</span>
<a name="l00062"></a><a class="code" href="group__channel__masks.html#ga6b558fe85e67383a5b04e56b97b145d0">00062</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_TOP_FRONT_CENTER 0x00002000</span>
<a name="l00063"></a><a class="code" href="group__channel__masks.html#gabce29ea1d7e2d433263b2cbf28232360">00063</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_TOP_FRONT_RIGHT 0x00004000</span>
<a name="l00064"></a><a class="code" href="group__channel__masks.html#gaac082f244f37f9c5d8e4f7bf96cc76dc">00064</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_TOP_BACK_LEFT 0x00008000</span>
<a name="l00065"></a><a class="code" href="group__channel__masks.html#ga439a8664c452f9782b460f61a3908451">00065</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_TOP_BACK_CENTER 0x00010000</span>
<a name="l00066"></a><a class="code" href="group__channel__masks.html#ga8fa88c3c74339f4218a3e70286fdbdaa">00066</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_TOP_BACK_RIGHT 0x00020000</span>
<a name="l00067"></a><a class="code" href="group__channel__masks.html#gaea8f62dcaa4774307a8fa9b52172c688">00067</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_STEREO_LEFT 0x20000000 ///< Stereo downmix.</span>
<a name="l00068"></a><a class="code" href="group__channel__masks.html#gab68e7edb9182b1b22898b960707143c1">00068</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_STEREO_RIGHT 0x40000000 ///< See AV_CH_STEREO_LEFT.</span>
<a name="l00069"></a><a class="code" href="group__channel__masks.html#ga11e273c4872335063b5059cca52218c0">00069</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_WIDE_LEFT 0x0000000080000000ULL</span>
<a name="l00070"></a><a class="code" href="group__channel__masks.html#ga2c7ff738c3481d2891d052f5bca55248">00070</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_WIDE_RIGHT 0x0000000100000000ULL</span>
<a name="l00071"></a><a class="code" href="group__channel__masks.html#gafc04912a8294d8788e4162092df8a549">00071</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_SURROUND_DIRECT_LEFT 0x0000000200000000ULL</span>
<a name="l00072"></a><a class="code" href="group__channel__masks.html#ga0c9137cc9fd60d15be588e2eff3cfa23">00072</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_SURROUND_DIRECT_RIGHT 0x0000000400000000ULL</span>
<a name="l00073"></a><a class="code" href="group__channel__masks.html#ga72d2eaef6727608379ab29859f5d5ee2">00073</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LOW_FREQUENCY_2 0x0000000800000000ULL</span>
<a name="l00074"></a>00074 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00075"></a>00075 <span class="comment">/** Channel mask value used for AVCodecContext.request_channel_layout</span>
<a name="l00076"></a>00076 <span class="comment"> to indicate that the user requests the channel order of the decoder output</span>
<a name="l00077"></a>00077 <span class="comment"> to be the native codec channel order. */</span>
<a name="l00078"></a><a class="code" href="group__channel__masks.html#ga7ab04ac641edef25c03de0a577eab57d">00078</a> <span class="preprocessor">#define AV_CH_LAYOUT_NATIVE 0x8000000000000000ULL</span>
<a name="l00079"></a>00079 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00080"></a>00080 <span class="comment">/**</span>
<a name="l00081"></a>00081 <span class="comment"> * @}</span>
<a name="l00082"></a>00082 <span class="comment"> * @defgroup channel_mask_c Audio channel layouts</span>
<a name="l00083"></a>00083 <span class="comment"> * @{</span>
<a name="l00084"></a>00084 <span class="comment"> * */</span>
<a name="l00085"></a><a class="code" href="group__channel__mask__c.html#ga53d6da2dcd56f5f87c7afd8b33fa15ba">00085</a> <span class="preprocessor">#define AV_CH_LAYOUT_MONO (AV_CH_FRONT_CENTER)</span>
<a name="l00086"></a><a class="code" href="group__channel__mask__c.html#gabc6d6651bba254cd0fa2c42a57228e65">00086</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_STEREO (AV_CH_FRONT_LEFT|AV_CH_FRONT_RIGHT)</span>
<a name="l00087"></a><a class="code" href="group__channel__mask__c.html#ga03f59e18b3598aa0cab9ed675c287a36">00087</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_2POINT1 (AV_CH_LAYOUT_STEREO|AV_CH_LOW_FREQUENCY)</span>
<a name="l00088"></a><a class="code" href="group__channel__mask__c.html#gad0badd9c9984bc74290f26c2edfdfe44">00088</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_2_1 (AV_CH_LAYOUT_STEREO|AV_CH_BACK_CENTER)</span>
<a name="l00089"></a><a class="code" href="group__channel__mask__c.html#ga625aec7f2285dc35e3ed801e91889564">00089</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_SURROUND (AV_CH_LAYOUT_STEREO|AV_CH_FRONT_CENTER)</span>
<a name="l00090"></a><a class="code" href="group__channel__mask__c.html#gae3fc8d83d40cfbd4910b16d526beb294">00090</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_3POINT1 (AV_CH_LAYOUT_SURROUND|AV_CH_LOW_FREQUENCY)</span>
<a name="l00091"></a><a class="code" href="group__channel__mask__c.html#ga0bcbe41f2d3214b0a3fd2698ebe0caf9">00091</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_4POINT0 (AV_CH_LAYOUT_SURROUND|AV_CH_BACK_CENTER)</span>
<a name="l00092"></a><a class="code" href="group__channel__mask__c.html#gacc48c498c05b3b3c2549f715ba4f1d1b">00092</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_4POINT1 (AV_CH_LAYOUT_4POINT0|AV_CH_LOW_FREQUENCY)</span>
<a name="l00093"></a><a class="code" href="group__channel__mask__c.html#ga5c25ee8b976d0cb15e0b6d2cf923d19d">00093</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_2_2 (AV_CH_LAYOUT_STEREO|AV_CH_SIDE_LEFT|AV_CH_SIDE_RIGHT)</span>
<a name="l00094"></a><a class="code" href="group__channel__mask__c.html#ga0982ce29eced939dfcfb5b52416810ae">00094</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_QUAD (AV_CH_LAYOUT_STEREO|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT)</span>
<a name="l00095"></a><a class="code" href="group__channel__mask__c.html#ga10eddec555bcf849efce5158b0cbdb50">00095</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_5POINT0 (AV_CH_LAYOUT_SURROUND|AV_CH_SIDE_LEFT|AV_CH_SIDE_RIGHT)</span>
<a name="l00096"></a><a class="code" href="group__channel__mask__c.html#gac36a042dc21866f9043ce930f300d0df">00096</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_5POINT1 (AV_CH_LAYOUT_5POINT0|AV_CH_LOW_FREQUENCY)</span>
<a name="l00097"></a><a class="code" href="group__channel__mask__c.html#gab057e9fd36b7e929d000d663badbafc6">00097</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_5POINT0_BACK (AV_CH_LAYOUT_SURROUND|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT)</span>
<a name="l00098"></a><a class="code" href="group__channel__mask__c.html#gae9da5d6069701241a22f3af19b152662">00098</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_5POINT1_BACK (AV_CH_LAYOUT_5POINT0_BACK|AV_CH_LOW_FREQUENCY)</span>
<a name="l00099"></a><a class="code" href="group__channel__mask__c.html#ga0fbea70d397140a524b55018128fca77">00099</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_6POINT0 (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_CENTER)</span>
<a name="l00100"></a><a class="code" href="group__channel__mask__c.html#ga735985d89e38896a0cb9e5a1e96cb9b8">00100</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_6POINT0_FRONT (AV_CH_LAYOUT_2_2|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER)</span>
<a name="l00101"></a><a class="code" href="group__channel__mask__c.html#ga44e719835fe17c5af5e619083918d1ca">00101</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_HEXAGONAL (AV_CH_LAYOUT_5POINT0_BACK|AV_CH_BACK_CENTER)</span>
<a name="l00102"></a><a class="code" href="group__channel__mask__c.html#ga0b63b18f49c294bfbc22afa8b59b6685">00102</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_6POINT1 (AV_CH_LAYOUT_5POINT1|AV_CH_BACK_CENTER)</span>
<a name="l00103"></a><a class="code" href="group__channel__mask__c.html#gaaf1920f827888aeb99540f3ee5a78cea">00103</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_6POINT1_BACK (AV_CH_LAYOUT_5POINT1_BACK|AV_CH_BACK_CENTER)</span>
<a name="l00104"></a><a class="code" href="group__channel__mask__c.html#ga934ec29833f0cbc4a1fe8f97cc914664">00104</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_6POINT1_FRONT (AV_CH_LAYOUT_6POINT0_FRONT|AV_CH_LOW_FREQUENCY)</span>
<a name="l00105"></a><a class="code" href="group__channel__mask__c.html#gab843d4e87bc747c7a81f082589023f98">00105</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_7POINT0 (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT)</span>
<a name="l00106"></a><a class="code" href="group__channel__mask__c.html#gaa4c21d7abb460730295f99c7f0098259">00106</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_7POINT0_FRONT (AV_CH_LAYOUT_5POINT0|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER)</span>
<a name="l00107"></a><a class="code" href="group__channel__mask__c.html#ga2006ce652a95bad74291db52fa346464">00107</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_7POINT1 (AV_CH_LAYOUT_5POINT1|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT)</span>
<a name="l00108"></a><a class="code" href="group__channel__mask__c.html#ga883478469aa86f5c3f57ce864a12745b">00108</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_7POINT1_WIDE (AV_CH_LAYOUT_5POINT1|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER)</span>
<a name="l00109"></a><a class="code" href="group__channel__mask__c.html#ga9702d40a7d1f6e2b00e02d8ecb83bd63">00109</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_7POINT1_WIDE_BACK (AV_CH_LAYOUT_5POINT1_BACK|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER)</span>
<a name="l00110"></a><a class="code" href="group__channel__mask__c.html#gaa760931c084e33a254fca038b7de8dae">00110</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_OCTAGONAL (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_LEFT|AV_CH_BACK_CENTER|AV_CH_BACK_RIGHT)</span>
<a name="l00111"></a><a class="code" href="group__channel__mask__c.html#ga3004e784b29fd907a0d4aebeca0e6933">00111</a> <span class="preprocessor"></span><span class="preprocessor">#define AV_CH_LAYOUT_STEREO_DOWNMIX (AV_CH_STEREO_LEFT|AV_CH_STEREO_RIGHT)</span>
<a name="l00112"></a>00112 <span class="preprocessor"></span>
<a name="l00113"></a><a class="code" href="group__channel__mask__c.html#gabd576ea664e3ac5d31f3362064fe13e6">00113</a> <span class="keyword">enum</span> <a class="code" href="group__channel__mask__c.html#gabd576ea664e3ac5d31f3362064fe13e6">AVMatrixEncoding</a> {
<a name="l00114"></a><a class="code" href="group__channel__mask__c.html#ggabd576ea664e3ac5d31f3362064fe13e6a04179fd7b3339556603020ae88e02793">00114</a> <a class="code" href="group__channel__mask__c.html#ggabd576ea664e3ac5d31f3362064fe13e6a04179fd7b3339556603020ae88e02793">AV_MATRIX_ENCODING_NONE</a>,
<a name="l00115"></a><a class="code" href="group__channel__mask__c.html#ggabd576ea664e3ac5d31f3362064fe13e6a0578f715ed49986a6e4c40884c174dbd">00115</a> <a class="code" href="group__channel__mask__c.html#ggabd576ea664e3ac5d31f3362064fe13e6a0578f715ed49986a6e4c40884c174dbd">AV_MATRIX_ENCODING_DOLBY</a>,
<a name="l00116"></a><a class="code" href="group__channel__mask__c.html#ggabd576ea664e3ac5d31f3362064fe13e6a068d30f3ce95f82781b0052bf86bc10e">00116</a> <a class="code" href="group__channel__mask__c.html#ggabd576ea664e3ac5d31f3362064fe13e6a068d30f3ce95f82781b0052bf86bc10e">AV_MATRIX_ENCODING_DPLII</a>,
<a name="l00117"></a><a class="code" href="group__channel__mask__c.html#ggabd576ea664e3ac5d31f3362064fe13e6a03124652d3e9efb6ce687971c7abbfa1">00117</a> <a class="code" href="group__channel__mask__c.html#ggabd576ea664e3ac5d31f3362064fe13e6a03124652d3e9efb6ce687971c7abbfa1">AV_MATRIX_ENCODING_DPLIIX</a>,
<a name="l00118"></a><a class="code" href="group__channel__mask__c.html#ggabd576ea664e3ac5d31f3362064fe13e6a927893de2c83ddb117fb89dcc579e363">00118</a> <a class="code" href="group__channel__mask__c.html#ggabd576ea664e3ac5d31f3362064fe13e6a927893de2c83ddb117fb89dcc579e363">AV_MATRIX_ENCODING_DPLIIZ</a>,
<a name="l00119"></a><a class="code" href="group__channel__mask__c.html#ggabd576ea664e3ac5d31f3362064fe13e6aa155505a7fb9f2b45778b1d7776dcfb7">00119</a> <a class="code" href="group__channel__mask__c.html#ggabd576ea664e3ac5d31f3362064fe13e6aa155505a7fb9f2b45778b1d7776dcfb7">AV_MATRIX_ENCODING_DOLBYEX</a>,
<a name="l00120"></a><a class="code" href="group__channel__mask__c.html#ggabd576ea664e3ac5d31f3362064fe13e6ad9089736c1dd449617a2805d37e502d3">00120</a> <a class="code" href="group__channel__mask__c.html#ggabd576ea664e3ac5d31f3362064fe13e6ad9089736c1dd449617a2805d37e502d3">AV_MATRIX_ENCODING_DOLBYHEADPHONE</a>,
<a name="l00121"></a><a class="code" href="group__channel__mask__c.html#ggabd576ea664e3ac5d31f3362064fe13e6a3a3acaf62825a3b21c7631ddf1dcc648">00121</a> <a class="code" href="group__channel__mask__c.html#ggabd576ea664e3ac5d31f3362064fe13e6a3a3acaf62825a3b21c7631ddf1dcc648">AV_MATRIX_ENCODING_NB</a>
<a name="l00122"></a>00122 };
<a name="l00123"></a>00123 <span class="comment"></span>
<a name="l00124"></a>00124 <span class="comment">/**</span>
<a name="l00125"></a>00125 <span class="comment"> * Return a channel layout id that matches name, or 0 if no match is found.</span>
<a name="l00126"></a>00126 <span class="comment"> *</span>
<a name="l00127"></a>00127 <span class="comment"> * name can be one or several of the following notations,</span>
<a name="l00128"></a>00128 <span class="comment"> * separated by '+' or '|':</span>
<a name="l00129"></a>00129 <span class="comment"> * - the name of an usual channel layout (mono, stereo, 4.0, quad, 5.0,</span>
<a name="l00130"></a>00130 <span class="comment"> * 5.0(side), 5.1, 5.1(side), 7.1, 7.1(wide), downmix);</span>
<a name="l00131"></a>00131 <span class="comment"> * - the name of a single channel (FL, FR, FC, LFE, BL, BR, FLC, FRC, BC,</span>
<a name="l00132"></a>00132 <span class="comment"> * SL, SR, TC, TFL, TFC, TFR, TBL, TBC, TBR, DL, DR);</span>
<a name="l00133"></a>00133 <span class="comment"> * - a number of channels, in decimal, optionally followed by 'c', yielding</span>
<a name="l00134"></a>00134 <span class="comment"> * the default channel layout for that number of channels (@see</span>
<a name="l00135"></a>00135 <span class="comment"> * av_get_default_channel_layout);</span>
<a name="l00136"></a>00136 <span class="comment"> * - a channel layout mask, in hexadecimal starting with "0x" (see the</span>
<a name="l00137"></a>00137 <span class="comment"> * AV_CH_* macros).</span>
<a name="l00138"></a>00138 <span class="comment"> *</span>
<a name="l00139"></a>00139 <span class="comment"> * @warning Starting from the next major bump the trailing character</span>
<a name="l00140"></a>00140 <span class="comment"> * 'c' to specify a number of channels will be required, while a</span>
<a name="l00141"></a>00141 <span class="comment"> * channel layout mask could also be specified as a decimal number</span>
<a name="l00142"></a>00142 <span class="comment"> * (if and only if not followed by "c").</span>
<a name="l00143"></a>00143 <span class="comment"> *</span>
<a name="l00144"></a>00144 <span class="comment"> * Example: "stereo+FC" = "2c+FC" = "2c+1c" = "0x7"</span>
<a name="l00145"></a>00145 <span class="comment"> */</span>
<a name="l00146"></a>00146 uint64_t <a class="code" href="group__channel__mask__c.html#ga3e8a7ab3d4c1ac98b902ab6b00741343" title="Return a channel layout id that matches name, or 0 if no match is found.">av_get_channel_layout</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name);
<a name="l00147"></a>00147 <span class="comment"></span>
<a name="l00148"></a>00148 <span class="comment">/**</span>
<a name="l00149"></a>00149 <span class="comment"> * Return a description of a channel layout.</span>
<a name="l00150"></a>00150 <span class="comment"> * If nb_channels is <= 0, it is guessed from the channel_layout.</span>
<a name="l00151"></a>00151 <span class="comment"> *</span>
<a name="l00152"></a>00152 <span class="comment"> * @param buf put here the string containing the channel layout</span>
<a name="l00153"></a>00153 <span class="comment"> * @param buf_size size in bytes of the buffer</span>
<a name="l00154"></a>00154 <span class="comment"> */</span>
<a name="l00155"></a>00155 <span class="keywordtype">void</span> <a class="code" href="group__channel__mask__c.html#ga99d0b5bb80534d13a6cc96336cf9076a" title="Return a description of a channel layout.">av_get_channel_layout_string</a>(<span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> buf_size, <span class="keywordtype">int</span> nb_channels, uint64_t channel_layout);
<a name="l00156"></a>00156
<a name="l00157"></a>00157 <span class="keyword">struct </span>AVBPrint;<span class="comment"></span>
<a name="l00158"></a>00158 <span class="comment">/**</span>
<a name="l00159"></a>00159 <span class="comment"> * Append a description of a channel layout to a bprint buffer.</span>
<a name="l00160"></a>00160 <span class="comment"> */</span>
<a name="l00161"></a>00161 <span class="keywordtype">void</span> <a class="code" href="group__channel__mask__c.html#ga48cdbfac1bbb45835eae8bcdc9877b0e" title="Append a description of a channel layout to a bprint buffer.">av_bprint_channel_layout</a>(<span class="keyword">struct</span> AVBPrint *bp, <span class="keywordtype">int</span> nb_channels, uint64_t channel_layout);
<a name="l00162"></a>00162 <span class="comment"></span>
<a name="l00163"></a>00163 <span class="comment">/**</span>
<a name="l00164"></a>00164 <span class="comment"> * Return the number of channels in the channel layout.</span>
<a name="l00165"></a>00165 <span class="comment"> */</span>
<a name="l00166"></a>00166 <span class="keywordtype">int</span> <a class="code" href="group__channel__mask__c.html#gac95619abeb32e4a3daa18e3ff3419380" title="Return the number of channels in the channel layout.">av_get_channel_layout_nb_channels</a>(uint64_t channel_layout);
<a name="l00167"></a>00167 <span class="comment"></span>
<a name="l00168"></a>00168 <span class="comment">/**</span>
<a name="l00169"></a>00169 <span class="comment"> * Return default channel layout for a given number of channels.</span>
<a name="l00170"></a>00170 <span class="comment"> */</span>
<a name="l00171"></a>00171 int64_t <a class="code" href="group__channel__mask__c.html#gacb84f3e93a583e1f84a5283162a606a2" title="Return default channel layout for a given number of channels.">av_get_default_channel_layout</a>(<span class="keywordtype">int</span> nb_channels);
<a name="l00172"></a>00172 <span class="comment"></span>
<a name="l00173"></a>00173 <span class="comment">/**</span>
<a name="l00174"></a>00174 <span class="comment"> * Get the index of a channel in channel_layout.</span>
<a name="l00175"></a>00175 <span class="comment"> *</span>
<a name="l00176"></a>00176 <span class="comment"> * @param channel a channel layout describing exactly one channel which must be</span>
<a name="l00177"></a>00177 <span class="comment"> * present in channel_layout.</span>
<a name="l00178"></a>00178 <span class="comment"> *</span>
<a name="l00179"></a>00179 <span class="comment"> * @return index of channel in channel_layout on success, a negative AVERROR</span>
<a name="l00180"></a>00180 <span class="comment"> * on error.</span>
<a name="l00181"></a>00181 <span class="comment"> */</span>
<a name="l00182"></a>00182 <span class="keywordtype">int</span> <a class="code" href="group__channel__mask__c.html#ga0669978493902b5ae723e386013da3ce" title="Get the index of a channel in channel_layout.">av_get_channel_layout_channel_index</a>(uint64_t channel_layout,
<a name="l00183"></a>00183 uint64_t channel);
<a name="l00184"></a>00184 <span class="comment"></span>
<a name="l00185"></a>00185 <span class="comment">/**</span>
<a name="l00186"></a>00186 <span class="comment"> * Get the channel with the given index in channel_layout.</span>
<a name="l00187"></a>00187 <span class="comment"> */</span>
<a name="l00188"></a>00188 uint64_t <a class="code" href="group__channel__mask__c.html#gaf492843360fb4ecee6b5ec4166b04fcd" title="Get the channel with the given index in channel_layout.">av_channel_layout_extract_channel</a>(uint64_t channel_layout, <span class="keywordtype">int</span> index);
<a name="l00189"></a>00189 <span class="comment"></span>
<a name="l00190"></a>00190 <span class="comment">/**</span>
<a name="l00191"></a>00191 <span class="comment"> * Get the name of a given channel.</span>
<a name="l00192"></a>00192 <span class="comment"> *</span>
<a name="l00193"></a>00193 <span class="comment"> * @return channel name on success, NULL on error.</span>
<a name="l00194"></a>00194 <span class="comment"> */</span>
<a name="l00195"></a>00195 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__channel__mask__c.html#gaf9a5e23a9bbf5909f2dc84b25d78e35e" title="Get the name of a given channel.">av_get_channel_name</a>(uint64_t channel);
<a name="l00196"></a>00196 <span class="comment"></span>
<a name="l00197"></a>00197 <span class="comment">/**</span>
<a name="l00198"></a>00198 <span class="comment"> * Get the description of a given channel.</span>
<a name="l00199"></a>00199 <span class="comment"> *</span>
<a name="l00200"></a>00200 <span class="comment"> * @param channel a channel layout with a single channel</span>
<a name="l00201"></a>00201 <span class="comment"> * @return channel description on success, NULL on error</span>
<a name="l00202"></a>00202 <span class="comment"> */</span>
<a name="l00203"></a>00203 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__channel__mask__c.html#gade4b74b99e3fb954b88b0cb8eddb785a" title="Get the description of a given channel.">av_get_channel_description</a>(uint64_t channel);
<a name="l00204"></a>00204 <span class="comment"></span>
<a name="l00205"></a>00205 <span class="comment">/**</span>
<a name="l00206"></a>00206 <span class="comment"> * Get the value and name of a standard channel layout.</span>
<a name="l00207"></a>00207 <span class="comment"> *</span>
<a name="l00208"></a>00208 <span class="comment"> * @param[in] index index in an internal list, starting at 0</span>
<a name="l00209"></a>00209 <span class="comment"> * @param[out] layout channel layout mask</span>
<a name="l00210"></a>00210 <span class="comment"> * @param[out] name name of the layout</span>
<a name="l00211"></a>00211 <span class="comment"> * @return 0 if the layout exists,</span>
<a name="l00212"></a>00212 <span class="comment"> * <0 if index is beyond the limits</span>
<a name="l00213"></a>00213 <span class="comment"> */</span>
<a name="l00214"></a>00214 <span class="keywordtype">int</span> <a class="code" href="group__channel__mask__c.html#ga00447bfae43d690f1f549a9e2521bf85" title="Get the value and name of a standard channel layout.">av_get_standard_channel_layout</a>(<span class="keywordtype">unsigned</span> index, uint64_t *layout,
<a name="l00215"></a>00215 <span class="keyword">const</span> <span class="keywordtype">char</span> **name);
<a name="l00216"></a>00216 <span class="comment"></span>
<a name="l00217"></a>00217 <span class="comment">/**</span>
<a name="l00218"></a>00218 <span class="comment"> * @}</span>
<a name="l00219"></a>00219 <span class="comment"> * @}</span>
<a name="l00220"></a>00220 <span class="comment"> */</span>
<a name="l00221"></a>00221
<a name="l00222"></a>00222 <span class="preprocessor">#endif </span><span class="comment">/* AVUTIL_CHANNEL_LAYOUT_H */</span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Defines</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>
</body>
</html>