Sophie

Sophie

distrib > Mandriva > 2010.0 > x86_64 > by-pkgid > f250c16c2b84c9364a2f35a71121aaa2 > files > 326

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_utils.h</h1><a href="a00196.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_utils.h,v 1.14 2008/08/14 00:58:24 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_UTILS_H_</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define _ME_UTILS_H_</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span>
<a name="l00041"></a>00041 <span class="preprocessor">#include &lt;algorithm&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="a00171.html">libdirac_common/common.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="l00048"></a>00048     <span class="comment">//Utilities for motion estimation//</span>
<a name="l00049"></a>00049     <span class="comment">//-------------------------------//</span>
<a name="l00051"></a>00051 <span class="comment"></span>
<a name="l00053"></a><a class="code" href="a00012.html">00053</a>     <span class="keyword">class </span><a class="code" href="a00012.html" title="A class encapsulating parameters for calculating a block difference value (a single...">BlockDiffParams</a>
<a name="l00054"></a>00054     {
<a name="l00055"></a>00055 
<a name="l00056"></a>00056     <span class="keyword">public</span>:
<a name="l00058"></a><a class="code" href="a00012.html#93ea5f9b212ab1b3c10bc580822bca6d">00058</a>         <a class="code" href="a00012.html#93ea5f9b212ab1b3c10bc580822bca6d" title="Constructor.">BlockDiffParams</a>(){}
<a name="l00059"></a>00059 
<a name="l00061"></a><a class="code" href="a00012.html#0d836721bf95d3dd7aa17c68cf6cc741">00061</a>         <a class="code" href="a00012.html#93ea5f9b212ab1b3c10bc580822bca6d" title="Constructor.">BlockDiffParams</a>( <span class="keyword">const</span> <span class="keywordtype">int</span> x_p , <span class="keyword">const</span> <span class="keywordtype">int</span> y_p , <span class="keyword">const</span> <span class="keywordtype">int</span> x_l , <span class="keyword">const</span> <span class="keywordtype">int</span> y_l):
<a name="l00062"></a>00062             <a class="code" href="a00012.html#6773519a8b71d5630d3c3c3bc5e5f867">m_xp</a>(x_p),
<a name="l00063"></a>00063             <a class="code" href="a00012.html#3e81436f4f1a0c1df75f09c0f3a4f4aa">m_yp</a>(y_p),
<a name="l00064"></a>00064             <a class="code" href="a00012.html#bcabad59e912f8b62a005afb31e05c3c">m_xl</a>(x_l),
<a name="l00065"></a>00065             <a class="code" href="a00012.html#cafbaac8aa23c54bc7c07f62f34e3178">m_yl</a>(y_l),
<a name="l00066"></a>00066             <a class="code" href="a00012.html#ff9819499530e21d878f6277d2d4df75">m_xend</a>(x_l+x_p),
<a name="l00067"></a>00067             <a class="code" href="a00012.html#2367161af4dee4dc78ffe2caf5a82ee4">m_yend</a>(y_l+y_p)
<a name="l00068"></a>00068         {}
<a name="l00069"></a>00069 
<a name="l00071"></a>00071         <span class="comment">//NB: Assume default copy constructor, assignment = and destructor//</span>
<a name="l00073"></a>00073 <span class="comment"></span>
<a name="l00074"></a>00074         <span class="comment">// Sets ...</span>
<a name="l00075"></a>00075 
<a name="l00076"></a>00076 
<a name="l00078"></a>00078         
<a name="l00079"></a>00079         <span class="keywordtype">void</span> <a class="code" href="a00012.html#a9e9dda5648751361140cc877c61024c" title="Set the limits of the block to fit in a picture.">SetBlockLimits</a>( <span class="keyword">const</span> <a class="code" href="a00096.html" title="Parameters for overlapped block motion compensation.">OLBParams</a>&amp; bparams ,
<a name="l00080"></a>00080                              <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; pic_data , 
<a name="l00081"></a>00081                              <span class="keyword">const</span> <span class="keywordtype">int</span> xbpos , <span class="keyword">const</span> <span class="keywordtype">int</span> ybpos);
<a name="l00082"></a>00082 
<a name="l00083"></a>00083         <span class="comment">// ... and gets</span>
<a name="l00084"></a>00084 
<a name="l00086"></a><a class="code" href="a00012.html#ee4e31795d863144342b4cfe558c5577">00086</a>         <span class="keywordtype">int</span> <a class="code" href="a00012.html#ee4e31795d863144342b4cfe558c5577" title="Return the x-position of the top-left block corner.">Xp</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="a00012.html#6773519a8b71d5630d3c3c3bc5e5f867">m_xp</a>;}
<a name="l00087"></a>00087 
<a name="l00089"></a><a class="code" href="a00012.html#c6852325eb20b33336864ee3bdf79e96">00089</a>         <span class="keywordtype">int</span> <a class="code" href="a00012.html#c6852325eb20b33336864ee3bdf79e96" title="Return the y-position of the top-left block corner.">Yp</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="a00012.html#3e81436f4f1a0c1df75f09c0f3a4f4aa">m_yp</a>;}
<a name="l00090"></a>00090 
<a name="l00092"></a><a class="code" href="a00012.html#8314a7a997a8432d690e262ba549ade9">00092</a>         <span class="keywordtype">int</span> <a class="code" href="a00012.html#8314a7a997a8432d690e262ba549ade9" title="Return the block width.">Xl</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="a00012.html#bcabad59e912f8b62a005afb31e05c3c">m_xl</a>;}
<a name="l00093"></a>00093 
<a name="l00095"></a><a class="code" href="a00012.html#c7088dde3b797375fc5c183d5a409651">00095</a>         <span class="keywordtype">int</span> <a class="code" href="a00012.html#c7088dde3b797375fc5c183d5a409651" title="Return the block height.">Yl</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="a00012.html#cafbaac8aa23c54bc7c07f62f34e3178">m_yl</a>;}
<a name="l00096"></a>00096 
<a name="l00098"></a><a class="code" href="a00012.html#8da41ebf051a16a3b424108a22c58c72">00098</a>         <span class="keywordtype">int</span> <a class="code" href="a00012.html#8da41ebf051a16a3b424108a22c58c72" title="Return the block horizontal endpoint.">Xend</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="a00012.html#ff9819499530e21d878f6277d2d4df75">m_xend</a>;}
<a name="l00099"></a>00099 
<a name="l00101"></a><a class="code" href="a00012.html#3b10660705533c01c5d5fdaeb00bdd50">00101</a>         <span class="keywordtype">int</span> <a class="code" href="a00012.html#3b10660705533c01c5d5fdaeb00bdd50" title="Return the block vertical endpoint.">Yend</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="a00012.html#2367161af4dee4dc78ffe2caf5a82ee4">m_yend</a>;}
<a name="l00102"></a>00102 
<a name="l00103"></a>00103     <span class="keyword">private</span>: 
<a name="l00104"></a>00104 
<a name="l00105"></a><a class="code" href="a00012.html#6773519a8b71d5630d3c3c3bc5e5f867">00105</a>         <span class="keywordtype">int</span> <a class="code" href="a00012.html#6773519a8b71d5630d3c3c3bc5e5f867">m_xp</a>;
<a name="l00106"></a><a class="code" href="a00012.html#3e81436f4f1a0c1df75f09c0f3a4f4aa">00106</a>         <span class="keywordtype">int</span> <a class="code" href="a00012.html#3e81436f4f1a0c1df75f09c0f3a4f4aa">m_yp</a>;
<a name="l00107"></a><a class="code" href="a00012.html#bcabad59e912f8b62a005afb31e05c3c">00107</a>         <span class="keywordtype">int</span> <a class="code" href="a00012.html#bcabad59e912f8b62a005afb31e05c3c">m_xl</a>;
<a name="l00108"></a><a class="code" href="a00012.html#cafbaac8aa23c54bc7c07f62f34e3178">00108</a>         <span class="keywordtype">int</span> <a class="code" href="a00012.html#cafbaac8aa23c54bc7c07f62f34e3178">m_yl</a>;
<a name="l00109"></a><a class="code" href="a00012.html#ff9819499530e21d878f6277d2d4df75">00109</a>         <span class="keywordtype">int</span> <a class="code" href="a00012.html#ff9819499530e21d878f6277d2d4df75">m_xend</a>;
<a name="l00110"></a><a class="code" href="a00012.html#2367161af4dee4dc78ffe2caf5a82ee4">00110</a>         <span class="keywordtype">int</span> <a class="code" href="a00012.html#2367161af4dee4dc78ffe2caf5a82ee4">m_yend</a>;
<a name="l00111"></a>00111     };
<a name="l00112"></a>00112 
<a name="l00114"></a>00114     <span class="comment">//----Different difference classes, so that-----//</span>
<a name="l00115"></a>00115     <span class="comment">//bounds-checking need only be done as necessary//</span>
<a name="l00117"></a>00117 <span class="comment"></span>
<a name="l00119"></a><a class="code" href="a00009.html">00119</a>     <span class="keyword">class </span><a class="code" href="a00009.html" title="An abstract class for doing block difference calculations.">BlockDiff</a>
<a name="l00120"></a>00120     {
<a name="l00121"></a>00121     <span class="keyword">public</span>:
<a name="l00123"></a>00123         <span class="comment">/*</span>
<a name="l00124"></a>00124 <span class="comment">             Constructor, initialising the reference and picture data</span>
<a name="l00125"></a>00125 <span class="comment">             \param  ref  the reference picture</span>
<a name="l00126"></a>00126 <span class="comment">             \param  pic  the picture being matched</span>
<a name="l00127"></a>00127 <span class="comment">        */</span>
<a name="l00128"></a>00128         <a class="code" href="a00009.html#61a756289563af5b75382e7fb0ac48ff" title="Constructor, initialising the reference and picture data.">BlockDiff</a>( <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; ref , <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; pic );
<a name="l00129"></a>00129 
<a name="l00131"></a><a class="code" href="a00009.html#57aa1bf6c9085027f7aeaaed8317827a">00131</a>         <span class="keyword">virtual</span> <a class="code" href="a00009.html#57aa1bf6c9085027f7aeaaed8317827a" title="Destructor.">~BlockDiff</a>(){}
<a name="l00132"></a>00132 
<a name="l00134"></a>00134 
<a name="l00139"></a>00139         <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="a00009.html#52568a419c4872b7540529b49e34f5c0" title="Do the difference, returning SAD.">Diff</a>(  <span class="keyword">const</span> <a class="code" href="a00012.html" title="A class encapsulating parameters for calculating a block difference value (a single...">BlockDiffParams</a>&amp; dparams , <span class="keyword">const</span> <a class="code" href="a00091.html" title="Motion vector class - just a pair.">MVector</a>&amp; mv )=0;
<a name="l00140"></a>00140 
<a name="l00141"></a>00141     <span class="keyword">protected</span>:
<a name="l00142"></a>00142 
<a name="l00143"></a><a class="code" href="a00009.html#5df06a57f393063c4179ab8fecc938f4">00143</a>         <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; <a class="code" href="a00009.html#5df06a57f393063c4179ab8fecc938f4">m_pic_data</a>;
<a name="l00144"></a><a class="code" href="a00009.html#ef1cabb3b7db765287f378ff5a0bb484">00144</a>         <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; <a class="code" href="a00009.html#ef1cabb3b7db765287f378ff5a0bb484">m_ref_data</a>;
<a name="l00145"></a>00145 
<a name="l00146"></a>00146     <span class="keyword">private</span>:
<a name="l00148"></a>00148         <a class="code" href="a00009.html#61a756289563af5b75382e7fb0ac48ff" title="Constructor, initialising the reference and picture data.">BlockDiff</a>( <span class="keyword">const</span> <a class="code" href="a00009.html" title="An abstract class for doing block difference calculations.">BlockDiff</a>&amp; cpy );            
<a name="l00149"></a>00149 
<a name="l00151"></a>00151         <a class="code" href="a00009.html" title="An abstract class for doing block difference calculations.">BlockDiff</a>&amp; <a class="code" href="a00009.html#cf223af1ae9f26a9c35fed95f66b40ba" title="Private, bodyless assignment=: class should not be assigned.">operator=</a>( <span class="keyword">const</span> <a class="code" href="a00009.html" title="An abstract class for doing block difference calculations.">BlockDiff</a>&amp; rhs );    
<a name="l00152"></a>00152     };
<a name="l00153"></a>00153 
<a name="l00155"></a><a class="code" href="a00106.html">00155</a>     <span class="keyword">class </span><a class="code" href="a00106.html" title="A class for doing block differences to pixel accuracy, inherited from BlockDiff.">PelBlockDiff</a>: <span class="keyword">public</span> <a class="code" href="a00009.html" title="An abstract class for doing block difference calculations.">BlockDiff</a>
<a name="l00156"></a>00156     {
<a name="l00157"></a>00157     <span class="keyword">public</span>:
<a name="l00159"></a>00159         <span class="comment">/*</span>
<a name="l00160"></a>00160 <span class="comment">             Constructor, initialising the reference and picture data</span>
<a name="l00161"></a>00161 <span class="comment">             \param  ref  the reference picture</span>
<a name="l00162"></a>00162 <span class="comment">             \param  pic  the picture being matched</span>
<a name="l00163"></a>00163 <span class="comment">        */</span>
<a name="l00164"></a>00164         <a class="code" href="a00106.html#2cacbbd386853b8e81da37ddfa223885" title="Constructor, initialising the reference and picture data.">PelBlockDiff</a>( <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; ref , <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; pic );
<a name="l00165"></a>00165 
<a name="l00167"></a>00167 
<a name="l00172"></a>00172         <span class="keywordtype">float</span> <a class="code" href="a00106.html#b1976983be29af6076165356e5209c52" title="Do the difference, returning SAD.">Diff</a>(  <span class="keyword">const</span> <a class="code" href="a00012.html" title="A class encapsulating parameters for calculating a block difference value (a single...">BlockDiffParams</a>&amp; dparams , <span class="keyword">const</span> <a class="code" href="a00091.html">MVector</a>&amp; mv );
<a name="l00173"></a>00173 
<a name="l00175"></a>00175 
<a name="l00183"></a>00183         <span class="keywordtype">void</span> <a class="code" href="a00106.html#b1976983be29af6076165356e5209c52" title="Do the difference, returning SAD.">Diff</a>(  <span class="keyword">const</span> <a class="code" href="a00012.html" title="A class encapsulating parameters for calculating a block difference value (a single...">BlockDiffParams</a>&amp; dparams ,
<a name="l00184"></a>00184                     <span class="keyword">const</span> <a class="code" href="a00091.html">MVector</a>&amp; mv ,
<a name="l00185"></a>00185                     <span class="keywordtype">float</span>&amp; best_sum , 
<a name="l00186"></a>00186                     <a class="code" href="a00091.html">MVector</a>&amp; best_mv ); 
<a name="l00187"></a>00187 
<a name="l00188"></a>00188     <span class="keyword">private</span>:
<a name="l00190"></a>00190         <a class="code" href="a00106.html#2cacbbd386853b8e81da37ddfa223885" title="Constructor, initialising the reference and picture data.">PelBlockDiff</a>(<span class="keyword">const</span> <a class="code" href="a00106.html" title="A class for doing block differences to pixel accuracy, inherited from BlockDiff.">PelBlockDiff</a>&amp; cpy);
<a name="l00191"></a>00191 
<a name="l00193"></a>00193         <a class="code" href="a00106.html" title="A class for doing block differences to pixel accuracy, inherited from BlockDiff.">PelBlockDiff</a>&amp; <a class="code" href="a00106.html#2195ec13bd1637b111e926fb9d560265" title="Private, bodyless assignment=: class should not be assigned.">operator=</a>(<span class="keyword">const</span> <a class="code" href="a00106.html" title="A class for doing block differences to pixel accuracy, inherited from BlockDiff.">PelBlockDiff</a>&amp; rhs);
<a name="l00194"></a>00194     };
<a name="l00195"></a>00195 
<a name="l00196"></a>00196 
<a name="l00198"></a><a class="code" href="a00078.html">00198</a>     <span class="keyword">class </span><a class="code" href="a00078.html" title="A class for calculating the difference between a block and its DC value (average)...">IntraBlockDiff</a>
<a name="l00199"></a>00199     {
<a name="l00200"></a>00200     <span class="keyword">public</span>:
<a name="l00202"></a>00202         <span class="comment">/*</span>
<a name="l00203"></a>00203 <span class="comment">             Constructor, initialising the picture data</span>
<a name="l00204"></a>00204 <span class="comment">             \param  pic  the picture being matched</span>
<a name="l00205"></a>00205 <span class="comment">        */</span>
<a name="l00206"></a>00206         <a class="code" href="a00078.html#e93b6dcfff27ae7f444dca87c777c042" title="Constructor, initialising the picture data.">IntraBlockDiff</a>( <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; pic );
<a name="l00207"></a>00207 
<a name="l00209"></a>00209 
<a name="l00214"></a>00214         <span class="keywordtype">float</span> <a class="code" href="a00078.html#be1e6ccbad90196a70ea1fa0de9b8c73" title="Do the difference, calculating the DC value and returning SAD.">Diff</a>( <span class="keyword">const</span> <a class="code" href="a00012.html" title="A class encapsulating parameters for calculating a block difference value (a single...">BlockDiffParams</a>&amp; dparams , <a class="code" href="a00234.html#548820ca76f864dc8630df79b2c5c5b9" title="Type of picture data (including motion compensated residuals).">ValueType</a>&amp; dc_val );
<a name="l00215"></a>00215 
<a name="l00217"></a>00217     <a class="code" href="a00234.html#548820ca76f864dc8630df79b2c5c5b9" title="Type of picture data (including motion compensated residuals).">ValueType</a> <a class="code" href="a00078.html#c76d8da6d06af286dd3a105f574c7986" title="Calculate a DC value.">CalcDC</a>( <span class="keyword">const</span> <a class="code" href="a00012.html" title="A class encapsulating parameters for calculating a block difference value (a single...">BlockDiffParams</a>&amp; dparams);
<a name="l00218"></a>00218 
<a name="l00219"></a>00219     <span class="keyword">private</span>:
<a name="l00221"></a>00221         <a class="code" href="a00078.html#e93b6dcfff27ae7f444dca87c777c042" title="Constructor, initialising the picture data.">IntraBlockDiff</a>(<span class="keyword">const</span> <a class="code" href="a00078.html" title="A class for calculating the difference between a block and its DC value (average)...">IntraBlockDiff</a>&amp; cpy);
<a name="l00222"></a>00222 
<a name="l00224"></a>00224         <a class="code" href="a00078.html" title="A class for calculating the difference between a block and its DC value (average)...">IntraBlockDiff</a>&amp; <a class="code" href="a00078.html#a79c12519b7b5696614c374ca3db47e1" title="Private, bodyless assignment=: class should not be assigned.">operator=</a>(<span class="keyword">const</span> <a class="code" href="a00078.html" title="A class for calculating the difference between a block and its DC value (average)...">IntraBlockDiff</a>&amp; rhs);
<a name="l00225"></a>00225 
<a name="l00226"></a><a class="code" href="a00078.html#3ef3b733c325a1ad3385a1cae34437e2">00226</a>         <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; <a class="code" href="a00078.html#3ef3b733c325a1ad3385a1cae34437e2">m_pic_data</a>;
<a name="l00227"></a>00227     };
<a name="l00228"></a>00228 
<a name="l00230"></a><a class="code" href="a00004.html">00230</a>     <span class="keyword">class </span><a class="code" href="a00004.html" title="A virtual class for bi-directional differences.">BiBlockDiff</a>
<a name="l00231"></a>00231     {
<a name="l00232"></a>00232     <span class="keyword">public</span>:
<a name="l00234"></a>00234         <span class="comment">/*</span>
<a name="l00235"></a>00235 <span class="comment">             Constructor, initialising the references and picture data</span>
<a name="l00236"></a>00236 <span class="comment">             \param  ref1  the first reference picture</span>
<a name="l00237"></a>00237 <span class="comment">             \param  ref2  the second reference picture</span>
<a name="l00238"></a>00238 <span class="comment">             \param  pic  the picture being matched</span>
<a name="l00239"></a>00239 <span class="comment">        */</span>
<a name="l00240"></a>00240         <a class="code" href="a00004.html#a8e344e746a198fe660a9866637d07e7" title="Constructor, initialising the references and picture data.">BiBlockDiff</a>( <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; ref1 , <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; ref2 , <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; pic);
<a name="l00241"></a>00241 
<a name="l00243"></a><a class="code" href="a00004.html#9971f40659ba37c60a2724bf8c4de0f5">00243</a>         <span class="keyword">virtual</span> <a class="code" href="a00004.html#9971f40659ba37c60a2724bf8c4de0f5" title="Virtual destructor.">~BiBlockDiff</a>( ) {}
<a name="l00244"></a>00244 
<a name="l00246"></a>00246 
<a name="l00252"></a>00252         <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="a00004.html#94e67a39388379a5e7714d393b6ec5a8" title="Do the difference, returning SAD.">Diff</a>(  <span class="keyword">const</span> <a class="code" href="a00012.html" title="A class encapsulating parameters for calculating a block difference value (a single...">BlockDiffParams</a>&amp; dparams , <span class="keyword">const</span> <a class="code" href="a00091.html" title="Motion vector class - just a pair.">MVector</a>&amp; mv1 , <span class="keyword">const</span> <a class="code" href="a00091.html" title="Motion vector class - just a pair.">MVector</a>&amp; mv2 )=0;
<a name="l00253"></a>00253 
<a name="l00254"></a>00254     <span class="keyword">protected</span>:
<a name="l00255"></a><a class="code" href="a00004.html#2c3cc35e8bd61c99b44ca66ee280eea0">00255</a>         <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; <a class="code" href="a00004.html#2c3cc35e8bd61c99b44ca66ee280eea0">m_pic_data</a>;
<a name="l00256"></a><a class="code" href="a00004.html#9522d38661e976796692b178356fb0ee">00256</a>         <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; <a class="code" href="a00004.html#9522d38661e976796692b178356fb0ee">m_ref_data1</a>;
<a name="l00257"></a><a class="code" href="a00004.html#97ee280bceea5737d644bfd1ce4e1153">00257</a>         <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; <a class="code" href="a00004.html#97ee280bceea5737d644bfd1ce4e1153">m_ref_data2</a>;
<a name="l00258"></a>00258 
<a name="l00259"></a>00259     <span class="keyword">private</span>:
<a name="l00261"></a>00261         <a class="code" href="a00004.html#a8e344e746a198fe660a9866637d07e7" title="Constructor, initialising the references and picture data.">BiBlockDiff</a>(<span class="keyword">const</span> <a class="code" href="a00004.html" title="A virtual class for bi-directional differences.">BiBlockDiff</a>&amp; cpy);             
<a name="l00262"></a>00262                                                                     
<a name="l00264"></a>00264         <a class="code" href="a00004.html" title="A virtual class for bi-directional differences.">BiBlockDiff</a>&amp; <a class="code" href="a00004.html#ad1c61481e2c6c60fd104af4a1378b81" title="Private, bodyless assignment=: class should not be assigned.">operator=</a>(<span class="keyword">const</span> <a class="code" href="a00004.html" title="A virtual class for bi-directional differences.">BiBlockDiff</a>&amp; rhs);
<a name="l00265"></a>00265     };
<a name="l00266"></a>00266 
<a name="l00267"></a>00267     <span class="comment">// Classes where the reference is upconverted //</span>
<a name="l00270"></a><a class="code" href="a00014.html">00270</a> <span class="comment"></span>     <span class="keyword">class </span><a class="code" href="a00014.html" title="A virtual class for doing differences with sub-pixel vectors.">BlockDiffUp</a>: <span class="keyword">public</span> <a class="code" href="a00009.html" title="An abstract class for doing block difference calculations.">BlockDiff</a>
<a name="l00271"></a>00271      {
<a name="l00272"></a>00272      
<a name="l00273"></a>00273      <span class="keyword">public</span>:
<a name="l00274"></a>00274 
<a name="l00276"></a>00276          <span class="comment">/*</span>
<a name="l00277"></a>00277 <span class="comment">              Constructor, initialising the reference and picture data</span>
<a name="l00278"></a>00278 <span class="comment">              \param  ref  the reference picture</span>
<a name="l00279"></a>00279 <span class="comment">              \param  pic  the picture being matched</span>
<a name="l00280"></a>00280 <span class="comment">         */</span>
<a name="l00281"></a>00281          <a class="code" href="a00014.html#62a096d04c5e28b99ffd33b3aeace294" title="Constructor, initialising the reference and picture data.">BlockDiffUp</a>( <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; ref , <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; pic );
<a name="l00282"></a>00282 
<a name="l00284"></a><a class="code" href="a00014.html#067568505737926a03247d11982eb14e">00284</a>          <span class="keyword">virtual</span> <a class="code" href="a00014.html#067568505737926a03247d11982eb14e" title="Destructor.">~BlockDiffUp</a>(){}
<a name="l00285"></a>00285 
<a name="l00287"></a>00287 
<a name="l00292"></a>00292          <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="a00014.html#c37ea269dc71e0bd0802a4ead1b11f48" title="Do the difference, returning SAD.">Diff</a>(  <span class="keyword">const</span> <a class="code" href="a00012.html" title="A class encapsulating parameters for calculating a block difference value (a single...">BlockDiffParams</a>&amp; dparams , <span class="keyword">const</span> <a class="code" href="a00091.html" title="Motion vector class - just a pair.">MVector</a>&amp; mv )=0;
<a name="l00293"></a>00293 
<a name="l00295"></a>00295 
<a name="l00305"></a>00305          <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00014.html#c37ea269dc71e0bd0802a4ead1b11f48" title="Do the difference, returning SAD.">Diff</a>( <span class="keyword">const</span> <a class="code" href="a00012.html" title="A class encapsulating parameters for calculating a block difference value (a single...">BlockDiffParams</a>&amp; dparams,
<a name="l00306"></a>00306                             <span class="keyword">const</span> <a class="code" href="a00091.html" title="Motion vector class - just a pair.">MVector</a>&amp; mv ,
<a name="l00307"></a>00307                             <span class="keyword">const</span> <span class="keywordtype">float</span> mvcost,
<a name="l00308"></a>00308                             <span class="keyword">const</span> <span class="keywordtype">float</span> lambda,
<a name="l00309"></a>00309                             <a class="code" href="a00092.html" title="Class for recording costs derived in motion estimation.">MvCostData</a>&amp; best_costs ,
<a name="l00310"></a>00310                             <a class="code" href="a00091.html" title="Motion vector class - just a pair.">MVector</a>&amp; best_mv)=0;
<a name="l00311"></a>00311      <span class="keyword">private</span>:
<a name="l00313"></a>00313          <a class="code" href="a00014.html#62a096d04c5e28b99ffd33b3aeace294" title="Constructor, initialising the reference and picture data.">BlockDiffUp</a>(<span class="keyword">const</span> <a class="code" href="a00014.html" title="A virtual class for doing differences with sub-pixel vectors.">BlockDiffUp</a>&amp; cpy);
<a name="l00314"></a>00314 
<a name="l00316"></a>00316          <a class="code" href="a00014.html" title="A virtual class for doing differences with sub-pixel vectors.">BlockDiffUp</a>&amp; <a class="code" href="a00014.html#566159ced9bee37e52ddc9db21a41d28" title="Private, bodyless assignment=: class should not be assigned.">operator=</a>(<span class="keyword">const</span> <a class="code" href="a00014.html" title="A virtual class for doing differences with sub-pixel vectors.">BlockDiffUp</a>&amp; rhs);
<a name="l00317"></a>00317      };
<a name="l00318"></a>00318  
<a name="l00320"></a><a class="code" href="a00011.html">00320</a>     <span class="keyword">class </span><a class="code" href="a00011.html" title="A class for doing differences with half-pixel accurate vectors.">BlockDiffHalfPel</a>: <span class="keyword">public</span> <a class="code" href="a00014.html" title="A virtual class for doing differences with sub-pixel vectors.">BlockDiffUp</a>
<a name="l00321"></a>00321     {
<a name="l00322"></a>00322 
<a name="l00323"></a>00323     <span class="keyword">public</span>:
<a name="l00325"></a>00325         <span class="comment">/*</span>
<a name="l00326"></a>00326 <span class="comment">              Constructor, initialising the reference and picture data</span>
<a name="l00327"></a>00327 <span class="comment">              \param  ref  the reference picture</span>
<a name="l00328"></a>00328 <span class="comment">              \param  pic  the picture being matched</span>
<a name="l00329"></a>00329 <span class="comment">        */</span>
<a name="l00330"></a>00330         <a class="code" href="a00011.html#a6f417919ebd653e0f44e5ec0cf492b7" title="Constructor, initialising the reference and picture data.">BlockDiffHalfPel</a>( <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; ref , <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; pic );
<a name="l00331"></a>00331 
<a name="l00333"></a><a class="code" href="a00011.html#3adefc0288366b511f6ba027bd4db041">00333</a>         <a class="code" href="a00011.html#3adefc0288366b511f6ba027bd4db041" title="Destructor.">~BlockDiffHalfPel</a>(){}
<a name="l00334"></a>00334 
<a name="l00336"></a>00336 
<a name="l00341"></a>00341         <span class="keywordtype">float</span> <a class="code" href="a00011.html#d53f914a626e927c4723bce31de9323b" title="Do the difference, returning SAD.">Diff</a>(  <span class="keyword">const</span> <a class="code" href="a00012.html" title="A class encapsulating parameters for calculating a block difference value (a single...">BlockDiffParams</a>&amp; dparams , <span class="keyword">const</span> <a class="code" href="a00091.html" title="Motion vector class - just a pair.">MVector</a>&amp; mv );
<a name="l00342"></a>00342 
<a name="l00344"></a>00344 
<a name="l00354"></a>00354         <span class="keywordtype">void</span> <a class="code" href="a00011.html#d53f914a626e927c4723bce31de9323b" title="Do the difference, returning SAD.">Diff</a>( <span class="keyword">const</span> <a class="code" href="a00012.html" title="A class encapsulating parameters for calculating a block difference value (a single...">BlockDiffParams</a>&amp; dparams,
<a name="l00355"></a>00355                     <span class="keyword">const</span> <a class="code" href="a00091.html" title="Motion vector class - just a pair.">MVector</a>&amp; mv ,
<a name="l00356"></a>00356                     <span class="keyword">const</span> <span class="keywordtype">float</span> mvcost,
<a name="l00357"></a>00357                     <span class="keyword">const</span> <span class="keywordtype">float</span> lambda,
<a name="l00358"></a>00358                     <a class="code" href="a00092.html" title="Class for recording costs derived in motion estimation.">MvCostData</a>&amp; best_costs ,
<a name="l00359"></a>00359                     <a class="code" href="a00091.html" title="Motion vector class - just a pair.">MVector</a>&amp; best_mv);
<a name="l00360"></a>00360 
<a name="l00361"></a>00361     <span class="keyword">private</span>:
<a name="l00363"></a>00363         <a class="code" href="a00011.html#a6f417919ebd653e0f44e5ec0cf492b7" title="Constructor, initialising the reference and picture data.">BlockDiffHalfPel</a>(<span class="keyword">const</span> <a class="code" href="a00011.html" title="A class for doing differences with half-pixel accurate vectors.">BlockDiffHalfPel</a>&amp; cpy);
<a name="l00364"></a>00364 
<a name="l00366"></a>00366         <a class="code" href="a00011.html" title="A class for doing differences with half-pixel accurate vectors.">BlockDiffHalfPel</a>&amp; <a class="code" href="a00011.html#f46455196d78da458ea36b387344b487" title="Private, bodyless assignment=: class should not be assigned.">operator=</a>(<span class="keyword">const</span> <a class="code" href="a00011.html" title="A class for doing differences with half-pixel accurate vectors.">BlockDiffHalfPel</a>&amp; rhs);
<a name="l00367"></a>00367 
<a name="l00368"></a>00368     };
<a name="l00369"></a>00369 
<a name="l00371"></a><a class="code" href="a00013.html">00371</a>     <span class="keyword">class </span><a class="code" href="a00013.html" title="A class for doing differences with quarter-pixel accurate vectors.">BlockDiffQuarterPel</a>: <span class="keyword">public</span> <a class="code" href="a00014.html" title="A virtual class for doing differences with sub-pixel vectors.">BlockDiffUp</a>
<a name="l00372"></a>00372     {
<a name="l00373"></a>00373     <span class="keyword">public</span>:
<a name="l00375"></a>00375         <span class="comment">/*</span>
<a name="l00376"></a>00376 <span class="comment">             Constructor, initialising the reference and picture data</span>
<a name="l00377"></a>00377 <span class="comment">             \param  ref  the reference picture</span>
<a name="l00378"></a>00378 <span class="comment">             \param  pic  the picture being matched</span>
<a name="l00379"></a>00379 <span class="comment">        */</span>
<a name="l00380"></a>00380         <a class="code" href="a00013.html#acf079bf677b9556edd0c00ea2d1c037" title="Constructor, initialising the reference and picture data.">BlockDiffQuarterPel</a>( <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; ref , <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; pic );
<a name="l00381"></a>00381 
<a name="l00383"></a><a class="code" href="a00013.html#3f4722a6940897eb0f97584786bade5f">00383</a>         <a class="code" href="a00013.html#3f4722a6940897eb0f97584786bade5f" title="Destructor.">~BlockDiffQuarterPel</a>(){}
<a name="l00384"></a>00384 
<a name="l00386"></a>00386 
<a name="l00391"></a>00391         <span class="keywordtype">float</span> <a class="code" href="a00013.html#13abb40783f5c4131cfa40b5002a6c7e" title="Do the difference, returning SAD.">Diff</a>(  <span class="keyword">const</span> <a class="code" href="a00012.html" title="A class encapsulating parameters for calculating a block difference value (a single...">BlockDiffParams</a>&amp; dparams , <span class="keyword">const</span> <a class="code" href="a00091.html" title="Motion vector class - just a pair.">MVector</a>&amp; mv );
<a name="l00392"></a>00392 
<a name="l00394"></a>00394 
<a name="l00404"></a>00404         <span class="keywordtype">void</span> <a class="code" href="a00013.html#13abb40783f5c4131cfa40b5002a6c7e" title="Do the difference, returning SAD.">Diff</a>( <span class="keyword">const</span> <a class="code" href="a00012.html" title="A class encapsulating parameters for calculating a block difference value (a single...">BlockDiffParams</a>&amp; dparams,
<a name="l00405"></a>00405                    <span class="keyword">const</span> <a class="code" href="a00091.html" title="Motion vector class - just a pair.">MVector</a>&amp; mv ,
<a name="l00406"></a>00406                    <span class="keyword">const</span> <span class="keywordtype">float</span> mvcost,
<a name="l00407"></a>00407                    <span class="keyword">const</span> <span class="keywordtype">float</span> lambda,
<a name="l00408"></a>00408                    <a class="code" href="a00092.html" title="Class for recording costs derived in motion estimation.">MvCostData</a>&amp; best_costs ,
<a name="l00409"></a>00409                    <a class="code" href="a00091.html" title="Motion vector class - just a pair.">MVector</a>&amp; best_mv);
<a name="l00410"></a>00410 
<a name="l00411"></a>00411     <span class="keyword">private</span>:
<a name="l00413"></a>00413         <a class="code" href="a00013.html#acf079bf677b9556edd0c00ea2d1c037" title="Constructor, initialising the reference and picture data.">BlockDiffQuarterPel</a>(<span class="keyword">const</span> <a class="code" href="a00013.html" title="A class for doing differences with quarter-pixel accurate vectors.">BlockDiffQuarterPel</a>&amp; cpy);
<a name="l00414"></a>00414 
<a name="l00416"></a>00416         <a class="code" href="a00013.html" title="A class for doing differences with quarter-pixel accurate vectors.">BlockDiffQuarterPel</a>&amp; <a class="code" href="a00013.html#797e8e11a696617944466e5471e4a3c2" title="Private, bodyless assignment=: class should not be assigned.">operator=</a>(<span class="keyword">const</span> <a class="code" href="a00013.html" title="A class for doing differences with quarter-pixel accurate vectors.">BlockDiffQuarterPel</a>&amp; rhs);
<a name="l00417"></a>00417     };
<a name="l00418"></a>00418 
<a name="l00420"></a><a class="code" href="a00010.html">00420</a>     <span class="keyword">class </span><a class="code" href="a00010.html" title="A class for doing differences with eighth-pixel accurate vectors.">BlockDiffEighthPel</a>: <span class="keyword">public</span> <a class="code" href="a00014.html" title="A virtual class for doing differences with sub-pixel vectors.">BlockDiffUp</a>
<a name="l00421"></a>00421     {
<a name="l00422"></a>00422     <span class="keyword">public</span>:
<a name="l00424"></a>00424         <span class="comment">/*</span>
<a name="l00425"></a>00425 <span class="comment">             Constructor, initialising the reference and picture data</span>
<a name="l00426"></a>00426 <span class="comment">             \param  ref  the reference picture</span>
<a name="l00427"></a>00427 <span class="comment">             \param  pic  the picture being matched</span>
<a name="l00428"></a>00428 <span class="comment">        */</span>
<a name="l00429"></a>00429         <a class="code" href="a00010.html#a93616ce94dce78cde424546f8f2aeb3" title="Constructor, initialising the reference and picture data.">BlockDiffEighthPel</a>( <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; ref , <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; pic );
<a name="l00430"></a>00430 
<a name="l00432"></a><a class="code" href="a00010.html#b86c5ee793cf64d61916cc6a124e5ad8">00432</a>         <a class="code" href="a00010.html#b86c5ee793cf64d61916cc6a124e5ad8" title="Destructor.">~BlockDiffEighthPel</a>(){}
<a name="l00433"></a>00433 
<a name="l00435"></a>00435 
<a name="l00440"></a>00440         <span class="keywordtype">float</span> <a class="code" href="a00010.html#09b13a8ac46f5c5a540edb66165c3de7" title="Do the difference, returning SAD.">Diff</a>(  <span class="keyword">const</span> <a class="code" href="a00012.html" title="A class encapsulating parameters for calculating a block difference value (a single...">BlockDiffParams</a>&amp; dparams , <span class="keyword">const</span> <a class="code" href="a00091.html" title="Motion vector class - just a pair.">MVector</a>&amp; mv );
<a name="l00441"></a>00441 
<a name="l00443"></a>00443 
<a name="l00453"></a>00453         <span class="keywordtype">void</span> <a class="code" href="a00010.html#09b13a8ac46f5c5a540edb66165c3de7" title="Do the difference, returning SAD.">Diff</a>( <span class="keyword">const</span> <a class="code" href="a00012.html" title="A class encapsulating parameters for calculating a block difference value (a single...">BlockDiffParams</a>&amp; dparams,
<a name="l00454"></a>00454                     <span class="keyword">const</span> <a class="code" href="a00091.html" title="Motion vector class - just a pair.">MVector</a>&amp; mv ,
<a name="l00455"></a>00455                     <span class="keyword">const</span> <span class="keywordtype">float</span> mvcost,
<a name="l00456"></a>00456                     <span class="keyword">const</span> <span class="keywordtype">float</span> lambda,
<a name="l00457"></a>00457                     <a class="code" href="a00092.html" title="Class for recording costs derived in motion estimation.">MvCostData</a>&amp; best_costs ,
<a name="l00458"></a>00458                     <a class="code" href="a00091.html" title="Motion vector class - just a pair.">MVector</a>&amp; best_mv);
<a name="l00459"></a>00459 
<a name="l00460"></a>00460     <span class="keyword">private</span>:
<a name="l00462"></a>00462         <a class="code" href="a00010.html#a93616ce94dce78cde424546f8f2aeb3" title="Constructor, initialising the reference and picture data.">BlockDiffEighthPel</a>(<span class="keyword">const</span> <a class="code" href="a00010.html" title="A class for doing differences with eighth-pixel accurate vectors.">BlockDiffEighthPel</a>&amp; cpy);
<a name="l00463"></a>00463 
<a name="l00465"></a>00465         <a class="code" href="a00010.html" title="A class for doing differences with eighth-pixel accurate vectors.">BlockDiffEighthPel</a>&amp; <a class="code" href="a00010.html#5fdbe050d2fd7f727381238ef791fbca" title="Private, bodyless assignment=: class should not be assigned.">operator=</a>(<span class="keyword">const</span> <a class="code" href="a00010.html" title="A class for doing differences with eighth-pixel accurate vectors.">BlockDiffEighthPel</a>&amp; rhs);
<a name="l00466"></a>00466     };
<a name="l00467"></a>00467 
<a name="l00469"></a><a class="code" href="a00006.html">00469</a>     <span class="keyword">class </span><a class="code" href="a00006.html" title="A class for computing a bidirection difference for half-pel vectors.">BiBlockHalfPel</a>: <span class="keyword">public</span> <a class="code" href="a00004.html" title="A virtual class for bi-directional differences.">BiBlockDiff</a>
<a name="l00470"></a>00470     {
<a name="l00471"></a>00471     <span class="keyword">public</span>:
<a name="l00473"></a>00473         <span class="comment">/*</span>
<a name="l00474"></a>00474 <span class="comment">             Constructor, initialising the reference and picture data</span>
<a name="l00475"></a>00475 <span class="comment">             \param  ref1  the first reference picture</span>
<a name="l00476"></a>00476 <span class="comment">             \param  ref2  the second reference picture</span>
<a name="l00477"></a>00477 <span class="comment">             \param  pic  the picture being matched</span>
<a name="l00478"></a>00478 <span class="comment">        */</span>
<a name="l00479"></a>00479         <a class="code" href="a00006.html#df32c238ffa25f29635f090bd215398a" title="Constructor, initialising the references and picture data.">BiBlockHalfPel</a>( <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; ref1 , <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; ref2 , <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; pic );
<a name="l00480"></a>00480 
<a name="l00482"></a>00482 
<a name="l00488"></a>00488         <span class="keywordtype">float</span> <a class="code" href="a00006.html#7a59ed7ae4420793683720437932b046" title="Do the difference, returning SAD.">Diff</a>(  <span class="keyword">const</span> <a class="code" href="a00012.html" title="A class encapsulating parameters for calculating a block difference value (a single...">BlockDiffParams</a>&amp; dparams , <span class="keyword">const</span> <a class="code" href="a00091.html">MVector</a>&amp; mv1 , <span class="keyword">const</span> <a class="code" href="a00091.html">MVector</a>&amp; mv2 );
<a name="l00489"></a>00489     <span class="keyword">private</span>:
<a name="l00491"></a>00491         <a class="code" href="a00006.html#df32c238ffa25f29635f090bd215398a" title="Constructor, initialising the references and picture data.">BiBlockHalfPel</a>(<span class="keyword">const</span> <a class="code" href="a00006.html" title="A class for computing a bidirection difference for half-pel vectors.">BiBlockHalfPel</a>&amp; cpy);
<a name="l00492"></a>00492 
<a name="l00494"></a>00494         <a class="code" href="a00006.html" title="A class for computing a bidirection difference for half-pel vectors.">BiBlockHalfPel</a>&amp; <a class="code" href="a00006.html#d3b8de263b0a4d5c657485d0fac2dc98" title="Private, bodyless assignment=: class should not be assigned.">operator=</a>(<span class="keyword">const</span> <a class="code" href="a00006.html" title="A class for computing a bidirection difference for half-pel vectors.">BiBlockHalfPel</a>&amp; rhs);
<a name="l00495"></a>00495     };
<a name="l00496"></a>00496 
<a name="l00498"></a><a class="code" href="a00007.html">00498</a>     <span class="keyword">class </span><a class="code" href="a00007.html" title="A class for computing a bidirection difference for quarter-pel vectors.">BiBlockQuarterPel</a>: <span class="keyword">public</span> <a class="code" href="a00004.html" title="A virtual class for bi-directional differences.">BiBlockDiff</a>
<a name="l00499"></a>00499     {
<a name="l00500"></a>00500     <span class="keyword">public</span>:
<a name="l00502"></a>00502         <span class="comment">/*</span>
<a name="l00503"></a>00503 <span class="comment">             Constructor, initialising the reference and picture data</span>
<a name="l00504"></a>00504 <span class="comment">             \param  ref1  the first reference picture</span>
<a name="l00505"></a>00505 <span class="comment">             \param  ref2  the second reference picture</span>
<a name="l00506"></a>00506 <span class="comment">             \param  pic  the picture being matched</span>
<a name="l00507"></a>00507 <span class="comment">        */</span>
<a name="l00508"></a>00508         <a class="code" href="a00007.html#1d0fb4b7c24c6b820a7748533b2c15e6" title="Constructor, initialising the references and picture data.">BiBlockQuarterPel</a>( <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; ref1 , <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; ref2 , <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; pic );
<a name="l00509"></a>00509 
<a name="l00511"></a>00511 
<a name="l00517"></a>00517         <span class="keywordtype">float</span> <a class="code" href="a00007.html#c1d646f9cf0df0bccba7788077b4e1e1" title="Do the difference, returning SAD.">Diff</a>(  <span class="keyword">const</span> <a class="code" href="a00012.html" title="A class encapsulating parameters for calculating a block difference value (a single...">BlockDiffParams</a>&amp; dparams , <span class="keyword">const</span> <a class="code" href="a00091.html">MVector</a>&amp; mv1 , <span class="keyword">const</span> <a class="code" href="a00091.html">MVector</a>&amp; mv2 );
<a name="l00518"></a>00518 
<a name="l00519"></a>00519     <span class="keyword">private</span>:
<a name="l00521"></a>00521         <a class="code" href="a00007.html#1d0fb4b7c24c6b820a7748533b2c15e6" title="Constructor, initialising the references and picture data.">BiBlockQuarterPel</a>(<span class="keyword">const</span> <a class="code" href="a00007.html" title="A class for computing a bidirection difference for quarter-pel vectors.">BiBlockQuarterPel</a>&amp; cpy);
<a name="l00522"></a>00522 
<a name="l00524"></a>00524         <a class="code" href="a00007.html" title="A class for computing a bidirection difference for quarter-pel vectors.">BiBlockQuarterPel</a>&amp; <a class="code" href="a00007.html#4415f11a912adc8409d845fa0c4e7533" title="Private, bodyless assignment=: class should not be assigned.">operator=</a>(<span class="keyword">const</span> <a class="code" href="a00007.html" title="A class for computing a bidirection difference for quarter-pel vectors.">BiBlockQuarterPel</a>&amp; rhs);
<a name="l00525"></a>00525     };
<a name="l00526"></a>00526 
<a name="l00528"></a><a class="code" href="a00005.html">00528</a>     <span class="keyword">class </span><a class="code" href="a00005.html" title="A class for computing a bidirection difference for eighth-pel vectors.">BiBlockEighthPel</a>: <span class="keyword">public</span> <a class="code" href="a00004.html" title="A virtual class for bi-directional differences.">BiBlockDiff</a>
<a name="l00529"></a>00529     {
<a name="l00530"></a>00530     <span class="keyword">public</span>:
<a name="l00532"></a>00532         <span class="comment">/*</span>
<a name="l00533"></a>00533 <span class="comment">             Constructor, initialising the reference and picture data</span>
<a name="l00534"></a>00534 <span class="comment">             \param  ref1  the first reference picture</span>
<a name="l00535"></a>00535 <span class="comment">             \param  ref2  the second reference picture</span>
<a name="l00536"></a>00536 <span class="comment">             \param  pic  the picture being matched</span>
<a name="l00537"></a>00537 <span class="comment">        */</span>
<a name="l00538"></a>00538         <a class="code" href="a00005.html#dbeac6a09e24e81b71eff143f82358fa" title="Constructor, initialising the references and picture data.">BiBlockEighthPel</a>( <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; ref1 , <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; ref2 , <span class="keyword">const</span> <a class="code" href="a00107.html" title="A class for picture component data.">PicArray</a>&amp; pic );
<a name="l00539"></a>00539 
<a name="l00541"></a>00541 
<a name="l00547"></a>00547         <span class="keywordtype">float</span> <a class="code" href="a00005.html#6827e64240c17a1a5dab4bbbd407c939" title="Do the difference, returning SAD.">Diff</a>(  <span class="keyword">const</span> <a class="code" href="a00012.html" title="A class encapsulating parameters for calculating a block difference value (a single...">BlockDiffParams</a>&amp; dparams , <span class="keyword">const</span> <a class="code" href="a00091.html">MVector</a>&amp; mv1 , <span class="keyword">const</span> <a class="code" href="a00091.html">MVector</a>&amp; mv2 );
<a name="l00548"></a>00548     <span class="keyword">private</span>:
<a name="l00550"></a>00550         <a class="code" href="a00005.html#dbeac6a09e24e81b71eff143f82358fa" title="Constructor, initialising the references and picture data.">BiBlockEighthPel</a>(<span class="keyword">const</span> <a class="code" href="a00005.html" title="A class for computing a bidirection difference for eighth-pel vectors.">BiBlockEighthPel</a>&amp; cpy);
<a name="l00551"></a>00551 
<a name="l00553"></a>00553         <a class="code" href="a00005.html" title="A class for computing a bidirection difference for eighth-pel vectors.">BiBlockEighthPel</a>&amp; <a class="code" href="a00005.html#8a9e34e98de252cb52413916375d38cc" title="Private, bodyless assignment=: class should not be assigned.">operator=</a>(<span class="keyword">const</span> <a class="code" href="a00005.html" title="A class for computing a bidirection difference for eighth-pel vectors.">BiBlockEighthPel</a>&amp; rhs);
<a name="l00554"></a>00554     };
<a name="l00555"></a>00555 
<a name="l00556"></a>00556 } <span class="comment">// namespace dirac</span>
<a name="l00557"></a>00557 <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>