Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > b91608bcc8cdfae85c75f04c03683d58 > files > 339

lib64dirac-devel-0.9.1-1mdv2008.1.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.4 -->
<h1>dirac_byte_stream.h</h1><a href="a00175.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: dirac_byte_stream.h,v 1.1 2006/04/20 10:41:56 asuraparaju Exp $ $Name: Dirac_0_9_1 $</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): Andrew Kennedy</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="l00041"></a>00041 <span class="preprocessor">#ifndef dirac_byte_stream_h</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor">#define dirac_byte_stream_h</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span>
<a name="l00044"></a>00044 <span class="comment">//SYSTEM INCLUDES</span>
<a name="l00045"></a>00045 <span class="preprocessor">#include &lt;queue&gt;</span>
<a name="l00046"></a>00046 
<a name="l00047"></a>00047 <span class="comment">//LOCAL INCLUDES</span>
<a name="l00048"></a>00048 <span class="preprocessor">#include "<a class="code" href="a00164.html">byteio.h</a>"</span>             <span class="comment">// Parent class</span>
<a name="l00049"></a>00049 <span class="preprocessor">#include "<a class="code" href="a00157.html">accessunit_byteio.h</a>"</span>  <span class="comment">// manages parse-unit types</span>
<a name="l00050"></a>00050 <span class="preprocessor">#include "<a class="code" href="a00187.html">frame_byteio.h</a>"</span>       <span class="comment">// manages parse-unit types</span>
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 <span class="keyword">namespace </span>dirac
<a name="l00053"></a>00053 {
<a name="l00054"></a>00054 
<a name="l00059"></a><a class="code" href="a00053.html">00059</a>     <span class="keyword">class </span><a class="code" href="a00053.html" title="Represents a series of bytes in the Dirac bytestream specfication format.">DiracByteStream</a> : <span class="keyword">public</span> <a class="code" href="a00018.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="l00066"></a>00066         <a class="code" href="a00053.html#aa62837bbe7a2d3a425a49cf243a95a3" title="Constructor.">DiracByteStream</a>();
<a name="l00067"></a>00067 
<a name="l00071"></a>00071         <a class="code" href="a00053.html#9229b3897fa9a6b32b7cbb26252bf89d" title="Destructor.">~DiracByteStream</a>();
<a name="l00072"></a>00072        
<a name="l00078"></a>00078         <span class="keywordtype">void</span> <a class="code" href="a00053.html#886ecda8d1eb1c1e52023bf813b296e8" title="Adds Dirac-formatted bytes to internal-byte-stream for processing.">AddBytes</a>(<span class="keywordtype">char</span>* start, <span class="keywordtype">int</span> count);
<a name="l00079"></a>00079 
<a name="l00084"></a>00084         <a class="code" href="a00052.html" title="Class DiracByteStats - for collecting statistics on aspects of the Dirac byte-stream...">DiracByteStats</a> <a class="code" href="a00053.html#344c3942117d3eb82b3537dd0b3aeb59" title="Gets the statistics of the most recent parse-unit to be processed.">GetLastUnitStats</a>();
<a name="l00085"></a>00085 
<a name="l00089"></a>00089         <a class="code" href="a00111.html" title="Represents a collection of data in a Dirac bytestream that can be parsed as a self-contained...">ParseUnitByteIO</a>* <a class="code" href="a00053.html#3c4403fae9c52fd1f1085af2886dc87b" title="Gets the next parse-unit in the current byte-stream.">GetNextParseUnit</a>();
<a name="l00090"></a>00090 
<a name="l00091"></a>00091 
<a name="l00095"></a>00095         <a class="code" href="a00052.html" title="Class DiracByteStats - for collecting statistics on aspects of the Dirac byte-stream...">DiracByteStats</a> <a class="code" href="a00053.html#2bb41c9af3925c92283d7b9461b1f133" title="Gets stats for current sequence.">GetSequenceStats</a>() <span class="keyword">const</span>;
<a name="l00096"></a>00096 
<a name="l00102"></a>00102         <span class="keywordtype">void</span> <a class="code" href="a00053.html#c8dacbf071d271dd39922d6eea8c8a0b" title="Adds a random access point to the current Dirac byte stream.">AddAccessUnit</a>(<a class="code" href="a00001.html" title="A random access point within a Dirac bytestream.">AccessUnitByteIO</a> *p_accessunit_byteio);
<a name="l00103"></a>00103 
<a name="l00108"></a>00108         <span class="keywordtype">void</span> <a class="code" href="a00053.html#16ce0583b986b64e1a34307a033d27c9" title="Adds a frame to the current Dirac byte stream.">AddFrame</a>(<a class="code" href="a00074.html" title="A compressed frame in Dirac bytestream format.">FrameByteIO</a> *p_frame_byteio);
<a name="l00109"></a>00109 
<a name="l00113"></a>00113         <span class="keywordtype">void</span> <a class="code" href="a00053.html#df3a7778cabf59f308c627a4c8414412" title="Clear parse-units.">Clear</a>();
<a name="l00114"></a>00114 
<a name="l00119"></a>00119         <a class="code" href="a00052.html" title="Class DiracByteStats - for collecting statistics on aspects of the Dirac byte-stream...">DiracByteStats</a> <a class="code" href="a00053.html#55397bfb36f5469534737fc76ec0b208" title="Insert end-of-sequence data.">EndSequence</a>();
<a name="l00120"></a>00120 
<a name="l00124"></a>00124         <span class="keyword">const</span> std::string <a class="code" href="a00053.html#888f2967817a63db1ba2dd2f0ce2ae7c" title="Gets a pointer to all current output bytes.">GetBytes</a>();
<a name="l00125"></a>00125 
<a name="l00129"></a>00129         <span class="keywordtype">bool</span> <a class="code" href="a00053.html#bfffa7f06d0a0643a0d0559f1fe44008" title="Any info pending?">IsUnitAvailable</a>() <span class="keyword">const</span>;
<a name="l00130"></a>00130 
<a name="l00131"></a>00131         <span class="keyword">private</span>:
<a name="l00132"></a>00132        
<a name="l00136"></a><a class="code" href="a00053.html#67bf15529dedc11e2701faaa5355d83f">00136</a>         <span class="keyword">typedef</span> std::queue&lt; std::pair &lt;ParseUnitType, ParseUnitByteIO*&gt; &gt; <a class="code" href="a00053.html#67bf15529dedc11e2701faaa5355d83f" title="Parse-units in Dirac stream.">ParseUnitList</a>;
<a name="l00137"></a><a class="code" href="a00053.html#5e0e0c2f59124ab27ef5efe38e2cd764">00137</a>         <a class="code" href="a00053.html#67bf15529dedc11e2701faaa5355d83f" title="Parse-units in Dirac stream.">ParseUnitList</a>       <a class="code" href="a00053.html#5e0e0c2f59124ab27ef5efe38e2cd764">m_parse_unit_list</a>;
<a name="l00138"></a>00138 
<a name="l00143"></a><a class="code" href="a00053.html#f4d273af590708a285bb77769591c22f">00143</a>         <a class="code" href="a00111.html" title="Represents a collection of data in a Dirac bytestream that can be parsed as a self-contained...">ParseUnitByteIO</a>* <a class="code" href="a00053.html#f4d273af590708a285bb77769591c22f" title="Last unit to be processed Required for specifying the previous parse-unit.">mp_prev_parse_unit</a>;
<a name="l00144"></a>00144 
<a name="l00150"></a><a class="code" href="a00053.html#03db2ca5bfd395f4d20de808bbe7dd96">00150</a>         <a class="code" href="a00111.html" title="Represents a collection of data in a Dirac bytestream that can be parsed as a self-contained...">ParseUnitByteIO</a>* <a class="code" href="a00053.html#03db2ca5bfd395f4d20de808bbe7dd96" title="Next parse-unit waiting to be processed A parse-unit can only be declared valid only...">mp_next_parse_unit</a>;
<a name="l00151"></a>00151 
<a name="l00155"></a><a class="code" href="a00053.html#b821c79768622050595465d8c87dc584">00155</a>         <a class="code" href="a00052.html" title="Class DiracByteStats - for collecting statistics on aspects of the Dirac byte-stream...">DiracByteStats</a>      <a class="code" href="a00053.html#b821c79768622050595465d8c87dc584" title="Stats for current sequence.">m_sequence_stats</a>;
<a name="l00156"></a>00156         
<a name="l00157"></a>00157     };
<a name="l00158"></a>00158 
<a name="l00159"></a>00159 } <span class="comment">// namespace dirac</span>
<a name="l00160"></a>00160 
<a name="l00161"></a>00161 <span class="preprocessor">#endif</span>
</pre></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>