Sophie

Sophie

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

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>transform_byteio.h</h1><a href="a00230.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: transform_byteio.h,v 1.2 2008/01/31 11:25:15 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): 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 TRANSFORM_BYTEIO_H</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="preprocessor">#define TRANSFORM_BYTEIO_H</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span>
<a name="l00045"></a>00045 <span class="comment">// DIRAC INCLUDES</span>
<a name="l00046"></a>00046 <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="l00047"></a>00047 
<a name="l00048"></a>00048 <span class="comment">//LOCAL INCLUDES</span>
<a name="l00049"></a>00049 <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="l00050"></a>00050 <span class="preprocessor">#include &lt;<a class="code" href="a00175.html">libdirac_byteio/component_byteio.h</a>&gt;</span>   <span class="comment">// Contains tranform-component</span>
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 <span class="keyword">namespace </span>dirac
<a name="l00054"></a>00054 {
<a name="l00055"></a>00055              
<a name="l00059"></a><a class="code" href="a00144.html">00059</a>     <span class="keyword">class </span><a class="code" href="a00144.html" title="Represents compressed sequence-parameter data used in an AccessUnit.">TransformByteIO</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="a00144.html#4c01fb421ca72af5c755c314d121325d" title="Output Constructor.">TransformByteIO</a>(<a class="code" href="a00113.html" title="Parameters for initialising picture class objects.">PictureParams</a>&amp; fparams,
<a name="l00069"></a>00069                         <a class="code" href="a00019.html" title="Parameters common to coder and decoder operation.">CodecParams</a>&amp; c_params);
<a name="l00070"></a>00070 
<a name="l00077"></a>00077         <a class="code" href="a00144.html#4c01fb421ca72af5c755c314d121325d" title="Output Constructor.">TransformByteIO</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; fparams,
<a name="l00078"></a>00078                         <a class="code" href="a00019.html" title="Parameters common to coder and decoder operation.">CodecParams</a>&amp; c_params);
<a name="l00079"></a>00079 
<a name="l00083"></a>00083         <span class="keyword">virtual</span> <a class="code" href="a00144.html#5a9b78834844193284b46d5386fb17c5" title="Destructor.">~TransformByteIO</a>();
<a name="l00084"></a>00084 
<a name="l00089"></a>00089         <span class="keywordtype">void</span> <a class="code" href="a00144.html#78d2b5a1913e50f1676d666a84ff83e8" title="Gathers byte stats on the transform 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="a00144.html#e1ab225e5b364f53ffe94de3160bd0ff" title="Outputs sequence information to Dirac byte-format.">Output</a>();
<a name="l00095"></a>00095 
<a name="l00099"></a>00099         <span class="keywordtype">void</span> <a class="code" href="a00144.html#82c1849c3a22e3e8c161b2fd5df3da17" title="Outputs sequence information to Dirac byte-format.">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="a00144.html#476bc03eb7978e52f42615fdafd212d8" title="Get string containing coded bytes.">GetBytes</a>();
<a name="l00106"></a>00106 
<a name="l00110"></a>00110         <span class="keywordtype">int</span> <a class="code" href="a00144.html#e3949ad00e9b7c21d528d9b9372ddfd4" title="Return the size.">GetSize</a>() <span class="keyword">const</span>;
<a name="l00111"></a>00111         
<a name="l00116"></a>00116         <span class="keywordtype">void</span> <a class="code" href="a00144.html#ab97063743e03fd285fd15c3ca77c258" title="Adds a Picture-component in Dirac-bytestream format.">AddComponent</a>(<a class="code" href="a00025.html" title="Picture component in Dirac bytestream format.">ComponentByteIO</a> *component_byteio);
<a name="l00117"></a>00117 
<a name="l00118"></a>00118     <span class="keyword">protected</span>:
<a name="l00119"></a>00119     
<a name="l00120"></a>00120 
<a name="l00121"></a>00121     <span class="keyword">private</span>:
<a name="l00122"></a>00122     
<a name="l00126"></a><a class="code" href="a00144.html#e19737308da3699bc42ff5958086aa7e">00126</a>         <a class="code" href="a00113.html" title="Parameters for initialising picture class objects.">PictureParams</a>&amp;   <a class="code" href="a00144.html#e19737308da3699bc42ff5958086aa7e" title="Sequence paramters for intput/output.">m_fparams</a>;
<a name="l00127"></a>00127 
<a name="l00131"></a><a class="code" href="a00144.html#9df486a21d4fd2531243945b2c442e8e">00131</a>         <a class="code" href="a00019.html" title="Parameters common to coder and decoder operation.">CodecParams</a>&amp; <a class="code" href="a00144.html#9df486a21d4fd2531243945b2c442e8e" title="Codec params - EncParams for Output and DecParams for input.">m_cparams</a>;
<a name="l00132"></a>00132         
<a name="l00136"></a><a class="code" href="a00144.html#0a661802dd6e4ebd43df182a7542ba60">00136</a>         <a class="code" href="a00019.html" title="Parameters common to coder and decoder operation.">CodecParams</a> <a class="code" href="a00144.html#0a661802dd6e4ebd43df182a7542ba60" title="Default Codec params - EncParams for Output and DecParams for input.">m_default_cparams</a>;
<a name="l00137"></a>00137 
<a name="l00138"></a>00138         <span class="comment">/***</span>
<a name="l00139"></a>00139 <span class="comment">        * Transform Component data</span>
<a name="l00140"></a>00140 <span class="comment">        */</span>
<a name="l00141"></a><a class="code" href="a00144.html#917792412a81756b426077f5416e0671">00141</a>         std::vector&lt;ComponentByteIO *&gt; <a class="code" href="a00144.html#917792412a81756b426077f5416e0671">m_component_list</a>;
<a name="l00142"></a>00142     };
<a name="l00143"></a>00143 
<a name="l00144"></a>00144 } <span class="comment">// namespace dirac</span>
<a name="l00145"></a>00145 
<a name="l00146"></a>00146 <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>