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 / mathematics_8h.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: libavutil/mathematics.h File 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><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="summary">
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">libavutil/mathematics.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdint.h&gt;</code><br/>
<code>#include &lt;math.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="attributes_8h_source.html">attributes.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="rational_8h_source.html">rational.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="intfloat_8h_source.html">intfloat.h</a>&quot;</code><br/>
</div>
<p><a href="mathematics_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lavu__math.html#ga921d656eaf2c4d6800a734a13af021d0">AVRounding</a> { <br/>
&#160;&#160;<a class="el" href="group__lavu__math.html#gga921d656eaf2c4d6800a734a13af021d0a35e291756025351803b97f7522b56eab">AV_ROUND_ZERO</a> =  0, 
<a class="el" href="group__lavu__math.html#gga921d656eaf2c4d6800a734a13af021d0a0ac08aede35de739ec5d0c1ba6217126">AV_ROUND_INF</a> =  1, 
<a class="el" href="group__lavu__math.html#gga921d656eaf2c4d6800a734a13af021d0a4a4b2c2c77b7e20884440f7e57cfdb98">AV_ROUND_DOWN</a> =  2, 
<a class="el" href="group__lavu__math.html#gga921d656eaf2c4d6800a734a13af021d0aa1d28e08e2f8b49b256e056f93038c1a">AV_ROUND_UP</a> =  3, 
<br/>
&#160;&#160;<a class="el" href="group__lavu__math.html#gga921d656eaf2c4d6800a734a13af021d0aea95b00154ff83c740b46376dfa06e11">AV_ROUND_NEAR_INF</a> =  5, 
<a class="el" href="group__lavu__math.html#gga921d656eaf2c4d6800a734a13af021d0a7fcb56631d6898b282d6c78ce6c14a43">AV_ROUND_PASS_MINMAX</a> =  8192
<br/>
 }</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int64_t <a class="el" href="attributes_8h.html#a9eaead3cde73464fd66bab4cef9307ad">av_const</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lavu__math.html#ga952147c7a40c48a05c39e918b153ba99">av_gcd</a> (int64_t a, int64_t b)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the greatest common divisor of a and b.  <a href="group__lavu__math.html#ga952147c7a40c48a05c39e918b153ba99"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lavu__math.html#ga3daf97178dd1b08b5e916be381cd33e4">av_rescale</a> (int64_t a, int64_t b, int64_t c) <a class="el" href="attributes_8h.html#a9eaead3cde73464fd66bab4cef9307ad">av_const</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Rescale a 64-bit integer with rounding to nearest.  <a href="group__lavu__math.html#ga3daf97178dd1b08b5e916be381cd33e4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lavu__math.html#gad686ab94939ed4c65218309e94bdca72">av_rescale_rnd</a> (int64_t a, int64_t b, int64_t c, enum <a class="el" href="group__lavu__math.html#ga921d656eaf2c4d6800a734a13af021d0">AVRounding</a>) <a class="el" href="attributes_8h.html#a9eaead3cde73464fd66bab4cef9307ad">av_const</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Rescale a 64-bit integer with specified rounding.  <a href="group__lavu__math.html#gad686ab94939ed4c65218309e94bdca72"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lavu__math.html#gaf02994a8bbeaa91d4757df179cbe567f">av_rescale_q</a> (int64_t a, <a class="el" href="structAVRational.html">AVRational</a> bq, <a class="el" href="structAVRational.html">AVRational</a> cq) <a class="el" href="attributes_8h.html#a9eaead3cde73464fd66bab4cef9307ad">av_const</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Rescale a 64-bit integer by 2 rational numbers.  <a href="group__lavu__math.html#gaf02994a8bbeaa91d4757df179cbe567f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lavu__math.html#gac167a841d10ac919407e77ae35391cf3">av_rescale_q_rnd</a> (int64_t a, <a class="el" href="structAVRational.html">AVRational</a> bq, <a class="el" href="structAVRational.html">AVRational</a> cq, enum <a class="el" href="group__lavu__math.html#ga921d656eaf2c4d6800a734a13af021d0">AVRounding</a>) <a class="el" href="attributes_8h.html#a9eaead3cde73464fd66bab4cef9307ad">av_const</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Rescale a 64-bit integer by 2 rational numbers with specified rounding.  <a href="group__lavu__math.html#gac167a841d10ac919407e77ae35391cf3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lavu__math.html#ga151744358fff630942b926e67e67c415">av_compare_ts</a> (int64_t ts_a, <a class="el" href="structAVRational.html">AVRational</a> tb_a, int64_t ts_b, <a class="el" href="structAVRational.html">AVRational</a> tb_b)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compare 2 timestamps each in its own timebases.  <a href="group__lavu__math.html#ga151744358fff630942b926e67e67c415"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lavu__math.html#gaf268a1dde957d04da846e026e2ebe6e8">av_compare_mod</a> (uint64_t a, uint64_t b, uint64_t mod)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compare 2 integers modulo mod.  <a href="group__lavu__math.html#gaf268a1dde957d04da846e026e2ebe6e8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lavu__math.html#ga29b7c3d60d68ef678ee1f4adc61a25dc">av_rescale_delta</a> (<a class="el" href="structAVRational.html">AVRational</a> in_tb, int64_t in_ts, <a class="el" href="structAVRational.html">AVRational</a> fs_tb, int duration, int64_t *last, <a class="el" href="structAVRational.html">AVRational</a> out_tb)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Rescale a timestamp while preserving known durations.  <a href="group__lavu__math.html#ga29b7c3d60d68ef678ee1f4adc61a25dc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lavu__math.html#ga0c4f9ed3f4102125be7451ad4d848a2f">av_add_stable</a> (<a class="el" href="structAVRational.html">AVRational</a> ts_tb, int64_t ts, <a class="el" href="structAVRational.html">AVRational</a> inc_tb, int64_t inc)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a value to a timestamp.  <a href="group__lavu__math.html#ga0c4f9ed3f4102125be7451ad4d848a2f"></a><br/></td></tr>
</table>
</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>