Sophie

Sophie

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

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>mvdata_byteio.h</h1><a href="a00205.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: mvdata_byteio.h,v 1.5 2008/09/10 12:28:46 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): Anuradha Suraparaju (Original Author)</span>
<a name="l00024"></a>00024 <span class="comment">*                 Andrew Kennedy</span>
<a name="l00025"></a>00025 <span class="comment">*</span>
<a name="l00026"></a>00026 <span class="comment">* Alternatively, the contents of this file may be used under the terms of</span>
<a name="l00027"></a>00027 <span class="comment">* the GNU General Public License Version 2 (the "GPL"), or the GNU Lesser</span>
<a name="l00028"></a>00028 <span class="comment">* Public License Version 2.1 (the "LGPL"), in which case the provisions of</span>
<a name="l00029"></a>00029 <span class="comment">* the GPL or the LGPL are applicable instead of those above. If you wish to</span>
<a name="l00030"></a>00030 <span class="comment">* allow use of your version of this file only under the terms of the either</span>
<a name="l00031"></a>00031 <span class="comment">* the GPL or LGPL and not to allow others to use your version of this file</span>
<a name="l00032"></a>00032 <span class="comment">* under the MPL, indicate your decision by deleting the provisions above</span>
<a name="l00033"></a>00033 <span class="comment">* and replace them with the notice and other provisions required by the GPL</span>
<a name="l00034"></a>00034 <span class="comment">* or LGPL. If you do not delete the provisions above, a recipient may use</span>
<a name="l00035"></a>00035 <span class="comment">* your version of this file under the terms of any one of the MPL, the GPL</span>
<a name="l00036"></a>00036 <span class="comment">* or the LGPL.</span>
<a name="l00037"></a>00037 <span class="comment">* ***** END LICENSE BLOCK ***** */</span>
<a name="l00038"></a>00038 
<a name="l00042"></a>00042 <span class="preprocessor">#ifndef MV_DATA_BYTEIO_H</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="preprocessor">#define MV_DATA_BYTEIO_H</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span>
<a name="l00045"></a>00045 
<a name="l00046"></a>00046 <span class="comment">// DIRAC INCLUDES</span>
<a name="l00047"></a>00047 <span class="preprocessor">#include &lt;<a class="code" href="a00171.html">libdirac_common/common.h</a>&gt;</span>              <span class="comment">// EncParams</span>
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 <span class="comment">//LOCAL INCLUDES</span>
<a name="l00050"></a>00050 <span class="preprocessor">#include &lt;<a class="code" href="a00168.html">libdirac_byteio/byteio.h</a>&gt;</span>              <span class="comment">// Parent class</span>
<a name="l00051"></a>00051 <span class="preprocessor">#include &lt;<a class="code" href="a00206.html">libdirac_byteio/mvdataelement_byteio.h</a>&gt;</span><span class="comment">// Member byteio class</span>
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 
<a name="l00054"></a>00054 <span class="keyword">namespace </span>dirac
<a name="l00055"></a>00055 {
<a name="l00059"></a><a class="code" href="a00094.html">00059</a>     <span class="keyword">class </span><a class="code" href="a00094.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">MvDataByteIO</a> : <span class="keyword">public</span> <a class="code" href="a00016.html" title="Class ByteIO - top-level class for reading/writing bytes to a stream.">ByteIO</a>
<a name="l00060"></a>00060     {
<a name="l00061"></a>00061     <span class="keyword">public</span>:
<a name="l00062"></a>00062 
<a name="l00068"></a>00068         <a class="code" href="a00094.html#5edc084f00e4208c1db6e3555633d4fa" title="Constructor.">MvDataByteIO</a>(<a class="code" href="a00113.html" title="Parameters for initialising picture class objects.">PictureParams</a>&amp; pparams,
<a name="l00069"></a>00069                         <a class="code" href="a00114.html" title="Structure to hold motion parameters when motion comp is used.">PicturePredParams</a>&amp; picpredparams);
<a name="l00070"></a>00070 
<a name="l00077"></a>00077         <a class="code" href="a00094.html#5edc084f00e4208c1db6e3555633d4fa" title="Constructor.">MvDataByteIO</a>(<a class="code" href="a00016.html" title="Class ByteIO - top-level class for reading/writing bytes to a stream.">ByteIO</a> &amp;byte_io, <a class="code" href="a00113.html" title="Parameters for initialising picture class objects.">PictureParams</a>&amp; pparams,
<a name="l00078"></a>00078                         <a class="code" href="a00114.html" title="Structure to hold motion parameters when motion comp is used.">PicturePredParams</a>&amp; picpredparams);
<a name="l00079"></a>00079 
<a name="l00083"></a>00083         <span class="keyword">virtual</span> <a class="code" href="a00094.html#744e0eb84211fa32388b86e2e5f35288" title="Destructor.">~MvDataByteIO</a>();
<a name="l00084"></a>00084 
<a name="l00089"></a>00089         <span class="keywordtype">void</span> <a class="code" href="a00094.html#9ce321919700b9e282547040f5e41a02" title="Gathers byte stats on the motion vector data.">CollateByteStats</a>(<a class="code" href="a00049.html" title="Class DiracByteStats - for collecting statistics on aspects of the Dirac byte-stream...">DiracByteStats</a>&amp; dirac_byte_stats);
<a name="l00090"></a>00090 
<a name="l00094"></a>00094         <span class="keywordtype">void</span> <a class="code" href="a00094.html#516d80d871e5e854cd2a713b51369045" title="Outputs motion vector data Dirac byte-format.">Output</a>();
<a name="l00095"></a>00095 
<a name="l00099"></a>00099         <span class="keywordtype">void</span> <a class="code" href="a00094.html#b9545f5527f304b8a37716a98be0abb8" title="Inputs motion vector information.">Input</a>();
<a name="l00100"></a>00100 
<a name="l00101"></a>00101 
<a name="l00105"></a>00105         <span class="keyword">virtual</span> <span class="keyword">const</span> std::string <a class="code" href="a00094.html#7d4813f773ac1f20da8a239853d27a5e" title="Get string containing coded bytes.">GetBytes</a>();
<a name="l00106"></a>00106 
<a name="l00110"></a><a class="code" href="a00094.html#b17befd25dca445759994fe94ba7d6f4">00110</a>         <a class="code" href="a00095.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">MvDataElementByteIO</a>*  <a class="code" href="a00094.html#b17befd25dca445759994fe94ba7d6f4" title="Return pointer to the superblock splitting modes ByteIO stream.">SplitModeData</a>() { <span class="keywordflow">return</span> &amp;<a class="code" href="a00094.html#62ff4b8d7f8a00b02b91ab65c39a6f51" title="block data containing split modes">m_splitmode_data</a>; };
<a name="l00111"></a>00111 
<a name="l00115"></a><a class="code" href="a00094.html#74c26c82277a26bffbac223e17f4fdc1">00115</a>         <a class="code" href="a00095.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">MvDataElementByteIO</a>*  <a class="code" href="a00094.html#74c26c82277a26bffbac223e17f4fdc1" title="Return pointer to the superblock splitting modes ByteIO stream.">PredModeData</a>() { <span class="keywordflow">return</span> &amp;<a class="code" href="a00094.html#0815af42c589353879853a51e76a90ea" title="block data containing prediction modes">m_predmode_data</a>; };
<a name="l00116"></a>00116 
<a name="l00120"></a><a class="code" href="a00094.html#fc3ad30e54871f54ed2d4111b1785633">00120</a>         <a class="code" href="a00095.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">MvDataElementByteIO</a>*  <a class="code" href="a00094.html#fc3ad30e54871f54ed2d4111b1785633" title="Return pointer to the block MVs reference 1 ByteIO stream.">MV1HorizData</a>() { <span class="keywordflow">return</span> &amp;<a class="code" href="a00094.html#cdfa6c1c8f18bc787bcd51c61411c213" title="block data containing horizontal MV components for reference 1">m_mv1hblock_data</a>; };
<a name="l00121"></a>00121 
<a name="l00125"></a><a class="code" href="a00094.html#2291e4f5f5cf96b1abb5f541d3ce4c38">00125</a>         <a class="code" href="a00095.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">MvDataElementByteIO</a>*  <a class="code" href="a00094.html#2291e4f5f5cf96b1abb5f541d3ce4c38" title="Return pointer to the block MVs reference 1 ByteIO stream.">MV1VertData</a>() { <span class="keywordflow">return</span> &amp;<a class="code" href="a00094.html#af40a12b8b88dff411bea08f40adb62b" title="block data containing vertical MV components for reference 1">m_mv1vblock_data</a>; };
<a name="l00126"></a>00126 
<a name="l00130"></a><a class="code" href="a00094.html#d48afbf5a60d3d026602e24140996cd9">00130</a>         <a class="code" href="a00095.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">MvDataElementByteIO</a>*  <a class="code" href="a00094.html#d48afbf5a60d3d026602e24140996cd9" title="Return pointer to the block MV reference 2 ByteIO stream.">MV2HorizData</a>() { <span class="keywordflow">return</span> &amp;<a class="code" href="a00094.html#753b4994622da6d5cb410bdf45638abb" title="block data containing horizontal MV components for reference 2">m_mv2hblock_data</a>; };
<a name="l00131"></a>00131 
<a name="l00135"></a><a class="code" href="a00094.html#e7f3c9210a476adca15d998b6702f2d8">00135</a>         <a class="code" href="a00095.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">MvDataElementByteIO</a>*  <a class="code" href="a00094.html#e7f3c9210a476adca15d998b6702f2d8" title="Return pointer to the block MV reference 2 ByteIO stream.">MV2VertData</a>() { <span class="keywordflow">return</span> &amp;<a class="code" href="a00094.html#47593169ec3bb13bea22fb13f42da175" title="block data containing vertical MV components for reference 2">m_mv2vblock_data</a>; };
<a name="l00136"></a>00136 
<a name="l00140"></a><a class="code" href="a00094.html#872e1fe8b51f9b046e98254a655eb836">00140</a>         <a class="code" href="a00095.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">MvDataElementByteIO</a>*  <a class="code" href="a00094.html#872e1fe8b51f9b046e98254a655eb836" title="Return pointer to the block Y DC values ByteIO stream.">YDCData</a>() { <span class="keywordflow">return</span> &amp;<a class="code" href="a00094.html#7098aa797b395bdb9faad2f713e24bea" title="block data containing Y DC data">m_ydcblock_data</a>; };
<a name="l00141"></a>00141 
<a name="l00145"></a><a class="code" href="a00094.html#a9fba6bf8bea25a91b8971e86431fe98">00145</a>         <a class="code" href="a00095.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">MvDataElementByteIO</a>*  <a class="code" href="a00094.html#a9fba6bf8bea25a91b8971e86431fe98" title="Return pointer to the block U DC values ByteIO stream.">UDCData</a>() { <span class="keywordflow">return</span> &amp;<a class="code" href="a00094.html#39e4b15dee357f727f416b75f0e6ec58" title="block data containing U DC data">m_udcblock_data</a>; };
<a name="l00146"></a>00146 
<a name="l00150"></a><a class="code" href="a00094.html#f0bc8d9606f3cb6a919f6e5f93873247">00150</a>         <a class="code" href="a00095.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">MvDataElementByteIO</a>*  <a class="code" href="a00094.html#f0bc8d9606f3cb6a919f6e5f93873247" title="Return pointer to the block V DC values ByteIO stream.">VDCData</a>() { <span class="keywordflow">return</span> &amp;<a class="code" href="a00094.html#096077fbc10182b30f8d82f95e4e8153" title="block data containing V DC data">m_vdcblock_data</a>; };
<a name="l00151"></a>00151 
<a name="l00155"></a>00155         <span class="keywordtype">int</span> <a class="code" href="a00094.html#ed4decdd15ae01c6c5d5d01800431bbc" title="Return the size.">GetSize</a>() <span class="keyword">const</span>;
<a name="l00156"></a>00156 
<a name="l00157"></a>00157     <span class="keyword">protected</span>:
<a name="l00158"></a>00158 
<a name="l00159"></a>00159 
<a name="l00160"></a>00160     <span class="keyword">private</span>:
<a name="l00164"></a>00164         <span class="keywordtype">void</span> <a class="code" href="a00094.html#b05dc4da6914166c27f6d59ff1c18117" title="Inputs block parameters.">InputBlockParams</a>();
<a name="l00165"></a>00165 
<a name="l00169"></a>00169         <span class="keywordtype">void</span> <a class="code" href="a00094.html#bee4d405a803cdd52f65ac083b581b14" title="Inputs Motion vector precision data.">InputMVPrecision</a>();
<a name="l00170"></a>00170 
<a name="l00174"></a>00174         <span class="keywordtype">void</span> <a class="code" href="a00094.html#67862d5409afcdd5c0eda63046179ba4" title="Inputs global motion parameters.">InputGlobalMotionParams</a>();
<a name="l00175"></a>00175 
<a name="l00179"></a>00179         <span class="keywordtype">void</span> <a class="code" href="a00094.html#edc7d3894db8047e8c18742f18428e90" title="Inputs picture prediction mode.">InputFramePredictionMode</a>();
<a name="l00180"></a>00180 
<a name="l00184"></a>00184         <span class="keywordtype">void</span> <a class="code" href="a00094.html#1e47dd4d9f4fc4814019a0fe20360459" title="Inputs Picture Weights.">InputPictureWeights</a>();
<a name="l00185"></a>00185 
<a name="l00189"></a>00189         <span class="keywordtype">void</span> <a class="code" href="a00094.html#680c1544f0f7f4ae880fe56534b85fe8" title="Outputs block parameters.">OutputBlockParams</a>();
<a name="l00190"></a>00190 
<a name="l00194"></a>00194         <span class="keywordtype">void</span> <a class="code" href="a00094.html#33f41253db15466616b7dc712da8569f" title="Outputs Motion vector precision data.">OutputMVPrecision</a>();
<a name="l00195"></a>00195 
<a name="l00199"></a>00199         <span class="keywordtype">void</span> <a class="code" href="a00094.html#0c06e8527917d5be6a068c61e7b10986" title="Outputs global motion parameters.">OutputGlobalMotionParams</a>();
<a name="l00200"></a>00200 
<a name="l00204"></a>00204         <span class="keywordtype">void</span> <a class="code" href="a00094.html#60d8c1194ec2f941eaab3fc10c4d912d" title="Outputs picture prediction mode.">OutputFramePredictionMode</a>();
<a name="l00205"></a>00205 
<a name="l00209"></a>00209         <span class="keywordtype">void</span> <a class="code" href="a00094.html#e92b805830f69dda3c011bbf9518a049" title="Outputs Picture Weights.">OutputPictureWeights</a>();
<a name="l00210"></a>00210 
<a name="l00214"></a><a class="code" href="a00094.html#457fd989804a8ac88aacba813fce3a4a">00214</a>         <a class="code" href="a00113.html" title="Parameters for initialising picture class objects.">PictureParams</a>&amp;   <a class="code" href="a00094.html#457fd989804a8ac88aacba813fce3a4a" title="Sequence paramters for intput/output.">m_pparams</a>;
<a name="l00215"></a>00215 
<a name="l00219"></a><a class="code" href="a00094.html#2a44c052b9865d93b1bb8bd21eeb3648">00219</a>         <a class="code" href="a00114.html" title="Structure to hold motion parameters when motion comp is used.">PicturePredParams</a>&amp; <a class="code" href="a00094.html#2a44c052b9865d93b1bb8bd21eeb3648" title="Codec params - EncParams for Output and DecParams for input.">m_picpredparams</a>;
<a name="l00220"></a>00220 
<a name="l00224"></a><a class="code" href="a00094.html#62ff4b8d7f8a00b02b91ab65c39a6f51">00224</a>         <a class="code" href="a00095.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">MvDataElementByteIO</a> <a class="code" href="a00094.html#62ff4b8d7f8a00b02b91ab65c39a6f51" title="block data containing split modes">m_splitmode_data</a>;
<a name="l00225"></a>00225 
<a name="l00229"></a><a class="code" href="a00094.html#0815af42c589353879853a51e76a90ea">00229</a>         <a class="code" href="a00095.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">MvDataElementByteIO</a> <a class="code" href="a00094.html#0815af42c589353879853a51e76a90ea" title="block data containing prediction modes">m_predmode_data</a>;
<a name="l00230"></a>00230 
<a name="l00234"></a><a class="code" href="a00094.html#cdfa6c1c8f18bc787bcd51c61411c213">00234</a>         <a class="code" href="a00095.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">MvDataElementByteIO</a> <a class="code" href="a00094.html#cdfa6c1c8f18bc787bcd51c61411c213" title="block data containing horizontal MV components for reference 1">m_mv1hblock_data</a>;
<a name="l00235"></a>00235 
<a name="l00239"></a><a class="code" href="a00094.html#af40a12b8b88dff411bea08f40adb62b">00239</a>         <a class="code" href="a00095.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">MvDataElementByteIO</a> <a class="code" href="a00094.html#af40a12b8b88dff411bea08f40adb62b" title="block data containing vertical MV components for reference 1">m_mv1vblock_data</a>;
<a name="l00240"></a>00240 
<a name="l00244"></a><a class="code" href="a00094.html#753b4994622da6d5cb410bdf45638abb">00244</a>         <a class="code" href="a00095.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">MvDataElementByteIO</a> <a class="code" href="a00094.html#753b4994622da6d5cb410bdf45638abb" title="block data containing horizontal MV components for reference 2">m_mv2hblock_data</a>;
<a name="l00245"></a>00245 
<a name="l00249"></a><a class="code" href="a00094.html#47593169ec3bb13bea22fb13f42da175">00249</a>         <a class="code" href="a00095.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">MvDataElementByteIO</a> <a class="code" href="a00094.html#47593169ec3bb13bea22fb13f42da175" title="block data containing vertical MV components for reference 2">m_mv2vblock_data</a>;
<a name="l00250"></a>00250 
<a name="l00254"></a><a class="code" href="a00094.html#7098aa797b395bdb9faad2f713e24bea">00254</a>         <a class="code" href="a00095.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">MvDataElementByteIO</a> <a class="code" href="a00094.html#7098aa797b395bdb9faad2f713e24bea" title="block data containing Y DC data">m_ydcblock_data</a>;
<a name="l00255"></a>00255 
<a name="l00259"></a><a class="code" href="a00094.html#39e4b15dee357f727f416b75f0e6ec58">00259</a>         <a class="code" href="a00095.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">MvDataElementByteIO</a> <a class="code" href="a00094.html#39e4b15dee357f727f416b75f0e6ec58" title="block data containing U DC data">m_udcblock_data</a>;
<a name="l00260"></a>00260 
<a name="l00264"></a><a class="code" href="a00094.html#096077fbc10182b30f8d82f95e4e8153">00264</a>         <a class="code" href="a00095.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">MvDataElementByteIO</a> <a class="code" href="a00094.html#096077fbc10182b30f8d82f95e4e8153" title="block data containing V DC data">m_vdcblock_data</a>;
<a name="l00265"></a>00265     };
<a name="l00266"></a>00266 
<a name="l00267"></a>00267 } <span class="comment">// namespace dirac</span>
<a name="l00268"></a>00268 
<a name="l00269"></a>00269 <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>