Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ffmpeg-doc / usr / share / doc / ffmpeg-doc / api / avdevice_8h_source.html
Size: Mime:
<!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: libavdevice/avdevice.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
   &#160;<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&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;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&#160;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">libavdevice/avdevice.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="avdevice_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"> * This file is part of FFmpeg.</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * FFmpeg is free software; you can redistribute it and/or</span>
<a name="l00005"></a>00005 <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span>
<a name="l00006"></a>00006 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00007"></a>00007 <span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * FFmpeg is distributed in the hope that it will be useful,</span>
<a name="l00010"></a>00010 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00011"></a>00011 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00012"></a>00012 <span class="comment"> * Lesser General Public License for more details.</span>
<a name="l00013"></a>00013 <span class="comment"> *</span>
<a name="l00014"></a>00014 <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span>
<a name="l00015"></a>00015 <span class="comment"> * License along with FFmpeg; if not, write to the Free Software</span>
<a name="l00016"></a>00016 <span class="comment"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</span>
<a name="l00017"></a>00017 <span class="comment"> */</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef AVDEVICE_AVDEVICE_H</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define AVDEVICE_AVDEVICE_H</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &quot;<a class="code" href="libavdevice_2version_8h.html" title="Libavdevice version macros.">version.h</a>&quot;</span>
<a name="l00023"></a>00023 <span class="comment"></span>
<a name="l00024"></a>00024 <span class="comment">/**</span>
<a name="l00025"></a>00025 <span class="comment"> * @file</span>
<a name="l00026"></a>00026 <span class="comment"> * @ingroup lavd</span>
<a name="l00027"></a>00027 <span class="comment"> * Main libavdevice API header</span>
<a name="l00028"></a>00028 <span class="comment"> */</span>
<a name="l00029"></a>00029 <span class="comment"></span>
<a name="l00030"></a>00030 <span class="comment">/**</span>
<a name="l00031"></a>00031 <span class="comment"> * @defgroup lavd Special devices muxing/demuxing library</span>
<a name="l00032"></a>00032 <span class="comment"> * @{</span>
<a name="l00033"></a>00033 <span class="comment"> * Libavdevice is a complementary library to @ref libavf &quot;libavformat&quot;. It</span>
<a name="l00034"></a>00034 <span class="comment"> * provides various &quot;special&quot; platform-specific muxers and demuxers, e.g. for</span>
<a name="l00035"></a>00035 <span class="comment"> * grabbing devices, audio capture and playback etc. As a consequence, the</span>
<a name="l00036"></a>00036 <span class="comment"> * (de)muxers in libavdevice are of the AVFMT_NOFILE type (they use their own</span>
<a name="l00037"></a>00037 <span class="comment"> * I/O functions). The filename passed to avformat_open_input() often does not</span>
<a name="l00038"></a>00038 <span class="comment"> * refer to an actually existing file, but has some special device-specific</span>
<a name="l00039"></a>00039 <span class="comment"> * meaning - e.g. for x11grab it is the display name.</span>
<a name="l00040"></a>00040 <span class="comment"> *</span>
<a name="l00041"></a>00041 <span class="comment"> * To use libavdevice, simply call avdevice_register_all() to register all</span>
<a name="l00042"></a>00042 <span class="comment"> * compiled muxers and demuxers. They all use standard libavformat API.</span>
<a name="l00043"></a>00043 <span class="comment"> * @}</span>
<a name="l00044"></a>00044 <span class="comment"> */</span>
<a name="l00045"></a>00045 
<a name="l00046"></a>00046 <span class="preprocessor">#include &quot;<a class="code" href="log_8h.html">libavutil/log.h</a>&quot;</span>
<a name="l00047"></a>00047 <span class="preprocessor">#include &quot;<a class="code" href="opt_8h.html" title="AVOptions.">libavutil/opt.h</a>&quot;</span>
<a name="l00048"></a>00048 <span class="preprocessor">#include &quot;<a class="code" href="dict_8h.html" title="Public dictionary API.">libavutil/dict.h</a>&quot;</span>
<a name="l00049"></a>00049 <span class="preprocessor">#include &quot;<a class="code" href="avformat_8h.html" title="Main libavformat public API header.">libavformat/avformat.h</a>&quot;</span>
<a name="l00050"></a>00050 <span class="comment"></span>
<a name="l00051"></a>00051 <span class="comment">/**</span>
<a name="l00052"></a>00052 <span class="comment"> * Return the LIBAVDEVICE_VERSION_INT constant.</span>
<a name="l00053"></a>00053 <span class="comment"> */</span>
<a name="l00054"></a>00054 <span class="keywordtype">unsigned</span> <a class="code" href="avdevice_8h.html#a6a111710c7b02c2a11d8b6c43e0dd63d" title="Return the LIBAVDEVICE_VERSION_INT constant.">avdevice_version</a>(<span class="keywordtype">void</span>);
<a name="l00055"></a>00055 <span class="comment"></span>
<a name="l00056"></a>00056 <span class="comment">/**</span>
<a name="l00057"></a>00057 <span class="comment"> * Return the libavdevice build-time configuration.</span>
<a name="l00058"></a>00058 <span class="comment"> */</span>
<a name="l00059"></a>00059 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="avdevice_8h.html#a84490e9144a7c9311a3df5cc2a66e0c6" title="Return the libavdevice build-time configuration.">avdevice_configuration</a>(<span class="keywordtype">void</span>);
<a name="l00060"></a>00060 <span class="comment"></span>
<a name="l00061"></a>00061 <span class="comment">/**</span>
<a name="l00062"></a>00062 <span class="comment"> * Return the libavdevice license.</span>
<a name="l00063"></a>00063 <span class="comment"> */</span>
<a name="l00064"></a>00064 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="avdevice_8h.html#a146d7576da658d0fb388aa89d563bcfa" title="Return the libavdevice license.">avdevice_license</a>(<span class="keywordtype">void</span>);
<a name="l00065"></a>00065 <span class="comment"></span>
<a name="l00066"></a>00066 <span class="comment">/**</span>
<a name="l00067"></a>00067 <span class="comment"> * Initialize libavdevice and register all the input and output devices.</span>
<a name="l00068"></a>00068 <span class="comment"> * @warning This function is not thread safe.</span>
<a name="l00069"></a>00069 <span class="comment"> */</span>
<a name="l00070"></a>00070 <span class="keywordtype">void</span> <a class="code" href="avdevice_8h.html#a7c90a3585267b55941ae2f7388c006b6" title="Initialize libavdevice and register all the input and output devices.">avdevice_register_all</a>(<span class="keywordtype">void</span>);
<a name="l00071"></a>00071 <span class="comment"></span>
<a name="l00072"></a>00072 <span class="comment">/**</span>
<a name="l00073"></a>00073 <span class="comment"> * Audio input devices iterator.</span>
<a name="l00074"></a>00074 <span class="comment"> *</span>
<a name="l00075"></a>00075 <span class="comment"> * If d is NULL, returns the first registered input audio/video device,</span>
<a name="l00076"></a>00076 <span class="comment"> * if d is non-NULL, returns the next registered input audio/video device after d</span>
<a name="l00077"></a>00077 <span class="comment"> * or NULL if d is the last one.</span>
<a name="l00078"></a>00078 <span class="comment"> */</span>
<a name="l00079"></a>00079 <a class="code" href="structAVInputFormat.html">AVInputFormat</a> *<a class="code" href="avdevice_8h.html#a521e86d5a7e1f96f894edbecda3d6970" title="Audio input devices iterator.">av_input_audio_device_next</a>(<a class="code" href="structAVInputFormat.html">AVInputFormat</a>  *d);
<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"> * Video input devices iterator.</span>
<a name="l00083"></a>00083 <span class="comment"> *</span>
<a name="l00084"></a>00084 <span class="comment"> * If d is NULL, returns the first registered input audio/video device,</span>
<a name="l00085"></a>00085 <span class="comment"> * if d is non-NULL, returns the next registered input audio/video device after d</span>
<a name="l00086"></a>00086 <span class="comment"> * or NULL if d is the last one.</span>
<a name="l00087"></a>00087 <span class="comment"> */</span>
<a name="l00088"></a>00088 <a class="code" href="structAVInputFormat.html">AVInputFormat</a> *<a class="code" href="avdevice_8h.html#a4f4b2a42fa434a3557b96a02ba7cd36a" title="Video input devices iterator.">av_input_video_device_next</a>(<a class="code" href="structAVInputFormat.html">AVInputFormat</a>  *d);
<a name="l00089"></a>00089 <span class="comment"></span>
<a name="l00090"></a>00090 <span class="comment">/**</span>
<a name="l00091"></a>00091 <span class="comment"> * Audio output devices iterator.</span>
<a name="l00092"></a>00092 <span class="comment"> *</span>
<a name="l00093"></a>00093 <span class="comment"> * If d is NULL, returns the first registered output audio/video device,</span>
<a name="l00094"></a>00094 <span class="comment"> * if d is non-NULL, returns the next registered output audio/video device after d</span>
<a name="l00095"></a>00095 <span class="comment"> * or NULL if d is the last one.</span>
<a name="l00096"></a>00096 <span class="comment"> */</span>
<a name="l00097"></a>00097 <a class="code" href="structAVOutputFormat.html">AVOutputFormat</a> *<a class="code" href="avdevice_8h.html#af79c3b9e53b5631f422f7b92768c5164" title="Audio output devices iterator.">av_output_audio_device_next</a>(<a class="code" href="structAVOutputFormat.html">AVOutputFormat</a> *d);
<a name="l00098"></a>00098 <span class="comment"></span>
<a name="l00099"></a>00099 <span class="comment">/**</span>
<a name="l00100"></a>00100 <span class="comment"> * Video output devices iterator.</span>
<a name="l00101"></a>00101 <span class="comment"> *</span>
<a name="l00102"></a>00102 <span class="comment"> * If d is NULL, returns the first registered output audio/video device,</span>
<a name="l00103"></a>00103 <span class="comment"> * if d is non-NULL, returns the next registered output audio/video device after d</span>
<a name="l00104"></a>00104 <span class="comment"> * or NULL if d is the last one.</span>
<a name="l00105"></a>00105 <span class="comment"> */</span>
<a name="l00106"></a>00106 <a class="code" href="structAVOutputFormat.html">AVOutputFormat</a> *<a class="code" href="avdevice_8h.html#a52f3b793ab7b9511521069cf6213ebd2" title="Video output devices iterator.">av_output_video_device_next</a>(<a class="code" href="structAVOutputFormat.html">AVOutputFormat</a> *d);
<a name="l00107"></a>00107 
<a name="l00108"></a><a class="code" href="structAVDeviceRect.html">00108</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structAVDeviceRect.html">AVDeviceRect</a> {
<a name="l00109"></a><a class="code" href="structAVDeviceRect.html#a59c84ebbf20ec757079bcad8cf6938ba">00109</a>     <span class="keywordtype">int</span> <a class="code" href="structAVDeviceRect.html#a59c84ebbf20ec757079bcad8cf6938ba" title="x coordinate of top left corner">x</a>;      <span class="comment">/**&lt; x coordinate of top left corner */</span>
<a name="l00110"></a><a class="code" href="structAVDeviceRect.html#abe9a24b60ee938e8eb9fd30522d1602b">00110</a>     <span class="keywordtype">int</span> <a class="code" href="structAVDeviceRect.html#abe9a24b60ee938e8eb9fd30522d1602b" title="y coordinate of top left corner">y</a>;      <span class="comment">/**&lt; y coordinate of top left corner */</span>
<a name="l00111"></a><a class="code" href="structAVDeviceRect.html#afb6766c6297f824d7051f1800f7fda90">00111</a>     <span class="keywordtype">int</span> <a class="code" href="structAVDeviceRect.html#afb6766c6297f824d7051f1800f7fda90" title="width">width</a>;  <span class="comment">/**&lt; width */</span>
<a name="l00112"></a><a class="code" href="structAVDeviceRect.html#a0554500f55abfff27a4141b3346a93f6">00112</a>     <span class="keywordtype">int</span> <a class="code" href="structAVDeviceRect.html#a0554500f55abfff27a4141b3346a93f6" title="height">height</a>; <span class="comment">/**&lt; height */</span>
<a name="l00113"></a>00113 } <a class="code" href="structAVDeviceRect.html">AVDeviceRect</a>;
<a name="l00114"></a>00114 <span class="comment"></span>
<a name="l00115"></a>00115 <span class="comment">/**</span>
<a name="l00116"></a>00116 <span class="comment"> * Message types used by avdevice_app_to_dev_control_message().</span>
<a name="l00117"></a>00117 <span class="comment"> */</span>
<a name="l00118"></a><a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8">00118</a> <span class="keyword">enum</span> <a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8" title="Message types used by avdevice_app_to_dev_control_message().">AVAppToDevMessageType</a> {<span class="comment"></span>
<a name="l00119"></a>00119 <span class="comment">    /**</span>
<a name="l00120"></a>00120 <span class="comment">     * Dummy message.</span>
<a name="l00121"></a>00121 <span class="comment">     */</span>
<a name="l00122"></a><a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8a635d820c2098c4f58feff50b7d6c2811">00122</a>     <a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8a635d820c2098c4f58feff50b7d6c2811" title="Dummy message.">AV_APP_TO_DEV_NONE</a> = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;N&#39;</span>,<span class="charliteral">&#39;O&#39;</span>,<span class="charliteral">&#39;N&#39;</span>,<span class="charliteral">&#39;E&#39;</span>),
<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">     * Window size change message.</span>
<a name="l00126"></a>00126 <span class="comment">     *</span>
<a name="l00127"></a>00127 <span class="comment">     * Message is sent to the device every time the application changes the size</span>
<a name="l00128"></a>00128 <span class="comment">     * of the window device renders to.</span>
<a name="l00129"></a>00129 <span class="comment">     * Message should also be sent right after window is created.</span>
<a name="l00130"></a>00130 <span class="comment">     *</span>
<a name="l00131"></a>00131 <span class="comment">     * data: AVDeviceRect: new window size.</span>
<a name="l00132"></a>00132 <span class="comment">     */</span>
<a name="l00133"></a><a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8ace5fb49b2638f933e758fed3dcb07249">00133</a>     <a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8ace5fb49b2638f933e758fed3dcb07249" title="Window size change message.">AV_APP_TO_DEV_WINDOW_SIZE</a> = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;G&#39;</span>,<span class="charliteral">&#39;E&#39;</span>,<span class="charliteral">&#39;O&#39;</span>,<span class="charliteral">&#39;M&#39;</span>),
<a name="l00134"></a>00134 <span class="comment"></span>
<a name="l00135"></a>00135 <span class="comment">    /**</span>
<a name="l00136"></a>00136 <span class="comment">     * Repaint request message.</span>
<a name="l00137"></a>00137 <span class="comment">     *</span>
<a name="l00138"></a>00138 <span class="comment">     * Message is sent to the device when window has to be repainted.</span>
<a name="l00139"></a>00139 <span class="comment">     *</span>
<a name="l00140"></a>00140 <span class="comment">     * data: AVDeviceRect: area required to be repainted.</span>
<a name="l00141"></a>00141 <span class="comment">     *       NULL: whole area is required to be repainted.</span>
<a name="l00142"></a>00142 <span class="comment">     */</span>
<a name="l00143"></a><a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8a9f4006d75c6e368d9d0224d973d57710">00143</a>     <a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8a9f4006d75c6e368d9d0224d973d57710" title="Repaint request message.">AV_APP_TO_DEV_WINDOW_REPAINT</a> = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;R&#39;</span>,<span class="charliteral">&#39;E&#39;</span>,<span class="charliteral">&#39;P&#39;</span>,<span class="charliteral">&#39;A&#39;</span>),
<a name="l00144"></a>00144 <span class="comment"></span>
<a name="l00145"></a>00145 <span class="comment">    /**</span>
<a name="l00146"></a>00146 <span class="comment">     * Request pause/play.</span>
<a name="l00147"></a>00147 <span class="comment">     *</span>
<a name="l00148"></a>00148 <span class="comment">     * Application requests pause/unpause playback.</span>
<a name="l00149"></a>00149 <span class="comment">     * Mostly usable with devices that have internal buffer.</span>
<a name="l00150"></a>00150 <span class="comment">     * By default devices are not paused.</span>
<a name="l00151"></a>00151 <span class="comment">     *</span>
<a name="l00152"></a>00152 <span class="comment">     * data: NULL</span>
<a name="l00153"></a>00153 <span class="comment">     */</span>
<a name="l00154"></a><a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8a89a46eae01f8ff45ec1f200e6738d804">00154</a>     <a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8a89a46eae01f8ff45ec1f200e6738d804" title="Request pause/play.">AV_APP_TO_DEV_PAUSE</a>        = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;P&#39;</span>, <span class="charliteral">&#39;A&#39;</span>, <span class="charliteral">&#39;U&#39;</span>, <span class="charliteral">&#39; &#39;</span>),
<a name="l00155"></a><a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8a344983cb9068e56d3f847162081a9747">00155</a>     <a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8a344983cb9068e56d3f847162081a9747">AV_APP_TO_DEV_PLAY</a>         = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;P&#39;</span>, <span class="charliteral">&#39;L&#39;</span>, <span class="charliteral">&#39;A&#39;</span>, <span class="charliteral">&#39;Y&#39;</span>),
<a name="l00156"></a><a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8a754ae9e6688b1de6f92140415e56b40c">00156</a>     <a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8a754ae9e6688b1de6f92140415e56b40c">AV_APP_TO_DEV_TOGGLE_PAUSE</a> = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;P&#39;</span>, <span class="charliteral">&#39;A&#39;</span>, <span class="charliteral">&#39;U&#39;</span>, <span class="charliteral">&#39;T&#39;</span>),
<a name="l00157"></a>00157 <span class="comment"></span>
<a name="l00158"></a>00158 <span class="comment">    /**</span>
<a name="l00159"></a>00159 <span class="comment">     * Volume control message.</span>
<a name="l00160"></a>00160 <span class="comment">     *</span>
<a name="l00161"></a>00161 <span class="comment">     * Set volume level. It may be device-dependent if volume</span>
<a name="l00162"></a>00162 <span class="comment">     * is changed per stream or system wide. Per stream volume</span>
<a name="l00163"></a>00163 <span class="comment">     * change is expected when possible.</span>
<a name="l00164"></a>00164 <span class="comment">     *</span>
<a name="l00165"></a>00165 <span class="comment">     * data: double: new volume with range of 0.0 - 1.0.</span>
<a name="l00166"></a>00166 <span class="comment">     */</span>
<a name="l00167"></a><a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8abac3d409c36e4774717f9a8ecf24ada9">00167</a>     <a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8abac3d409c36e4774717f9a8ecf24ada9" title="Volume control message.">AV_APP_TO_DEV_SET_VOLUME</a> = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;S&#39;</span>, <span class="charliteral">&#39;V&#39;</span>, <span class="charliteral">&#39;O&#39;</span>, <span class="charliteral">&#39;L&#39;</span>),
<a name="l00168"></a>00168 <span class="comment"></span>
<a name="l00169"></a>00169 <span class="comment">    /**</span>
<a name="l00170"></a>00170 <span class="comment">     * Mute control messages.</span>
<a name="l00171"></a>00171 <span class="comment">     *</span>
<a name="l00172"></a>00172 <span class="comment">     * Change mute state. It may be device-dependent if mute status</span>
<a name="l00173"></a>00173 <span class="comment">     * is changed per stream or system wide. Per stream mute status</span>
<a name="l00174"></a>00174 <span class="comment">     * change is expected when possible.</span>
<a name="l00175"></a>00175 <span class="comment">     *</span>
<a name="l00176"></a>00176 <span class="comment">     * data: NULL.</span>
<a name="l00177"></a>00177 <span class="comment">     */</span>
<a name="l00178"></a><a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8a93114a33bcd20f06d39fb9a64febf751">00178</a>     <a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8a93114a33bcd20f06d39fb9a64febf751" title="Mute control messages.">AV_APP_TO_DEV_MUTE</a>        = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39; &#39;</span>, <span class="charliteral">&#39;M&#39;</span>, <span class="charliteral">&#39;U&#39;</span>, <span class="charliteral">&#39;T&#39;</span>),
<a name="l00179"></a><a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8ad8c2e96b8cf1ebd5e85c5fd171eecc3f">00179</a>     <a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8ad8c2e96b8cf1ebd5e85c5fd171eecc3f">AV_APP_TO_DEV_UNMUTE</a>      = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;U&#39;</span>, <span class="charliteral">&#39;M&#39;</span>, <span class="charliteral">&#39;U&#39;</span>, <span class="charliteral">&#39;T&#39;</span>),
<a name="l00180"></a><a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8ad83bcf41ae7e0d09e46bdc2b240afb4b">00180</a>     <a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8ad83bcf41ae7e0d09e46bdc2b240afb4b">AV_APP_TO_DEV_TOGGLE_MUTE</a> = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;T&#39;</span>, <span class="charliteral">&#39;M&#39;</span>, <span class="charliteral">&#39;U&#39;</span>, <span class="charliteral">&#39;T&#39;</span>),
<a name="l00181"></a>00181 <span class="comment"></span>
<a name="l00182"></a>00182 <span class="comment">    /**</span>
<a name="l00183"></a>00183 <span class="comment">     * Get volume/mute messages.</span>
<a name="l00184"></a>00184 <span class="comment">     *</span>
<a name="l00185"></a>00185 <span class="comment">     * Force the device to send AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED or</span>
<a name="l00186"></a>00186 <span class="comment">     * AV_DEV_TO_APP_MUTE_STATE_CHANGED command respectively.</span>
<a name="l00187"></a>00187 <span class="comment">     *</span>
<a name="l00188"></a>00188 <span class="comment">     * data: NULL.</span>
<a name="l00189"></a>00189 <span class="comment">     */</span>
<a name="l00190"></a><a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8a5caaa1fda2910d345270d8ac1710c138">00190</a>     <a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8a5caaa1fda2910d345270d8ac1710c138" title="Get volume/mute messages.">AV_APP_TO_DEV_GET_VOLUME</a> = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;G&#39;</span>, <span class="charliteral">&#39;V&#39;</span>, <span class="charliteral">&#39;O&#39;</span>, <span class="charliteral">&#39;L&#39;</span>),
<a name="l00191"></a><a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8a8219697bb3af980fa778ffb1e11606b3">00191</a>     <a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8a8219697bb3af980fa778ffb1e11606b3">AV_APP_TO_DEV_GET_MUTE</a>   = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;G&#39;</span>, <span class="charliteral">&#39;M&#39;</span>, <span class="charliteral">&#39;U&#39;</span>, <span class="charliteral">&#39;T&#39;</span>),
<a name="l00192"></a>00192 };
<a name="l00193"></a>00193 <span class="comment"></span>
<a name="l00194"></a>00194 <span class="comment">/**</span>
<a name="l00195"></a>00195 <span class="comment"> * Message types used by avdevice_dev_to_app_control_message().</span>
<a name="l00196"></a>00196 <span class="comment"> */</span>
<a name="l00197"></a><a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690">00197</a> <span class="keyword">enum</span> <a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690" title="Message types used by avdevice_dev_to_app_control_message().">AVDevToAppMessageType</a> {<span class="comment"></span>
<a name="l00198"></a>00198 <span class="comment">    /**</span>
<a name="l00199"></a>00199 <span class="comment">     * Dummy message.</span>
<a name="l00200"></a>00200 <span class="comment">     */</span>
<a name="l00201"></a><a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690a64ccc494050138379bd52b62159ea4ce">00201</a>     <a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690a64ccc494050138379bd52b62159ea4ce" title="Dummy message.">AV_DEV_TO_APP_NONE</a> = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;N&#39;</span>,<span class="charliteral">&#39;O&#39;</span>,<span class="charliteral">&#39;N&#39;</span>,<span class="charliteral">&#39;E&#39;</span>),
<a name="l00202"></a>00202 <span class="comment"></span>
<a name="l00203"></a>00203 <span class="comment">    /**</span>
<a name="l00204"></a>00204 <span class="comment">     * Create window buffer message.</span>
<a name="l00205"></a>00205 <span class="comment">     *</span>
<a name="l00206"></a>00206 <span class="comment">     * Device requests to create a window buffer. Exact meaning is device-</span>
<a name="l00207"></a>00207 <span class="comment">     * and application-dependent. Message is sent before rendering first</span>
<a name="l00208"></a>00208 <span class="comment">     * frame and all one-shot initializations should be done here.</span>
<a name="l00209"></a>00209 <span class="comment">     * Application is allowed to ignore preferred window buffer size.</span>
<a name="l00210"></a>00210 <span class="comment">     *</span>
<a name="l00211"></a>00211 <span class="comment">     * @note: Application is obligated to inform about window buffer size</span>
<a name="l00212"></a>00212 <span class="comment">     *        with AV_APP_TO_DEV_WINDOW_SIZE message.</span>
<a name="l00213"></a>00213 <span class="comment">     *</span>
<a name="l00214"></a>00214 <span class="comment">     * data: AVDeviceRect: preferred size of the window buffer.</span>
<a name="l00215"></a>00215 <span class="comment">     *       NULL: no preferred size of the window buffer.</span>
<a name="l00216"></a>00216 <span class="comment">     */</span>
<a name="l00217"></a><a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690a0c4bc0ff29547bc0dc4bd5d0aba95020">00217</a>     <a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690a0c4bc0ff29547bc0dc4bd5d0aba95020" title="Create window buffer message.">AV_DEV_TO_APP_CREATE_WINDOW_BUFFER</a> = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;B&#39;</span>,<span class="charliteral">&#39;C&#39;</span>,<span class="charliteral">&#39;R&#39;</span>,<span class="charliteral">&#39;E&#39;</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">     * Prepare window buffer message.</span>
<a name="l00221"></a>00221 <span class="comment">     *</span>
<a name="l00222"></a>00222 <span class="comment">     * Device requests to prepare a window buffer for rendering.</span>
<a name="l00223"></a>00223 <span class="comment">     * Exact meaning is device- and application-dependent.</span>
<a name="l00224"></a>00224 <span class="comment">     * Message is sent before rendering of each frame.</span>
<a name="l00225"></a>00225 <span class="comment">     *</span>
<a name="l00226"></a>00226 <span class="comment">     * data: NULL.</span>
<a name="l00227"></a>00227 <span class="comment">     */</span>
<a name="l00228"></a><a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690a7d665015d93c6f6f0bf6bdb3d86c619e">00228</a>     <a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690a7d665015d93c6f6f0bf6bdb3d86c619e" title="Prepare window buffer message.">AV_DEV_TO_APP_PREPARE_WINDOW_BUFFER</a> = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;B&#39;</span>,<span class="charliteral">&#39;P&#39;</span>,<span class="charliteral">&#39;R&#39;</span>,<span class="charliteral">&#39;E&#39;</span>),
<a name="l00229"></a>00229 <span class="comment"></span>
<a name="l00230"></a>00230 <span class="comment">    /**</span>
<a name="l00231"></a>00231 <span class="comment">     * Display window buffer message.</span>
<a name="l00232"></a>00232 <span class="comment">     *</span>
<a name="l00233"></a>00233 <span class="comment">     * Device requests to display a window buffer.</span>
<a name="l00234"></a>00234 <span class="comment">     * Message is sent when new frame is ready to be displayed.</span>
<a name="l00235"></a>00235 <span class="comment">     * Usually buffers need to be swapped in handler of this message.</span>
<a name="l00236"></a>00236 <span class="comment">     *</span>
<a name="l00237"></a>00237 <span class="comment">     * data: NULL.</span>
<a name="l00238"></a>00238 <span class="comment">     */</span>
<a name="l00239"></a><a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690a1108397b3605ed9aff591de55a3c27bd">00239</a>     <a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690a1108397b3605ed9aff591de55a3c27bd" title="Display window buffer message.">AV_DEV_TO_APP_DISPLAY_WINDOW_BUFFER</a> = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;B&#39;</span>,<span class="charliteral">&#39;D&#39;</span>,<span class="charliteral">&#39;I&#39;</span>,<span class="charliteral">&#39;S&#39;</span>),
<a name="l00240"></a>00240 <span class="comment"></span>
<a name="l00241"></a>00241 <span class="comment">    /**</span>
<a name="l00242"></a>00242 <span class="comment">     * Destroy window buffer message.</span>
<a name="l00243"></a>00243 <span class="comment">     *</span>
<a name="l00244"></a>00244 <span class="comment">     * Device requests to destroy a window buffer.</span>
<a name="l00245"></a>00245 <span class="comment">     * Message is sent when device is about to be destroyed and window</span>
<a name="l00246"></a>00246 <span class="comment">     * buffer is not required anymore.</span>
<a name="l00247"></a>00247 <span class="comment">     *</span>
<a name="l00248"></a>00248 <span class="comment">     * data: NULL.</span>
<a name="l00249"></a>00249 <span class="comment">     */</span>
<a name="l00250"></a><a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690abd200e116b23c39311db9661d9221b04">00250</a>     <a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690abd200e116b23c39311db9661d9221b04" title="Destroy window buffer message.">AV_DEV_TO_APP_DESTROY_WINDOW_BUFFER</a> = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;B&#39;</span>,<span class="charliteral">&#39;D&#39;</span>,<span class="charliteral">&#39;E&#39;</span>,<span class="charliteral">&#39;S&#39;</span>),
<a name="l00251"></a>00251 <span class="comment"></span>
<a name="l00252"></a>00252 <span class="comment">    /**</span>
<a name="l00253"></a>00253 <span class="comment">     * Buffer fullness status messages.</span>
<a name="l00254"></a>00254 <span class="comment">     *</span>
<a name="l00255"></a>00255 <span class="comment">     * Device signals buffer overflow/underflow.</span>
<a name="l00256"></a>00256 <span class="comment">     *</span>
<a name="l00257"></a>00257 <span class="comment">     * data: NULL.</span>
<a name="l00258"></a>00258 <span class="comment">     */</span>
<a name="l00259"></a><a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690a037a21369f35dd608f54fb34022de229">00259</a>     <a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690a037a21369f35dd608f54fb34022de229" title="Buffer fullness status messages.">AV_DEV_TO_APP_BUFFER_OVERFLOW</a> = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;B&#39;</span>,<span class="charliteral">&#39;O&#39;</span>,<span class="charliteral">&#39;F&#39;</span>,<span class="charliteral">&#39;L&#39;</span>),
<a name="l00260"></a><a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690ac3652337ce29a2bb83a57ae9b76196c1">00260</a>     <a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690ac3652337ce29a2bb83a57ae9b76196c1">AV_DEV_TO_APP_BUFFER_UNDERFLOW</a> = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;B&#39;</span>,<span class="charliteral">&#39;U&#39;</span>,<span class="charliteral">&#39;F&#39;</span>,<span class="charliteral">&#39;L&#39;</span>),
<a name="l00261"></a>00261 <span class="comment"></span>
<a name="l00262"></a>00262 <span class="comment">    /**</span>
<a name="l00263"></a>00263 <span class="comment">     * Buffer readable/writable.</span>
<a name="l00264"></a>00264 <span class="comment">     *</span>
<a name="l00265"></a>00265 <span class="comment">     * Device informs that buffer is readable/writable.</span>
<a name="l00266"></a>00266 <span class="comment">     * When possible, device informs how many bytes can be read/write.</span>
<a name="l00267"></a>00267 <span class="comment">     *</span>
<a name="l00268"></a>00268 <span class="comment">     * @warning Device may not inform when number of bytes than can be read/write changes.</span>
<a name="l00269"></a>00269 <span class="comment">     *</span>
<a name="l00270"></a>00270 <span class="comment">     * data: int64_t: amount of bytes available to read/write.</span>
<a name="l00271"></a>00271 <span class="comment">     *       NULL: amount of bytes available to read/write is not known.</span>
<a name="l00272"></a>00272 <span class="comment">     */</span>
<a name="l00273"></a><a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690a1fe6ba0b4093fb06244e342105d9c1a2">00273</a>     <a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690a1fe6ba0b4093fb06244e342105d9c1a2" title="Buffer readable/writable.">AV_DEV_TO_APP_BUFFER_READABLE</a> = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;B&#39;</span>,<span class="charliteral">&#39;R&#39;</span>,<span class="charliteral">&#39;D&#39;</span>,<span class="charliteral">&#39; &#39;</span>),
<a name="l00274"></a><a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690a0cf06e453ce4b8618573bf9fbeca07f4">00274</a>     <a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690a0cf06e453ce4b8618573bf9fbeca07f4">AV_DEV_TO_APP_BUFFER_WRITABLE</a> = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;B&#39;</span>,<span class="charliteral">&#39;W&#39;</span>,<span class="charliteral">&#39;R&#39;</span>,<span class="charliteral">&#39; &#39;</span>),
<a name="l00275"></a>00275 <span class="comment"></span>
<a name="l00276"></a>00276 <span class="comment">    /**</span>
<a name="l00277"></a>00277 <span class="comment">     * Mute state change message.</span>
<a name="l00278"></a>00278 <span class="comment">     *</span>
<a name="l00279"></a>00279 <span class="comment">     * Device informs that mute state has changed.</span>
<a name="l00280"></a>00280 <span class="comment">     *</span>
<a name="l00281"></a>00281 <span class="comment">     * data: int: 0 for not muted state, non-zero for muted state.</span>
<a name="l00282"></a>00282 <span class="comment">     */</span>
<a name="l00283"></a><a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690a3e4c4485f83fa9818ce1e9a559a7dc02">00283</a>     <a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690a3e4c4485f83fa9818ce1e9a559a7dc02" title="Mute state change message.">AV_DEV_TO_APP_MUTE_STATE_CHANGED</a> = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;C&#39;</span>,<span class="charliteral">&#39;M&#39;</span>,<span class="charliteral">&#39;U&#39;</span>,<span class="charliteral">&#39;T&#39;</span>),
<a name="l00284"></a>00284 <span class="comment"></span>
<a name="l00285"></a>00285 <span class="comment">    /**</span>
<a name="l00286"></a>00286 <span class="comment">     * Volume level change message.</span>
<a name="l00287"></a>00287 <span class="comment">     *</span>
<a name="l00288"></a>00288 <span class="comment">     * Device informs that volume level has changed.</span>
<a name="l00289"></a>00289 <span class="comment">     *</span>
<a name="l00290"></a>00290 <span class="comment">     * data: double: new volume with range of 0.0 - 1.0.</span>
<a name="l00291"></a>00291 <span class="comment">     */</span>
<a name="l00292"></a><a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690a19abbd0fc9488541fd4df18660120e0c">00292</a>     <a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690a19abbd0fc9488541fd4df18660120e0c" title="Volume level change message.">AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED</a> = <a class="code" href="common_8h.html#a1e233db224cd0a3079fd4572d1a3d717">MKBETAG</a>(<span class="charliteral">&#39;C&#39;</span>,<span class="charliteral">&#39;V&#39;</span>,<span class="charliteral">&#39;O&#39;</span>,<span class="charliteral">&#39;L&#39;</span>),
<a name="l00293"></a>00293 };
<a name="l00294"></a>00294 <span class="comment"></span>
<a name="l00295"></a>00295 <span class="comment">/**</span>
<a name="l00296"></a>00296 <span class="comment"> * Send control message from application to device.</span>
<a name="l00297"></a>00297 <span class="comment"> *</span>
<a name="l00298"></a>00298 <span class="comment"> * @param s         device context.</span>
<a name="l00299"></a>00299 <span class="comment"> * @param type      message type.</span>
<a name="l00300"></a>00300 <span class="comment"> * @param data      message data. Exact type depends on message type.</span>
<a name="l00301"></a>00301 <span class="comment"> * @param data_size size of message data.</span>
<a name="l00302"></a>00302 <span class="comment"> * @return &gt;= 0 on success, negative on error.</span>
<a name="l00303"></a>00303 <span class="comment"> *         AVERROR(ENOSYS) when device doesn&#39;t implement handler of the message.</span>
<a name="l00304"></a>00304 <span class="comment"> */</span>
<a name="l00305"></a>00305 <span class="keywordtype">int</span> <a class="code" href="avdevice_8h.html#a62f5a22de09f0bc7fd2380d39ee1bc45" title="Send control message from application to device.">avdevice_app_to_dev_control_message</a>(<span class="keyword">struct</span> <a class="code" href="structAVFormatContext.html" title="Format I/O context.">AVFormatContext</a> *s,
<a name="l00306"></a>00306                                         <span class="keyword">enum</span> <a class="code" href="avdevice_8h.html#a16d549a25f11693a06a211f00864fed8" title="Message types used by avdevice_app_to_dev_control_message().">AVAppToDevMessageType</a> type,
<a name="l00307"></a>00307                                         <span class="keywordtype">void</span> *data, <span class="keywordtype">size_t</span> data_size);
<a name="l00308"></a>00308 <span class="comment"></span>
<a name="l00309"></a>00309 <span class="comment">/**</span>
<a name="l00310"></a>00310 <span class="comment"> * Send control message from device to application.</span>
<a name="l00311"></a>00311 <span class="comment"> *</span>
<a name="l00312"></a>00312 <span class="comment"> * @param s         device context.</span>
<a name="l00313"></a>00313 <span class="comment"> * @param type      message type.</span>
<a name="l00314"></a>00314 <span class="comment"> * @param data      message data. Can be NULL.</span>
<a name="l00315"></a>00315 <span class="comment"> * @param data_size size of message data.</span>
<a name="l00316"></a>00316 <span class="comment"> * @return &gt;= 0 on success, negative on error.</span>
<a name="l00317"></a>00317 <span class="comment"> *         AVERROR(ENOSYS) when application doesn&#39;t implement handler of the message.</span>
<a name="l00318"></a>00318 <span class="comment"> */</span>
<a name="l00319"></a>00319 <span class="keywordtype">int</span> <a class="code" href="avdevice_8h.html#af426838f78fb5bcdc2095c4d3162cf6e" title="Send control message from device to application.">avdevice_dev_to_app_control_message</a>(<span class="keyword">struct</span> <a class="code" href="structAVFormatContext.html" title="Format I/O context.">AVFormatContext</a> *s,
<a name="l00320"></a>00320                                         <span class="keyword">enum</span> <a class="code" href="avdevice_8h.html#ac379d3691ce091da6387a461a158a690" title="Message types used by avdevice_dev_to_app_control_message().">AVDevToAppMessageType</a> type,
<a name="l00321"></a>00321                                         <span class="keywordtype">void</span> *data, <span class="keywordtype">size_t</span> data_size);
<a name="l00322"></a>00322 <span class="comment"></span>
<a name="l00323"></a>00323 <span class="comment">/**</span>
<a name="l00324"></a>00324 <span class="comment"> * Following API allows user to probe device capabilities (supported codecs,</span>
<a name="l00325"></a>00325 <span class="comment"> * pixel formats, sample formats, resolutions, channel counts, etc).</span>
<a name="l00326"></a>00326 <span class="comment"> * It is build on top op AVOption API.</span>
<a name="l00327"></a>00327 <span class="comment"> * Queried capabilities make it possible to set up converters of video or audio</span>
<a name="l00328"></a>00328 <span class="comment"> * parameters that fit to the device.</span>
<a name="l00329"></a>00329 <span class="comment"> *</span>
<a name="l00330"></a>00330 <span class="comment"> * List of capabilities that can be queried:</span>
<a name="l00331"></a>00331 <span class="comment"> *  - Capabilities valid for both audio and video devices:</span>
<a name="l00332"></a>00332 <span class="comment"> *    - codec:          supported audio/video codecs.</span>
<a name="l00333"></a>00333 <span class="comment"> *                      type: AV_OPT_TYPE_INT (AVCodecID value)</span>
<a name="l00334"></a>00334 <span class="comment"> *  - Capabilities valid for audio devices:</span>
<a name="l00335"></a>00335 <span class="comment"> *    - sample_format:  supported sample formats.</span>
<a name="l00336"></a>00336 <span class="comment"> *                      type: AV_OPT_TYPE_INT (AVSampleFormat value)</span>
<a name="l00337"></a>00337 <span class="comment"> *    - sample_rate:    supported sample rates.</span>
<a name="l00338"></a>00338 <span class="comment"> *                      type: AV_OPT_TYPE_INT</span>
<a name="l00339"></a>00339 <span class="comment"> *    - channels:       supported number of channels.</span>
<a name="l00340"></a>00340 <span class="comment"> *                      type: AV_OPT_TYPE_INT</span>
<a name="l00341"></a>00341 <span class="comment"> *    - channel_layout: supported channel layouts.</span>
<a name="l00342"></a>00342 <span class="comment"> *                      type: AV_OPT_TYPE_INT64</span>
<a name="l00343"></a>00343 <span class="comment"> *  - Capabilities valid for video devices:</span>
<a name="l00344"></a>00344 <span class="comment"> *    - pixel_format:   supported pixel formats.</span>
<a name="l00345"></a>00345 <span class="comment"> *                      type: AV_OPT_TYPE_INT (AVPixelFormat value)</span>
<a name="l00346"></a>00346 <span class="comment"> *    - window_size:    supported window sizes (describes size of the window size presented to the user).</span>
<a name="l00347"></a>00347 <span class="comment"> *                      type: AV_OPT_TYPE_IMAGE_SIZE</span>
<a name="l00348"></a>00348 <span class="comment"> *    - frame_size:     supported frame sizes (describes size of provided video frames).</span>
<a name="l00349"></a>00349 <span class="comment"> *                      type: AV_OPT_TYPE_IMAGE_SIZE</span>
<a name="l00350"></a>00350 <span class="comment"> *    - fps:            supported fps values</span>
<a name="l00351"></a>00351 <span class="comment"> *                      type: AV_OPT_TYPE_RATIONAL</span>
<a name="l00352"></a>00352 <span class="comment"> *</span>
<a name="l00353"></a>00353 <span class="comment"> * Value of the capability may be set by user using av_opt_set() function</span>
<a name="l00354"></a>00354 <span class="comment"> * and AVDeviceCapabilitiesQuery object. Following queries will</span>
<a name="l00355"></a>00355 <span class="comment"> * limit results to the values matching already set capabilities.</span>
<a name="l00356"></a>00356 <span class="comment"> * For example, setting a codec may impact number of formats or fps values</span>
<a name="l00357"></a>00357 <span class="comment"> * returned during next query. Setting invalid value may limit results to zero.</span>
<a name="l00358"></a>00358 <span class="comment"> *</span>
<a name="l00359"></a>00359 <span class="comment"> * Example of the usage basing on opengl output device:</span>
<a name="l00360"></a>00360 <span class="comment"> *</span>
<a name="l00361"></a>00361 <span class="comment"> * @code</span>
<a name="l00362"></a>00362 <span class="comment"> *  AVFormatContext *oc = NULL;</span>
<a name="l00363"></a>00363 <span class="comment"> *  AVDeviceCapabilitiesQuery *caps = NULL;</span>
<a name="l00364"></a>00364 <span class="comment"> *  AVOptionRanges *ranges;</span>
<a name="l00365"></a>00365 <span class="comment"> *  int ret;</span>
<a name="l00366"></a>00366 <span class="comment"> *</span>
<a name="l00367"></a>00367 <span class="comment"> *  if ((ret = avformat_alloc_output_context2(&amp;oc, NULL, &quot;opengl&quot;, NULL)) &lt; 0)</span>
<a name="l00368"></a>00368 <span class="comment"> *      goto fail;</span>
<a name="l00369"></a>00369 <span class="comment"> *  if (avdevice_capabilities_create(&amp;caps, oc, NULL) &lt; 0)</span>
<a name="l00370"></a>00370 <span class="comment"> *      goto fail;</span>
<a name="l00371"></a>00371 <span class="comment"> *</span>
<a name="l00372"></a>00372 <span class="comment"> *  //query codecs</span>
<a name="l00373"></a>00373 <span class="comment"> *  if (av_opt_query_ranges(&amp;ranges, caps, &quot;codec&quot;, AV_OPT_MULTI_COMPONENT_RANGE)) &lt; 0)</span>
<a name="l00374"></a>00374 <span class="comment"> *      goto fail;</span>
<a name="l00375"></a>00375 <span class="comment"> *  //pick codec here and set it</span>
<a name="l00376"></a>00376 <span class="comment"> *  av_opt_set(caps, &quot;codec&quot;, AV_CODEC_ID_RAWVIDEO, 0);</span>
<a name="l00377"></a>00377 <span class="comment"> *</span>
<a name="l00378"></a>00378 <span class="comment"> *  //query format</span>
<a name="l00379"></a>00379 <span class="comment"> *  if (av_opt_query_ranges(&amp;ranges, caps, &quot;pixel_format&quot;, AV_OPT_MULTI_COMPONENT_RANGE)) &lt; 0)</span>
<a name="l00380"></a>00380 <span class="comment"> *      goto fail;</span>
<a name="l00381"></a>00381 <span class="comment"> *  //pick format here and set it</span>
<a name="l00382"></a>00382 <span class="comment"> *  av_opt_set(caps, &quot;pixel_format&quot;, AV_PIX_FMT_YUV420P, 0);</span>
<a name="l00383"></a>00383 <span class="comment"> *</span>
<a name="l00384"></a>00384 <span class="comment"> *  //query and set more capabilities</span>
<a name="l00385"></a>00385 <span class="comment"> *</span>
<a name="l00386"></a>00386 <span class="comment"> * fail:</span>
<a name="l00387"></a>00387 <span class="comment"> *  //clean up code</span>
<a name="l00388"></a>00388 <span class="comment"> *  avdevice_capabilities_free(&amp;query, oc);</span>
<a name="l00389"></a>00389 <span class="comment"> *  avformat_free_context(oc);</span>
<a name="l00390"></a>00390 <span class="comment"> * @endcode</span>
<a name="l00391"></a>00391 <span class="comment"> */</span>
<a name="l00392"></a>00392 <span class="comment"></span>
<a name="l00393"></a>00393 <span class="comment">/**</span>
<a name="l00394"></a>00394 <span class="comment"> * Structure describes device capabilities.</span>
<a name="l00395"></a>00395 <span class="comment"> *</span>
<a name="l00396"></a>00396 <span class="comment"> * It is used by devices in conjunction with av_device_capabilities AVOption table</span>
<a name="l00397"></a>00397 <span class="comment"> * to implement capabilities probing API based on AVOption API. Should not be used directly.</span>
<a name="l00398"></a>00398 <span class="comment"> */</span>
<a name="l00399"></a><a class="code" href="structAVDeviceCapabilitiesQuery.html">00399</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structAVDeviceCapabilitiesQuery.html" title="Following API allows user to probe device capabilities (supported codecs, pixel formats, sample formats, resolutions, channel counts, etc).">AVDeviceCapabilitiesQuery</a> {
<a name="l00400"></a><a class="code" href="structAVDeviceCapabilitiesQuery.html#ac5c8e5089e1bf1212b24193c0368f954">00400</a>     <span class="keyword">const</span> <a class="code" href="structAVClass.html" title="Describe the class of an AVClass context structure.">AVClass</a> *<a class="code" href="structAVDeviceCapabilitiesQuery.html#ac5c8e5089e1bf1212b24193c0368f954">av_class</a>;
<a name="l00401"></a><a class="code" href="structAVDeviceCapabilitiesQuery.html#a97d7bfa2eacb9870273b02dd8ccfbe24">00401</a>     <a class="code" href="structAVFormatContext.html" title="Format I/O context.">AVFormatContext</a> *<a class="code" href="structAVDeviceCapabilitiesQuery.html#a97d7bfa2eacb9870273b02dd8ccfbe24">device_context</a>;
<a name="l00402"></a><a class="code" href="structAVDeviceCapabilitiesQuery.html#a6b090d7f3793b7ec15caa3f4739fdec0">00402</a>     <span class="keyword">enum</span> <a class="code" href="group__lavc__core.html#gaadca229ad2c20e060a14fec08a5cc7ce" title="Identify the syntax and semantics of the bitstream.">AVCodecID</a> <a class="code" href="structAVDeviceCapabilitiesQuery.html#a6b090d7f3793b7ec15caa3f4739fdec0">codec</a>;
<a name="l00403"></a><a class="code" href="structAVDeviceCapabilitiesQuery.html#ad2f5c18496a1f70ac6c38f3379411f0b">00403</a>     <span class="keyword">enum</span> <a class="code" href="group__lavu__sampfmts.html#gaf9a51ca15301871723577c730b5865c5" title="Audio sample formats.">AVSampleFormat</a> <a class="code" href="structAVDeviceCapabilitiesQuery.html#ad2f5c18496a1f70ac6c38f3379411f0b">sample_format</a>;
<a name="l00404"></a><a class="code" href="structAVDeviceCapabilitiesQuery.html#a794f536fac8ba6c778df7ded1fd5eb99">00404</a>     <span class="keyword">enum</span> <a class="code" href="pixfmt_8h.html#a9a8e335cf3be472042bc9f0cf80cd4c5" title="Pixel format.">AVPixelFormat</a> <a class="code" href="structAVDeviceCapabilitiesQuery.html#a794f536fac8ba6c778df7ded1fd5eb99">pixel_format</a>;
<a name="l00405"></a><a class="code" href="structAVDeviceCapabilitiesQuery.html#a094ff000e19b39981ad9a802557b773e">00405</a>     <span class="keywordtype">int</span> <a class="code" href="structAVDeviceCapabilitiesQuery.html#a094ff000e19b39981ad9a802557b773e">sample_rate</a>;
<a name="l00406"></a><a class="code" href="structAVDeviceCapabilitiesQuery.html#a9b92050015539fbc4a9f6555eb3a672b">00406</a>     <span class="keywordtype">int</span> <a class="code" href="structAVDeviceCapabilitiesQuery.html#a9b92050015539fbc4a9f6555eb3a672b">channels</a>;
<a name="l00407"></a><a class="code" href="structAVDeviceCapabilitiesQuery.html#afd9911687a45ef4c5094242f06bf6fae">00407</a>     int64_t <a class="code" href="structAVDeviceCapabilitiesQuery.html#afd9911687a45ef4c5094242f06bf6fae">channel_layout</a>;
<a name="l00408"></a><a class="code" href="structAVDeviceCapabilitiesQuery.html#af1003cea861179da74c546d4228cf20a">00408</a>     <span class="keywordtype">int</span> <a class="code" href="structAVDeviceCapabilitiesQuery.html#af1003cea861179da74c546d4228cf20a">window_width</a>;
<a name="l00409"></a><a class="code" href="structAVDeviceCapabilitiesQuery.html#a8625729bdff08b21445e88e1d538899d">00409</a>     <span class="keywordtype">int</span> <a class="code" href="structAVDeviceCapabilitiesQuery.html#a8625729bdff08b21445e88e1d538899d">window_height</a>;
<a name="l00410"></a><a class="code" href="structAVDeviceCapabilitiesQuery.html#a24268116864767bd084f8b5bbb896150">00410</a>     <span class="keywordtype">int</span> <a class="code" href="structAVDeviceCapabilitiesQuery.html#a24268116864767bd084f8b5bbb896150">frame_width</a>;
<a name="l00411"></a><a class="code" href="structAVDeviceCapabilitiesQuery.html#a0d44c3def566bbfb2b304de2cb779847">00411</a>     <span class="keywordtype">int</span> <a class="code" href="structAVDeviceCapabilitiesQuery.html#a0d44c3def566bbfb2b304de2cb779847">frame_height</a>;
<a name="l00412"></a><a class="code" href="structAVDeviceCapabilitiesQuery.html#a69a44cfb7d8fc9d706cfbe5a991ecaf7">00412</a>     <a class="code" href="structAVRational.html" title="rational number numerator/denominator">AVRational</a> <a class="code" href="structAVDeviceCapabilitiesQuery.html#a69a44cfb7d8fc9d706cfbe5a991ecaf7">fps</a>;
<a name="l00413"></a>00413 } <a class="code" href="structAVDeviceCapabilitiesQuery.html" title="Following API allows user to probe device capabilities (supported codecs, pixel formats, sample formats, resolutions, channel counts, etc).">AVDeviceCapabilitiesQuery</a>;
<a name="l00414"></a>00414 <span class="comment"></span>
<a name="l00415"></a>00415 <span class="comment">/**</span>
<a name="l00416"></a>00416 <span class="comment"> * AVOption table used by devices to implement device capabilities API. Should not be used by a user.</span>
<a name="l00417"></a>00417 <span class="comment"> */</span>
<a name="l00418"></a>00418 <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="structAVOption.html" title="AVOption.">AVOption</a> <a class="code" href="avdevice_8h.html#a1362af8ea203781c69bc644179388259" title="AVOption table used by devices to implement device capabilities API.">av_device_capabilities</a>[];
<a name="l00419"></a>00419 <span class="comment"></span>
<a name="l00420"></a>00420 <span class="comment">/**</span>
<a name="l00421"></a>00421 <span class="comment"> * Initialize capabilities probing API based on AVOption API.</span>
<a name="l00422"></a>00422 <span class="comment"> *</span>
<a name="l00423"></a>00423 <span class="comment"> * avdevice_capabilities_free() must be called when query capabilities API is</span>
<a name="l00424"></a>00424 <span class="comment"> * not used anymore.</span>
<a name="l00425"></a>00425 <span class="comment"> *</span>
<a name="l00426"></a>00426 <span class="comment"> * @param[out] caps      Device capabilities data. Pointer to a NULL pointer must be passed.</span>
<a name="l00427"></a>00427 <span class="comment"> * @param s              Context of the device.</span>
<a name="l00428"></a>00428 <span class="comment"> * @param device_options An AVDictionary filled with device-private options.</span>
<a name="l00429"></a>00429 <span class="comment"> *                       On return this parameter will be destroyed and replaced with a dict</span>
<a name="l00430"></a>00430 <span class="comment"> *                       containing options that were not found. May be NULL.</span>
<a name="l00431"></a>00431 <span class="comment"> *                       The same options must be passed later to avformat_write_header() for output</span>
<a name="l00432"></a>00432 <span class="comment"> *                       devices or avformat_open_input() for input devices, or at any other place</span>
<a name="l00433"></a>00433 <span class="comment"> *                       that affects device-private options.</span>
<a name="l00434"></a>00434 <span class="comment"> *</span>
<a name="l00435"></a>00435 <span class="comment"> * @return &gt;= 0 on success, negative otherwise.</span>
<a name="l00436"></a>00436 <span class="comment"> */</span>
<a name="l00437"></a>00437 <span class="keywordtype">int</span> <a class="code" href="avdevice_8h.html#af802f1388f3f209cbbc93d9ba983a341" title="Initialize capabilities probing API based on AVOption API.">avdevice_capabilities_create</a>(<a class="code" href="structAVDeviceCapabilitiesQuery.html" title="Following API allows user to probe device capabilities (supported codecs, pixel formats, sample formats, resolutions, channel counts, etc).">AVDeviceCapabilitiesQuery</a> **caps, <a class="code" href="structAVFormatContext.html" title="Format I/O context.">AVFormatContext</a> *s,
<a name="l00438"></a>00438                                  <a class="code" href="group__lavu__dict.html#ga1d7cc0833bee918994a600556410315f">AVDictionary</a> **device_options);
<a name="l00439"></a>00439 <span class="comment"></span>
<a name="l00440"></a>00440 <span class="comment">/**</span>
<a name="l00441"></a>00441 <span class="comment"> * Free resources created by avdevice_capabilities_create()</span>
<a name="l00442"></a>00442 <span class="comment"> *</span>
<a name="l00443"></a>00443 <span class="comment"> * @param caps Device capabilities data to be freed.</span>
<a name="l00444"></a>00444 <span class="comment"> * @param s    Context of the device.</span>
<a name="l00445"></a>00445 <span class="comment"> */</span>
<a name="l00446"></a>00446 <span class="keywordtype">void</span> <a class="code" href="avdevice_8h.html#a89c36d6e5698ad7dc2637226e1655dff" title="Free resources created by avdevice_capabilities_create()">avdevice_capabilities_free</a>(<a class="code" href="structAVDeviceCapabilitiesQuery.html" title="Following API allows user to probe device capabilities (supported codecs, pixel formats, sample formats, resolutions, channel counts, etc).">AVDeviceCapabilitiesQuery</a> **caps, <a class="code" href="structAVFormatContext.html" title="Format I/O context.">AVFormatContext</a> *s);
<a name="l00447"></a>00447 <span class="comment"></span>
<a name="l00448"></a>00448 <span class="comment">/**</span>
<a name="l00449"></a>00449 <span class="comment"> * Structure describes basic parameters of the device.</span>
<a name="l00450"></a>00450 <span class="comment"> */</span>
<a name="l00451"></a><a class="code" href="structAVDeviceInfo.html">00451</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structAVDeviceInfo.html" title="Structure describes basic parameters of the device.">AVDeviceInfo</a> {
<a name="l00452"></a><a class="code" href="structAVDeviceInfo.html#af856e00bdd54b7d87fc4afdf211c4757">00452</a>     <span class="keywordtype">char</span> *<a class="code" href="structAVDeviceInfo.html#af856e00bdd54b7d87fc4afdf211c4757" title="device name, format depends on device">device_name</a>;                   <span class="comment">/**&lt; device name, format depends on device */</span>
<a name="l00453"></a><a class="code" href="structAVDeviceInfo.html#a3d642926b6f45112cda628a395f6135a">00453</a>     <span class="keywordtype">char</span> *<a class="code" href="structAVDeviceInfo.html#a3d642926b6f45112cda628a395f6135a" title="human friendly name">device_description</a>;            <span class="comment">/**&lt; human friendly name */</span>
<a name="l00454"></a>00454 } <a class="code" href="structAVDeviceInfo.html" title="Structure describes basic parameters of the device.">AVDeviceInfo</a>;
<a name="l00455"></a>00455 <span class="comment"></span>
<a name="l00456"></a>00456 <span class="comment">/**</span>
<a name="l00457"></a>00457 <span class="comment"> * List of devices.</span>
<a name="l00458"></a>00458 <span class="comment"> */</span>
<a name="l00459"></a><a class="code" href="structAVDeviceInfoList.html">00459</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structAVDeviceInfoList.html" title="List of devices.">AVDeviceInfoList</a> {
<a name="l00460"></a><a class="code" href="structAVDeviceInfoList.html#ae2515bb1fe98693b85adbdf380d76cd8">00460</a>     <a class="code" href="structAVDeviceInfo.html" title="Structure describes basic parameters of the device.">AVDeviceInfo</a> **<a class="code" href="structAVDeviceInfoList.html#ae2515bb1fe98693b85adbdf380d76cd8" title="list of autodetected devices">devices</a>;              <span class="comment">/**&lt; list of autodetected devices */</span>
<a name="l00461"></a><a class="code" href="structAVDeviceInfoList.html#a8253ca399209d2cfd83667b78accbe28">00461</a>     <span class="keywordtype">int</span> <a class="code" href="structAVDeviceInfoList.html#a8253ca399209d2cfd83667b78accbe28" title="number of autodetected devices">nb_devices</a>;                      <span class="comment">/**&lt; number of autodetected devices */</span>
<a name="l00462"></a><a class="code" href="structAVDeviceInfoList.html#a88278f6896ae0b13d526c89014dac77b">00462</a>     <span class="keywordtype">int</span> <a class="code" href="structAVDeviceInfoList.html#a88278f6896ae0b13d526c89014dac77b" title="index of default device or -1 if no default">default_device</a>;                  <span class="comment">/**&lt; index of default device or -1 if no default */</span>
<a name="l00463"></a>00463 } <a class="code" href="structAVDeviceInfoList.html" title="List of devices.">AVDeviceInfoList</a>;
<a name="l00464"></a>00464 <span class="comment"></span>
<a name="l00465"></a>00465 <span class="comment">/**</span>
<a name="l00466"></a>00466 <span class="comment"> * List devices.</span>
<a name="l00467"></a>00467 <span class="comment"> *</span>
<a name="l00468"></a>00468 <span class="comment"> * Returns available device names and their parameters.</span>
<a name="l00469"></a>00469 <span class="comment"> *</span>
<a name="l00470"></a>00470 <span class="comment"> * @note: Some devices may accept system-dependent device names that cannot be</span>
<a name="l00471"></a>00471 <span class="comment"> *        autodetected. The list returned by this function cannot be assumed to</span>
<a name="l00472"></a>00472 <span class="comment"> *        be always completed.</span>
<a name="l00473"></a>00473 <span class="comment"> *</span>
<a name="l00474"></a>00474 <span class="comment"> * @param s                device context.</span>
<a name="l00475"></a>00475 <span class="comment"> * @param[out] device_list list of autodetected devices.</span>
<a name="l00476"></a>00476 <span class="comment"> * @return count of autodetected devices, negative on error.</span>
<a name="l00477"></a>00477 <span class="comment"> */</span>
<a name="l00478"></a>00478 <span class="keywordtype">int</span> <a class="code" href="avdevice_8h.html#a4bf9cc38ae904b9104fda1e4def71474" title="List devices.">avdevice_list_devices</a>(<span class="keyword">struct</span> <a class="code" href="structAVFormatContext.html" title="Format I/O context.">AVFormatContext</a> *s, <a class="code" href="structAVDeviceInfoList.html" title="List of devices.">AVDeviceInfoList</a> **device_list);
<a name="l00479"></a>00479 <span class="comment"></span>
<a name="l00480"></a>00480 <span class="comment">/**</span>
<a name="l00481"></a>00481 <span class="comment"> * Convenient function to free result of avdevice_list_devices().</span>
<a name="l00482"></a>00482 <span class="comment"> *</span>
<a name="l00483"></a>00483 <span class="comment"> * @param devices device list to be freed.</span>
<a name="l00484"></a>00484 <span class="comment"> */</span>
<a name="l00485"></a>00485 <span class="keywordtype">void</span> <a class="code" href="avdevice_8h.html#a52dcbb2d9ae0f33b7a89548b5a0c87bd" title="Convenient function to free result of avdevice_list_devices().">avdevice_free_list_devices</a>(<a class="code" href="structAVDeviceInfoList.html" title="List of devices.">AVDeviceInfoList</a> **device_list);
<a name="l00486"></a>00486 <span class="comment"></span>
<a name="l00487"></a>00487 <span class="comment">/**</span>
<a name="l00488"></a>00488 <span class="comment"> * List devices.</span>
<a name="l00489"></a>00489 <span class="comment"> *</span>
<a name="l00490"></a>00490 <span class="comment"> * Returns available device names and their parameters.</span>
<a name="l00491"></a>00491 <span class="comment"> * These are convinient wrappers for avdevice_list_devices().</span>
<a name="l00492"></a>00492 <span class="comment"> * Device context is allocated and deallocated internally.</span>
<a name="l00493"></a>00493 <span class="comment"> *</span>
<a name="l00494"></a>00494 <span class="comment"> * @param device           device format. May be NULL if device name is set.</span>
<a name="l00495"></a>00495 <span class="comment"> * @param device_name      device name. May be NULL if device format is set.</span>
<a name="l00496"></a>00496 <span class="comment"> * @param device_options   An AVDictionary filled with device-private options. May be NULL.</span>
<a name="l00497"></a>00497 <span class="comment"> *                         The same options must be passed later to avformat_write_header() for output</span>
<a name="l00498"></a>00498 <span class="comment"> *                         devices or avformat_open_input() for input devices, or at any other place</span>
<a name="l00499"></a>00499 <span class="comment"> *                         that affects device-private options.</span>
<a name="l00500"></a>00500 <span class="comment"> * @param[out] device_list list of autodetected devices</span>
<a name="l00501"></a>00501 <span class="comment"> * @return count of autodetected devices, negative on error.</span>
<a name="l00502"></a>00502 <span class="comment"> * @note device argument takes precedence over device_name when both are set.</span>
<a name="l00503"></a>00503 <span class="comment"> */</span>
<a name="l00504"></a>00504 <span class="keywordtype">int</span> <a class="code" href="avdevice_8h.html#a202488c6f1ed7e87b659c7b8df079e50" title="List devices.">avdevice_list_input_sources</a>(<span class="keyword">struct</span> <a class="code" href="structAVInputFormat.html">AVInputFormat</a> *device, <span class="keyword">const</span> <span class="keywordtype">char</span> *device_name,
<a name="l00505"></a>00505                                 <a class="code" href="group__lavu__dict.html#ga1d7cc0833bee918994a600556410315f">AVDictionary</a> *device_options, <a class="code" href="structAVDeviceInfoList.html" title="List of devices.">AVDeviceInfoList</a> **device_list);
<a name="l00506"></a>00506 <span class="keywordtype">int</span> <a class="code" href="avdevice_8h.html#a2227616998276fefe5e4221e478d667f">avdevice_list_output_sinks</a>(<span class="keyword">struct</span> <a class="code" href="structAVOutputFormat.html">AVOutputFormat</a> *device, <span class="keyword">const</span> <span class="keywordtype">char</span> *device_name,
<a name="l00507"></a>00507                                <a class="code" href="group__lavu__dict.html#ga1d7cc0833bee918994a600556410315f">AVDictionary</a> *device_options, <a class="code" href="structAVDeviceInfoList.html" title="List of devices.">AVDeviceInfoList</a> **device_list);
<a name="l00508"></a>00508 
<a name="l00509"></a>00509 <span class="preprocessor">#endif </span><span class="comment">/* AVDEVICE_AVDEVICE_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">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</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 &#160;<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>