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 / api / motion__vector_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"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>FFmpeg: libavutil/motion_vector.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<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">3.0.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<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>
<!-- 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>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Pages</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>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_8d855866ba5d436d839c7fc557836cd9.html">libavutil</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">motion_vector.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="motion__vector_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * This file is part of FFmpeg.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * FFmpeg is free software; you can redistribute it and/or</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * modify it under the terms of the GNU Lesser General Public</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * License as published by the Free Software Foundation; either</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * FFmpeg is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * Lesser General Public License for more details.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU Lesser General Public</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * License along with FFmpeg; if not, write to the Free Software</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#ifndef AVUTIL_MOTION_VECTOR_H</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define AVUTIL_MOTION_VECTOR_H</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="structAVMotionVector.html">   24</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structAVMotionVector.html">AVMotionVector</a> {<span class="comment"></span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">    /**</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">     * Where the current macroblock comes from; negative value when it comes</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">     * from the past, positive value when it comes from the future.</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">     * XXX: set exact relative ref frame reference instead of a +/- 1 &quot;direction&quot;.</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="structAVMotionVector.html#a0cb88b0996a7313be9f91b92b82819b7">   30</a></span>&#160;    int32_t <a class="code" href="structAVMotionVector.html#a0cb88b0996a7313be9f91b92b82819b7">source</a>;<span class="comment"></span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">    /**</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment">     * Width and height of the block.</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="structAVMotionVector.html#ae208462700b6b52d22ed38e9d62cf2cf">   34</a></span>&#160;    uint8_t <a class="code" href="structAVMotionVector.html#ae208462700b6b52d22ed38e9d62cf2cf">w</a>, <a class="code" href="structAVMotionVector.html#aaa41c9b570ff085251521a1198c1de9c">h</a>;<span class="comment"></span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment">    /**</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment">     * Absolute source position. Can be outside the frame area.</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="structAVMotionVector.html#a1b8d6c20870c520796eaf4ed05a4e8f3">   38</a></span>&#160;    int16_t <a class="code" href="structAVMotionVector.html#af1cf3b7f185df7d95107625bc10c5c59">src_x</a>, <a class="code" href="structAVMotionVector.html#a1b8d6c20870c520796eaf4ed05a4e8f3">src_y</a>;<span class="comment"></span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="comment">    /**</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment">     * Absolute destination position. Can be outside the frame area.</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="structAVMotionVector.html#af291ce180b66e55c0f6810f11fa7caa3">   42</a></span>&#160;    int16_t <a class="code" href="structAVMotionVector.html#a5d5d77435dccd823b781d4a9e8647eb0">dst_x</a>, <a class="code" href="structAVMotionVector.html#af291ce180b66e55c0f6810f11fa7caa3">dst_y</a>;<span class="comment"></span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment">    /**</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment">     * Extra flag information.</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="comment">     * Currently unused.</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="structAVMotionVector.html#a75d00ba82df36ec5e697527ddb9addcc">   47</a></span>&#160;    uint64_t <a class="code" href="structAVMotionVector.html#a75d00ba82df36ec5e697527ddb9addcc">flags</a>;<span class="comment"></span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="comment">    /**</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment">     * Motion vector</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="comment">     * src_x = dst_x + motion_x / motion_scale</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="comment">     * src_y = dst_y + motion_y / motion_scale</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structAVMotionVector.html#a34faca3d46c62fdcf4a78e2d219cdc5f">   53</a></span>&#160;    int32_t <a class="code" href="structAVMotionVector.html#ab3a7233188fccabc9501cd25fe8749ba">motion_x</a>, <a class="code" href="structAVMotionVector.html#a34faca3d46c62fdcf4a78e2d219cdc5f">motion_y</a>;</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="structAVMotionVector.html#a96f5e2a1cd18fc5ce9d3c13cfb34f4c0">   54</a></span>&#160;    uint16_t <a class="code" href="structAVMotionVector.html#a96f5e2a1cd18fc5ce9d3c13cfb34f4c0">motion_scale</a>;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;} <a class="code" href="structAVMotionVector.html">AVMotionVector</a>;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* AVUTIL_MOTION_VECTOR_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="structAVMotionVector_html_af1cf3b7f185df7d95107625bc10c5c59"><div class="ttname"><a href="structAVMotionVector.html#af1cf3b7f185df7d95107625bc10c5c59">AVMotionVector::src_x</a></div><div class="ttdeci">int16_t src_x</div><div class="ttdoc">Absolute source position. </div><div class="ttdef"><b>Definition:</b> <a href="motion__vector_8h_source.html#l00038">motion_vector.h:38</a></div></div>
<div class="ttc" id="structAVMotionVector_html_a5d5d77435dccd823b781d4a9e8647eb0"><div class="ttname"><a href="structAVMotionVector.html#a5d5d77435dccd823b781d4a9e8647eb0">AVMotionVector::dst_x</a></div><div class="ttdeci">int16_t dst_x</div><div class="ttdoc">Absolute destination position. </div><div class="ttdef"><b>Definition:</b> <a href="motion__vector_8h_source.html#l00042">motion_vector.h:42</a></div></div>
<div class="ttc" id="structAVMotionVector_html_a0cb88b0996a7313be9f91b92b82819b7"><div class="ttname"><a href="structAVMotionVector.html#a0cb88b0996a7313be9f91b92b82819b7">AVMotionVector::source</a></div><div class="ttdeci">int32_t source</div><div class="ttdoc">Where the current macroblock comes from; negative value when it comes from the past, positive value when it comes from the future. </div><div class="ttdef"><b>Definition:</b> <a href="motion__vector_8h_source.html#l00030">motion_vector.h:30</a></div></div>
<div class="ttc" id="structAVMotionVector_html_ae208462700b6b52d22ed38e9d62cf2cf"><div class="ttname"><a href="structAVMotionVector.html#ae208462700b6b52d22ed38e9d62cf2cf">AVMotionVector::w</a></div><div class="ttdeci">uint8_t w</div><div class="ttdoc">Width and height of the block. </div><div class="ttdef"><b>Definition:</b> <a href="motion__vector_8h_source.html#l00034">motion_vector.h:34</a></div></div>
<div class="ttc" id="structAVMotionVector_html_ab3a7233188fccabc9501cd25fe8749ba"><div class="ttname"><a href="structAVMotionVector.html#ab3a7233188fccabc9501cd25fe8749ba">AVMotionVector::motion_x</a></div><div class="ttdeci">int32_t motion_x</div><div class="ttdoc">Motion vector src_x = dst_x + motion_x / motion_scale src_y = dst_y + motion_y / motion_scale. </div><div class="ttdef"><b>Definition:</b> <a href="motion__vector_8h_source.html#l00053">motion_vector.h:53</a></div></div>
<div class="ttc" id="structAVMotionVector_html_a1b8d6c20870c520796eaf4ed05a4e8f3"><div class="ttname"><a href="structAVMotionVector.html#a1b8d6c20870c520796eaf4ed05a4e8f3">AVMotionVector::src_y</a></div><div class="ttdeci">int16_t src_y</div><div class="ttdef"><b>Definition:</b> <a href="motion__vector_8h_source.html#l00038">motion_vector.h:38</a></div></div>
<div class="ttc" id="structAVMotionVector_html_a34faca3d46c62fdcf4a78e2d219cdc5f"><div class="ttname"><a href="structAVMotionVector.html#a34faca3d46c62fdcf4a78e2d219cdc5f">AVMotionVector::motion_y</a></div><div class="ttdeci">int32_t motion_y</div><div class="ttdef"><b>Definition:</b> <a href="motion__vector_8h_source.html#l00053">motion_vector.h:53</a></div></div>
<div class="ttc" id="structAVMotionVector_html_aaa41c9b570ff085251521a1198c1de9c"><div class="ttname"><a href="structAVMotionVector.html#aaa41c9b570ff085251521a1198c1de9c">AVMotionVector::h</a></div><div class="ttdeci">uint8_t h</div><div class="ttdef"><b>Definition:</b> <a href="motion__vector_8h_source.html#l00034">motion_vector.h:34</a></div></div>
<div class="ttc" id="structAVMotionVector_html_a96f5e2a1cd18fc5ce9d3c13cfb34f4c0"><div class="ttname"><a href="structAVMotionVector.html#a96f5e2a1cd18fc5ce9d3c13cfb34f4c0">AVMotionVector::motion_scale</a></div><div class="ttdeci">uint16_t motion_scale</div><div class="ttdef"><b>Definition:</b> <a href="motion__vector_8h_source.html#l00054">motion_vector.h:54</a></div></div>
<div class="ttc" id="structAVMotionVector_html_a75d00ba82df36ec5e697527ddb9addcc"><div class="ttname"><a href="structAVMotionVector.html#a75d00ba82df36ec5e697527ddb9addcc">AVMotionVector::flags</a></div><div class="ttdeci">uint64_t flags</div><div class="ttdoc">Extra flag information. </div><div class="ttdef"><b>Definition:</b> <a href="motion__vector_8h_source.html#l00047">motion_vector.h:47</a></div></div>
<div class="ttc" id="structAVMotionVector_html"><div class="ttname"><a href="structAVMotionVector.html">AVMotionVector</a></div><div class="ttdef"><b>Definition:</b> <a href="motion__vector_8h_source.html#l00024">motion_vector.h:24</a></div></div>
<div class="ttc" id="structAVMotionVector_html_af291ce180b66e55c0f6810f11fa7caa3"><div class="ttname"><a href="structAVMotionVector.html#af291ce180b66e55c0f6810f11fa7caa3">AVMotionVector::dst_y</a></div><div class="ttdeci">int16_t dst_y</div><div class="ttdef"><b>Definition:</b> <a href="motion__vector_8h_source.html#l00042">motion_vector.h:42</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<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.8.6
</small></address>
</body>
</html>