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 / structAVOptionRanges.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: AVOptionRanges Struct Reference</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 class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><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="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">AVOptionRanges Struct Reference<div class="ingroups"><a class="el" href="group__avoptions.html">AVOptions</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="AVOptionRanges" -->
<p>List of <a class="el" href="structAVOptionRange.html" title="A single allowed range of values, or a single allowed value.">AVOptionRange</a> structs.  
 <a href="structAVOptionRanges.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="opt_8h_source.html">opt.h</a>&gt;</code></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structAVOptionRange.html">AVOptionRange</a> **&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVOptionRanges.html#a6e081daa7e707607e63165909b0995ce">range</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Array of option ranges.  <a href="#a6e081daa7e707607e63165909b0995ce"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVOptionRanges.html#a4cc8d5b5afbb07ae49357a7e0d6a2517">nb_ranges</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of ranges per component.  <a href="#a4cc8d5b5afbb07ae49357a7e0d6a2517"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVOptionRanges.html#aff53b7303e862ed17b10237ca52ce8a8">nb_components</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of componentes.  <a href="#aff53b7303e862ed17b10237ca52ce8a8"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>List of <a class="el" href="structAVOptionRange.html" title="A single allowed range of values, or a single allowed value.">AVOptionRange</a> structs. </p>

<p>Definition at line <a class="el" href="opt_8h_source.html#l00339">339</a> of file <a class="el" href="opt_8h_source.html">opt.h</a>.</p>
</div><hr/><h2>Field Documentation</h2>
<a class="anchor" id="a6e081daa7e707607e63165909b0995ce"></a><!-- doxytag: member="AVOptionRanges::range" ref="a6e081daa7e707607e63165909b0995ce" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structAVOptionRange.html">AVOptionRange</a>** <a class="el" href="structAVOptionRanges.html#a6e081daa7e707607e63165909b0995ce">AVOptionRanges::range</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Array of option ranges. </p>
<p>Most of option types use just one component. Following describes multi-component option types:</p>
<p>AV_OPT_TYPE_IMAGE_SIZE: component index 0: range of pixel count (width * height). component index 1: range of width. component index 2: range of height.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>To obtain multi-component version of this structure, user must provide AV_OPT_MULTI_COMPONENT_RANGE to av_opt_query_ranges or av_opt_query_ranges_default function.</dd></dl>
<p>Multi-component range can be read as in following example:</p>
<div class="fragment"><pre class="fragment"> <span class="keywordtype">int</span> range_index, component_index;
 <a class="code" href="structAVOptionRanges.html" title="List of AVOptionRange structs.">AVOptionRanges</a> *ranges;
 <a class="code" href="structAVOptionRange.html" title="A single allowed range of values, or a single allowed value.">AVOptionRange</a> *<a class="code" href="structAVOptionRanges.html#a6e081daa7e707607e63165909b0995ce" title="Array of option ranges.">range</a>[3]; <span class="comment">//may require more than 3 in the future.</span>
 <a class="code" href="group__avoptions.html#ga9751db4da3e0facd522f5b345f4001ef" title="Get a list of allowed ranges for the given option.">av_opt_query_ranges</a>(&amp;ranges, obj, key, <a class="code" href="group__avoptions.html#ga1f10d07c79eec8bd1a8e1b91817e1b1a" title="Allows av_opt_query_ranges and av_opt_query_ranges_default to return more than one component for cert...">AV_OPT_MULTI_COMPONENT_RANGE</a>);
 <span class="keywordflow">for</span> (range_index = 0; range_index &lt; ranges-&gt;<a class="code" href="structAVOptionRanges.html#a4cc8d5b5afbb07ae49357a7e0d6a2517" title="Number of ranges per component.">nb_ranges</a>; range_index++) {
     <span class="keywordflow">for</span> (component_index = 0; component_index &lt; ranges-&gt;<a class="code" href="structAVOptionRanges.html#aff53b7303e862ed17b10237ca52ce8a8" title="Number of componentes.">nb_components</a>; component_index++)
         range[component_index] = ranges-&gt;<a class="code" href="structAVOptionRanges.html#a6e081daa7e707607e63165909b0995ce" title="Array of option ranges.">range</a>[ranges-&gt;<a class="code" href="structAVOptionRanges.html#a4cc8d5b5afbb07ae49357a7e0d6a2517" title="Number of ranges per component.">nb_ranges</a> * component_index + range_index];
     <span class="comment">//do something with range here.</span>
 }
 <a class="code" href="group__avoptions.html#ga880756f24644ff66c806ed2d9ab3d790" title="Free an AVOptionRanges struct and set it to NULL.">av_opt_freep_ranges</a>(&amp;ranges);
</pre></div> 
<p>Definition at line <a class="el" href="opt_8h_source.html#l00370">370</a> of file <a class="el" href="opt_8h_source.html">opt.h</a>.</p>

</div>
</div>
<a class="anchor" id="a4cc8d5b5afbb07ae49357a7e0d6a2517"></a><!-- doxytag: member="AVOptionRanges::nb_ranges" ref="a4cc8d5b5afbb07ae49357a7e0d6a2517" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="structAVOptionRanges.html#a4cc8d5b5afbb07ae49357a7e0d6a2517">AVOptionRanges::nb_ranges</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Number of ranges per component. </p>

<p>Definition at line <a class="el" href="opt_8h_source.html#l00374">374</a> of file <a class="el" href="opt_8h_source.html">opt.h</a>.</p>

</div>
</div>
<a class="anchor" id="aff53b7303e862ed17b10237ca52ce8a8"></a><!-- doxytag: member="AVOptionRanges::nb_components" ref="aff53b7303e862ed17b10237ca52ce8a8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="structAVOptionRanges.html#aff53b7303e862ed17b10237ca52ce8a8">AVOptionRanges::nb_components</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Number of componentes. </p>

<p>Definition at line <a class="el" href="opt_8h_source.html#l00378">378</a> of file <a class="el" href="opt_8h_source.html">opt.h</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>libavutil/<a class="el" href="opt_8h_source.html">opt.h</a></li>
</ul>
</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>