Sophie

Sophie

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

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>picture_decompress.h</h1><a href="a00216.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: picture_decompress.h,v 1.2 2008/04/29 08:51:52 tjdwave 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">*                 Scott R Ladd,</span>
<a name="l00025"></a>00025 <span class="comment">*                 Anuradha Suraparaju</span>
<a name="l00026"></a>00026 <span class="comment">*                 Andrew Kennedy</span>
<a name="l00027"></a>00027 <span class="comment">*</span>
<a name="l00028"></a>00028 <span class="comment">* Alternatively, the contents of this file may be used under the terms of</span>
<a name="l00029"></a>00029 <span class="comment">* the GNU General Public License Version 2 (the "GPL"), or the GNU Lesser</span>
<a name="l00030"></a>00030 <span class="comment">* Public License Version 2.1 (the "LGPL"), in which case the provisions of</span>
<a name="l00031"></a>00031 <span class="comment">* the GPL or the LGPL are applicable instead of those above. If you wish to</span>
<a name="l00032"></a>00032 <span class="comment">* allow use of your version of this file only under the terms of the either</span>
<a name="l00033"></a>00033 <span class="comment">* the GPL or LGPL and not to allow others to use your version of this file</span>
<a name="l00034"></a>00034 <span class="comment">* under the MPL, indicate your decision by deleting the provisions above</span>
<a name="l00035"></a>00035 <span class="comment">* and replace them with the notice and other provisions required by the GPL</span>
<a name="l00036"></a>00036 <span class="comment">* or LGPL. If you do not delete the provisions above, a recipient may use</span>
<a name="l00037"></a>00037 <span class="comment">* your version of this file under the terms of any one of the MPL, the GPL</span>
<a name="l00038"></a>00038 <span class="comment">* or the LGPL.</span>
<a name="l00039"></a>00039 <span class="comment">* ***** END LICENSE BLOCK ***** */</span>
<a name="l00040"></a>00040 
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 <span class="preprocessor">#ifndef _PICTURE_DECOMPRESS_H_</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span><span class="preprocessor">#define _PICTURE_DECOMPRESS_H_</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span>
<a name="l00046"></a>00046 <span class="preprocessor">#include &lt;<a class="code" href="a00213.html">libdirac_common/picture_buffer.h</a>&gt;</span>
<a name="l00047"></a>00047 <span class="preprocessor">#include &lt;<a class="code" href="a00171.html">libdirac_common/common.h</a>&gt;</span>
<a name="l00048"></a>00048 <span class="preprocessor">#include &lt;<a class="code" href="a00214.html">libdirac_byteio/picture_byteio.h</a>&gt;</span>
<a name="l00049"></a>00049 <span class="preprocessor">#include &lt;<a class="code" href="a00230.html">libdirac_byteio/transform_byteio.h</a>&gt;</span>
<a name="l00050"></a>00050 
<a name="l00051"></a>00051 <span class="keyword">namespace </span>dirac
<a name="l00052"></a>00052 {
<a name="l00053"></a>00053     <span class="keyword">class </span>MvData;
<a name="l00054"></a>00054     
<a name="l00056"></a>00056 
<a name="l00061"></a><a class="code" href="a00112.html">00061</a>     <span class="keyword">class </span><a class="code" href="a00112.html" title="Compress a single image picture.">PictureDecompressor</a>{
<a name="l00062"></a>00062     <span class="keyword">public</span>:
<a name="l00064"></a>00064 
<a name="l00072"></a>00072         <a class="code" href="a00112.html#60bb0a31fab7e57e65858a0e035c2ba7" title="Constructor.">PictureDecompressor</a>(<a class="code" href="a00029.html" title="Parameters for the decoding process.">DecoderParams</a>&amp; decp, <a class="code" href="a00172.html#4a6c51c10f2eb04abc7209db7caff39f">ChromaFormat</a> cf);
<a name="l00073"></a>00073 
<a name="l00075"></a>00075 
<a name="l00078"></a>00078         <a class="code" href="a00112.html#6890f571b4ef647ff6a680c3d6a90b2f" title="Destructor.">~PictureDecompressor</a>();
<a name="l00079"></a>00079 
<a name="l00081"></a>00081 
<a name="l00089"></a>00089         <span class="keywordtype">bool</span> <a class="code" href="a00112.html#c96ed6bf4062a02350ca360ab9a1159c" title="Decompress the next picture into the buffer.">Decompress</a>(<a class="code" href="a00105.html" title="Represents a collection of data in a Dirac bytestream that can be parsed as a self-contained...">ParseUnitByteIO</a>&amp; parseunit_byteio,
<a name="l00090"></a>00090                         <a class="code" href="a00109.html" title="Holds pictures both for reference and to overcome reordering delay.">PictureBuffer</a>&amp; my_buffer);
<a name="l00091"></a>00091 
<a name="l00093"></a><a class="code" href="a00112.html#54ba8b3b9dd45255448bd802eebfd012">00093</a>         <span class="keyword">const</span> <a class="code" href="a00113.html" title="Parameters for initialising picture class objects.">PictureParams</a>&amp; <a class="code" href="a00112.html#54ba8b3b9dd45255448bd802eebfd012" title="Returns the picture parameters of the current picture being decoded.">GetPicParams</a>()<span class="keyword"> const</span>{ <span class="keywordflow">return</span> <a class="code" href="a00112.html#42a7d5189cec78979e7dc10e6b298ea5" title="Current Picture Parameters.">m_pparams</a>; }
<a name="l00094"></a>00094 
<a name="l00095"></a>00095     <span class="keyword">private</span>:
<a name="l00097"></a>00097 
<a name="l00101"></a>00101         <a class="code" href="a00112.html#60bb0a31fab7e57e65858a0e035c2ba7" title="Constructor.">PictureDecompressor</a>(<span class="keyword">const</span> <a class="code" href="a00112.html" title="Compress a single image picture.">PictureDecompressor</a>&amp; cpy);
<a name="l00102"></a>00102 
<a name="l00104"></a>00104 
<a name="l00108"></a>00108         <a class="code" href="a00112.html" title="Compress a single image picture.">PictureDecompressor</a>&amp; <a class="code" href="a00112.html#3cc7649198d34c7c748753c3b85a8f86" title="Assignment = is private and body-less.">operator=</a>(<span class="keyword">const</span> <a class="code" href="a00112.html" title="Compress a single image picture.">PictureDecompressor</a>&amp; rhs);
<a name="l00109"></a>00109 
<a name="l00111"></a>00111         <span class="keywordtype">void</span> <a class="code" href="a00112.html#3d7b90bb75e7fd96169ef019b19e94ee" title="Initialise the padded coefficient data for the IDWT and subband decoding.">InitCoeffData</a>( <a class="code" href="a00021.html" title="A class for wavelet coefficient data.">CoeffArray</a>&amp; coeff_data, <span class="keyword">const</span> <span class="keywordtype">int</span> xl, <span class="keyword">const</span> <span class="keywordtype">int</span> yl );
<a name="l00112"></a>00112 
<a name="l00114"></a>00114         <span class="keywordtype">void</span> <a class="code" href="a00112.html#ee1ff5067346b5418ef21d18d5ae4088" title="Removes all the reference pictures in the retired list.">CleanReferencePictures</a>( <a class="code" href="a00109.html" title="Holds pictures both for reference and to overcome reordering delay.">PictureBuffer</a>&amp; my_buffer );
<a name="l00115"></a>00115 
<a name="l00117"></a>00117         <span class="keywordtype">void</span> <a class="code" href="a00112.html#39708f30da9e7927dc59f50dcbaa0feb" title="Decodes component data.">CompDecompress</a>(<a class="code" href="a00144.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">TransformByteIO</a> *p_transform_byteio,
<a name="l00118"></a>00118                             <a class="code" href="a00109.html" title="Holds pictures both for reference and to overcome reordering delay.">PictureBuffer</a>&amp; my_buffer,<span class="keywordtype">int</span> pnum, <a class="code" href="a00234.html#39dd89c4c7484412efd87d41548271cd" title="Types of picture component.">CompSort</a> cs);
<a name="l00119"></a>00119 
<a name="l00121"></a>00121         <span class="keywordtype">void</span> <a class="code" href="a00112.html#70f2e5a9bd8590ffe6893fc08e9a3cff" title="Decodes the motion data.">DecompressMVData</a>( std::auto_ptr&lt;MvData&gt;&amp; mv_data, <a class="code" href="a00110.html" title="A compressed picture in Dirac bytestream format.">PictureByteIO</a>&amp; picture_byteio );
<a name="l00122"></a>00122          
<a name="l00123"></a>00123 
<a name="l00125"></a>00125         <span class="keywordtype">void</span> <a class="code" href="a00112.html#850f6df99d2b73c2fbff573dd567d0a3" title="Set the number of superblocks and blocks.">SetMVBlocks</a>();
<a name="l00126"></a>00126 
<a name="l00128"></a>00128         <span class="keywordtype">void</span> <a class="code" href="a00112.html#52f5a05436778612870e361015e70262" title="Add a picture to the picture buffer.">PushPicture</a>(<a class="code" href="a00109.html" title="Holds pictures both for reference and to overcome reordering delay.">PictureBuffer</a> &amp;my_buffer);
<a name="l00129"></a>00129 
<a name="l00130"></a>00130         <span class="comment">//Member variables    </span>
<a name="l00131"></a>00131 
<a name="l00133"></a><a class="code" href="a00112.html#e9829e23f49c7fecdc6f4bc2806a6965">00133</a>         <a class="code" href="a00029.html" title="Parameters for the decoding process.">DecoderParams</a>&amp; <a class="code" href="a00112.html#e9829e23f49c7fecdc6f4bc2806a6965" title="Parameters for the decompression, as provided in constructor.">m_decparams</a>;
<a name="l00134"></a>00134 
<a name="l00136"></a><a class="code" href="a00112.html#88c494cff2a82ae282f30b6b33ae1c20">00136</a>         <a class="code" href="a00172.html#4a6c51c10f2eb04abc7209db7caff39f">ChromaFormat</a> <a class="code" href="a00112.html#88c494cff2a82ae282f30b6b33ae1c20" title="Chroma format of the picture being decompressed.">m_cformat</a>;
<a name="l00137"></a>00137 
<a name="l00139"></a><a class="code" href="a00112.html#a3e872075289e057a03412f0af7e4b05">00139</a>         <span class="keywordtype">bool</span> <a class="code" href="a00112.html#a3e872075289e057a03412f0af7e4b05" title="An indicator which is true if the picture has been skipped, false otherwise.">m_skipped</a>;
<a name="l00140"></a>00140 
<a name="l00142"></a><a class="code" href="a00112.html#2ffe7b89171fd0aa7144977697c57696">00142</a>         <span class="keywordtype">bool</span> <a class="code" href="a00112.html#2ffe7b89171fd0aa7144977697c57696" title="An indicator that is true if we use global motion vectors, false otherwise.">m_use_global</a>;
<a name="l00143"></a>00143 
<a name="l00145"></a><a class="code" href="a00112.html#cd608d9116e50094d3c97ce10cbc1514">00145</a>         <span class="keywordtype">bool</span> <a class="code" href="a00112.html#cd608d9116e50094d3c97ce10cbc1514" title="An indicator that is true if we use block motion vectors, false otherwise.">m_use_block_mv</a>;
<a name="l00146"></a>00146 
<a name="l00148"></a><a class="code" href="a00112.html#d58a79e0da25b409677c052b81bfcb53">00148</a>         <a class="code" href="a00234.html#b8a7aad3ab6de8cc3709dcacde946964" title="Prediction modes for blocks.">PredMode</a> <a class="code" href="a00112.html#d58a79e0da25b409677c052b81bfcb53" title="Prediction mode to use if we only have global motion vectors.">m_global_pred_mode</a>;
<a name="l00149"></a>00149 
<a name="l00151"></a><a class="code" href="a00112.html#42a7d5189cec78979e7dc10e6b298ea5">00151</a>         <a class="code" href="a00113.html" title="Parameters for initialising picture class objects.">PictureParams</a> <a class="code" href="a00112.html#42a7d5189cec78979e7dc10e6b298ea5" title="Current Picture Parameters.">m_pparams</a>;
<a name="l00152"></a>00152     };
<a name="l00153"></a>00153 
<a name="l00154"></a>00154 } <span class="comment">// namespace dirac</span>
<a name="l00155"></a>00155 
<a name="l00156"></a>00156 <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>