Sophie

Sophie

distrib > Mandriva > 2010.0 > x86_64 > media > main-release > by-pkgid > f250c16c2b84c9364a2f35a71121aaa2 > files > 324

lib64dirac-devel-1.0.2-2mdv2010.0.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Dirac Video Codec</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<h1 align="center" color="#606080">
Dirac - A Video Codec
</h1>
<p align="center">
Created by the <a href="http://www.bbc.co.uk">British Broadcasting Corporation</a>.
</p>
<hr>
<!-- Generated by Doxygen 1.5.9 -->
<h1>me_subpel.h</h1><a href="a00195.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* ***** BEGIN LICENSE BLOCK *****</span>
<a name="l00002"></a>00002 <span class="comment">*</span>
<a name="l00003"></a>00003 <span class="comment">* $Id: me_subpel.h,v 1.15 2008/10/01 01:26:47 asuraparaju Exp $ $Name: Dirac_1_0_2 $</span>
<a name="l00004"></a>00004 <span class="comment">*</span>
<a name="l00005"></a>00005 <span class="comment">* Version: MPL 1.1/GPL 2.0/LGPL 2.1</span>
<a name="l00006"></a>00006 <span class="comment">*</span>
<a name="l00007"></a>00007 <span class="comment">* The contents of this file are subject to the Mozilla Public License</span>
<a name="l00008"></a>00008 <span class="comment">* Version 1.1 (the "License"); you may not use this file except in compliance</span>
<a name="l00009"></a>00009 <span class="comment">* with the License. You may obtain a copy of the License at</span>
<a name="l00010"></a>00010 <span class="comment">* http://www.mozilla.org/MPL/</span>
<a name="l00011"></a>00011 <span class="comment">*</span>
<a name="l00012"></a>00012 <span class="comment">* Software distributed under the License is distributed on an "AS IS" basis,</span>
<a name="l00013"></a>00013 <span class="comment">* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for</span>
<a name="l00014"></a>00014 <span class="comment">* the specific language governing rights and limitations under the License.</span>
<a name="l00015"></a>00015 <span class="comment">*</span>
<a name="l00016"></a>00016 <span class="comment">* The Original Code is BBC Research and Development code.</span>
<a name="l00017"></a>00017 <span class="comment">*</span>
<a name="l00018"></a>00018 <span class="comment">* The Initial Developer of the Original Code is the British Broadcasting</span>
<a name="l00019"></a>00019 <span class="comment">* Corporation.</span>
<a name="l00020"></a>00020 <span class="comment">* Portions created by the Initial Developer are Copyright (C) 2004.</span>
<a name="l00021"></a>00021 <span class="comment">* All Rights Reserved.</span>
<a name="l00022"></a>00022 <span class="comment">*</span>
<a name="l00023"></a>00023 <span class="comment">* Contributor(s): Thomas Davies (Original Author)</span>
<a name="l00024"></a>00024 <span class="comment">*</span>
<a name="l00025"></a>00025 <span class="comment">* Alternatively, the contents of this file may be used under the terms of</span>
<a name="l00026"></a>00026 <span class="comment">* the GNU General Public License Version 2 (the "GPL"), or the GNU Lesser</span>
<a name="l00027"></a>00027 <span class="comment">* Public License Version 2.1 (the "LGPL"), in which case the provisions of</span>
<a name="l00028"></a>00028 <span class="comment">* the GPL or the LGPL are applicable instead of those above. If you wish to</span>
<a name="l00029"></a>00029 <span class="comment">* allow use of your version of this file only under the terms of the either</span>
<a name="l00030"></a>00030 <span class="comment">* the GPL or LGPL and not to allow others to use your version of this file</span>
<a name="l00031"></a>00031 <span class="comment">* under the MPL, indicate your decision by deleting the provisions above</span>
<a name="l00032"></a>00032 <span class="comment">* and replace them with the notice and other provisions required by the GPL</span>
<a name="l00033"></a>00033 <span class="comment">* or LGPL. If you do not delete the provisions above, a recipient may use</span>
<a name="l00034"></a>00034 <span class="comment">* your version of this file under the terms of any one of the MPL, the GPL</span>
<a name="l00035"></a>00035 <span class="comment">* or the LGPL.</span>
<a name="l00036"></a>00036 <span class="comment">* ***** END LICENSE BLOCK ***** */</span>
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="preprocessor">#ifndef _ME_SUBPEL_H_</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define _ME_SUBPEL_H_</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span>
<a name="l00041"></a>00041 <span class="preprocessor">#include &lt;<a class="code" href="a00171.html">libdirac_common/common.h</a>&gt;</span>
<a name="l00042"></a>00042 <span class="preprocessor">#include &lt;<a class="code" href="a00200.html">libdirac_common/motion.h</a>&gt;</span>
<a name="l00043"></a>00043 <span class="preprocessor">#include &lt;<a class="code" href="a00167.html">libdirac_motionest/block_match.h</a>&gt;</span>
<a name="l00044"></a>00044 <span class="keyword">namespace </span>dirac
<a name="l00045"></a>00045 {
<a name="l00046"></a>00046 
<a name="l00047"></a>00047     <span class="keyword">class </span>EncQueue;
<a name="l00048"></a>00048     <span class="keyword">class </span>MvData;
<a name="l00049"></a>00049     <span class="keyword">class </span>PicArray;
<a name="l00050"></a>00050 
<a name="l00052"></a>00052 
<a name="l00058"></a><a class="code" href="a00143.html">00058</a>     <span class="keyword">class </span><a class="code" href="a00143.html" title="The SubpelRefine class takes pixel-accurate motion vectors and refines them to 1/8-pixel...">SubpelRefine</a>
<a name="l00059"></a>00059     {
<a name="l00060"></a>00060      <span class="keyword">public</span>:
<a name="l00062"></a>00062 
<a name="l00066"></a>00066         <a class="code" href="a00143.html#2ce90ec052919af33d6fc0abed7d32c0" title="Constructor.">SubpelRefine</a>(<span class="keyword">const</span> <a class="code" href="a00063.html" title="Parameters for the encoding process.">EncoderParams</a>&amp; encp);
<a name="l00067"></a>00067 
<a name="l00069"></a><a class="code" href="a00143.html#e6f7a45b3ed33abb3e0b74f88bb55841">00069</a>         <a class="code" href="a00143.html#e6f7a45b3ed33abb3e0b74f88bb55841" title="Destructor.">~SubpelRefine</a>(){}
<a name="l00070"></a>00070 
<a name="l00072"></a>00072 
<a name="l00077"></a>00077         <span class="keywordtype">void</span> <a class="code" href="a00143.html#23db51e3329ed2b5476e0506aebf1b3c" title="Does the actual sub-pixel refinement.">DoSubpel</a>( <a class="code" href="a00065.html" title="Holds pictures both for reference and to overcome reordering delay.">EncQueue</a>&amp; my_buffer , <span class="keywordtype">int</span> pic_num );
<a name="l00078"></a>00078 
<a name="l00079"></a>00079     <span class="keyword">private</span>:
<a name="l00081"></a>00081         <a class="code" href="a00143.html#2ce90ec052919af33d6fc0abed7d32c0" title="Constructor.">SubpelRefine</a>( <span class="keyword">const</span> <a class="code" href="a00143.html" title="The SubpelRefine class takes pixel-accurate motion vectors and refines them to 1/8-pixel...">SubpelRefine</a>&amp; cpy );
<a name="l00082"></a>00082 
<a name="l00084"></a>00084         <a class="code" href="a00143.html" title="The SubpelRefine class takes pixel-accurate motion vectors and refines them to 1/8-pixel...">SubpelRefine</a>&amp; <a class="code" href="a00143.html#38e6ec9661fe019e6b8996767377efe6" title="Private, body-less assignment=: this class should not be assigned.">operator=</a>( <span class="keyword">const</span> <a class="code" href="a00143.html" title="The SubpelRefine class takes pixel-accurate motion vectors and refines them to 1/8-pixel...">SubpelRefine</a>&amp; rhs );
<a name="l00085"></a>00085 
<a name="l00087"></a>00087         <span class="keywordtype">void</span> <a class="code" href="a00143.html#e1e3f12f2b28c06b2d7f2c4ad526fa47" title="Match a picture from its (upconverted) reference, and record the block mvs.">MatchPic</a>(<span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; pic_data , <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; refup_data , <a class="code" href="a00082.html" title="Class for all the motion estimation data.">MEData</a>&amp; me_data ,
<a name="l00088"></a>00088                                  <span class="keywordtype">int</span> ref_id);
<a name="l00089"></a>00089 
<a name="l00091"></a>00091         <span class="keywordtype">void</span> <a class="code" href="a00143.html#ba70ff0b5ba9a02a1f4040660598cd84" title="Match an individual block.">DoBlock</a>( <span class="keyword">const</span> <span class="keywordtype">int</span> xblock , <span class="keyword">const</span> <span class="keywordtype">int</span> yblock ,
<a name="l00092"></a>00092                       <a class="code" href="a00015.html" title="Class to do block matching.">BlockMatcher</a>&amp; my_bmatch, <a class="code" href="a00082.html" title="Class for all the motion estimation data.">MEData</a>&amp; me_data , <span class="keyword">const</span> <span class="keywordtype">int</span> ref_id );
<a name="l00093"></a>00093 
<a name="l00095"></a>00095         <a class="code" href="a00091.html" title="Motion vector class - just a pair.">MVector</a> <a class="code" href="a00143.html#e0743f59c4f38bdc76b5f553114e86e3" title="Get a prediction for a block MV from the neighbouring blocks.">GetPred</a>( <span class="keywordtype">int</span> xblock , <span class="keywordtype">int</span> yblock , <span class="keyword">const</span> <a class="code" href="a00145.html" title="A template class for two-dimensional arrays.">MvArray</a>&amp; mvarray );
<a name="l00096"></a>00096 
<a name="l00097"></a>00097         <span class="comment">//member variables</span>
<a name="l00098"></a>00098 
<a name="l00100"></a><a class="code" href="a00143.html#681a0edad26574f305c7a8a08fb9e885">00100</a>         <span class="keyword">const</span> <a class="code" href="a00063.html" title="Parameters for the encoding process.">EncoderParams</a>&amp; <a class="code" href="a00143.html#681a0edad26574f305c7a8a08fb9e885" title="Local reference to the encoder params.">m_encparams</a>;
<a name="l00101"></a>00101 
<a name="l00103"></a><a class="code" href="a00143.html#f4e8b453a2dacb1e2e3d982072a77d1f">00103</a>         <span class="keyword">const</span> <a class="code" href="a00114.html" title="Structure to hold motion parameters when motion comp is used.">PicturePredParams</a>* <a class="code" href="a00143.html#f4e8b453a2dacb1e2e3d982072a77d1f" title="A local pointer to the encoder params.">m_predparams</a>;
<a name="l00104"></a>00104 
<a name="l00106"></a><a class="code" href="a00143.html#1bd4118fa06016053bc801c26fd02eeb">00106</a>         <a class="code" href="a00234.html#7a049e12b5746a1b3da88a3e94d04069">CandidateList</a> <a class="code" href="a00143.html#1bd4118fa06016053bc801c26fd02eeb" title="The list of candidate vectors being tested.">m_cand_list</a>;
<a name="l00107"></a>00107 
<a name="l00109"></a><a class="code" href="a00143.html#5ae5afb3c166516f7fe090dd3a2a0af4">00109</a>         <a class="code" href="a00097.html">OneDArray&lt;ImageCoords&gt;</a> <a class="code" href="a00143.html#5ae5afb3c166516f7fe090dd3a2a0af4" title="The relative coords of the set of neighbours used to generate MV predictions.">m_nshift</a>;
<a name="l00110"></a>00110 
<a name="l00111"></a>00111     };
<a name="l00112"></a>00112 
<a name="l00113"></a>00113 } <span class="comment">// namespace dirac</span>
<a name="l00114"></a>00114 
<a name="l00115"></a>00115 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr>
<p align="center"><small>
&copy; 2004 British Broadcasting Corporation.
Dirac code licensed under the <a href="http://www.mozilla.org/MPL/">Mozilla Public License (MPL) Version 1.1</a>.<br>
HTML documentation generated by Dimitri van Heesch's
excellent <a href="http://www.doxygen.org">Doxygen</a> tool.
</small></p>
</body>
</html>