<!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>displayparams_byteio.h</h1><a href="a00187.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: displayparams_byteio.h,v 1.4 2008/01/15 04:36:23 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): Andrew Kennedy (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="l00041"></a>00041 <span class="preprocessor">#ifndef displayparams_byteio_h</span> <a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor">#define displayparams_byteio_h</span> <a name="l00043"></a>00043 <span class="preprocessor"></span> <a name="l00044"></a>00044 <a name="l00045"></a>00045 <span class="comment">// DIRAC INCLUDES</span> <a name="l00046"></a>00046 <span class="preprocessor">#include <<a class="code" href="a00171.html">libdirac_common/common.h</a>></span> <span class="comment">// SeqParams</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 <<a class="code" href="a00168.html">libdirac_byteio/byteio.h</a>></span> <span class="comment">// Parent class</span> <a name="l00050"></a>00050 <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="l00058"></a><a class="code" href="a00132.html">00058</a> <span class="keyword">class </span><a class="code" href="a00132.html" title="Represents compressed source-parameter data contained in a sequence header.">SourceParamsByteIO</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="l00059"></a>00059 { <a name="l00060"></a>00060 <span class="keyword">public</span>: <a name="l00061"></a>00061 <a name="l00068"></a>00068 <a class="code" href="a00132.html#bdf8cd8ff979399e1aa4545c3f71d5d6" title="Constructor for Input/Output.">SourceParamsByteIO</a>( <a class="code" href="a00131.html" title="Parameters relating to the source material being encoded/decoded.">SourceParams</a>& src_params, <a name="l00069"></a>00069 <span class="keyword">const</span> <a class="code" href="a00131.html" title="Parameters relating to the source material being encoded/decoded.">SourceParams</a>& default_src_params, <a name="l00070"></a>00070 <span class="keyword">const</span> <a class="code" href="a00016.html" title="Class ByteIO - top-level class for reading/writing bytes to a stream.">ByteIO</a>& stream_data); <a name="l00074"></a>00074 <a class="code" href="a00132.html#12d703b9662e4a918c99f5de7257e553" title="Destructor.">~SourceParamsByteIO</a>(); <a name="l00075"></a>00075 <a name="l00079"></a>00079 <span class="keywordtype">void</span> <a class="code" href="a00132.html#0dc80ad0beab2f474d8fdd4315dc5039" title="Reads source params information from Dirac byte-format.">Input</a>(); <a name="l00080"></a>00080 <a name="l00084"></a>00084 <span class="keywordtype">void</span> <a class="code" href="a00132.html#aa3b802321cd8638665b3ba1aa8c2cd5" title="Outputs source params information to Dirac byte-format.">Output</a>(); <a name="l00085"></a>00085 <a name="l00086"></a>00086 <span class="keyword">protected</span>: <a name="l00087"></a>00087 <a name="l00088"></a>00088 <a name="l00089"></a>00089 <span class="keyword">private</span>: <a name="l00090"></a>00090 <a name="l00094"></a>00094 <span class="keywordtype">void</span> <a class="code" href="a00132.html#d90ad3e1bcc9726d9e7c2e70fed245a4" title="Reads frame dimensions.">InputFrameSize</a>(); <a name="l00095"></a>00095 <a name="l00099"></a>00099 <span class="keywordtype">void</span> <a class="code" href="a00132.html#8428162d82de4cfd762d6f032954a6ce" title="Reads Chroma Sampling Format.">InputChromaSamplingFormat</a>(); <a name="l00100"></a>00100 <a name="l00104"></a>00104 <span class="keywordtype">void</span> <a class="code" href="a00132.html#12105b7ca08611f2cb3b00665a99fee8" title="Reads pixel aspect ratio info.">InputPixelAspectRatio</a>(); <a name="l00105"></a>00105 <a name="l00109"></a>00109 <span class="keywordtype">void</span> <a class="code" href="a00132.html#f2b61cf5e942c9fd3f5c517732700481" title="Reads clean-area info.">InputCleanArea</a>(); <a name="l00110"></a>00110 <a name="l00114"></a>00114 <span class="keywordtype">void</span> <a class="code" href="a00132.html#ccd804803fa2b962a5497ced712d8f1d" title="Reads colour-matrix info.">InputColourMatrix</a>(); <a name="l00115"></a>00115 <a name="l00119"></a>00119 <span class="keywordtype">void</span> <a class="code" href="a00132.html#eb0eaed3a851b6a8ada896bd1448527f" title="Reads primary-colour info.">InputColourPrimaries</a>(); <a name="l00120"></a>00120 <a name="l00124"></a>00124 <span class="keywordtype">void</span> <a class="code" href="a00132.html#f73e4a36c238cf1c198b2368ff83840f" title="Reads colour spec info.">InputColourSpecification</a>(); <a name="l00125"></a>00125 <a name="l00129"></a>00129 <span class="keywordtype">void</span> <a class="code" href="a00132.html#b9ace714d4a4a45f8f1aa49dd5e3b649" title="Reads frame-rate info.">InputFrameRate</a>(); <a name="l00130"></a>00130 <a name="l00134"></a>00134 <span class="keywordtype">void</span> <a class="code" href="a00132.html#1501078c3e5c621eea09e1a8fa1b23fe" title="Reads Scan info.">InputScanFormat</a>(); <a name="l00135"></a>00135 <a name="l00139"></a>00139 <span class="keywordtype">void</span> <a class="code" href="a00132.html#4e1ca4f9dedee757917331bf57463185" title="Reads signal range info.">InputSignalRange</a>(); <a name="l00140"></a>00140 <a name="l00144"></a>00144 <span class="keywordtype">void</span> <a class="code" href="a00132.html#9e520dfcbcbe9d7476c6d771a2a903d9" title="Reads transfer-function info.">InputTransferFunction</a>(); <a name="l00145"></a>00145 <a name="l00149"></a>00149 <span class="keywordtype">void</span> <a class="code" href="a00132.html#76bf75486156c079752830769566b8cc" title="Outputs frame dimensions.">OutputFrameSize</a>(); <a name="l00150"></a>00150 <a name="l00154"></a>00154 <span class="keywordtype">void</span> <a class="code" href="a00132.html#adc26095ca69c798d7134968569847a0" title="Outputs Chroma Sampling Format.">OutputChromaSamplingFormat</a>(); <a name="l00155"></a>00155 <a name="l00159"></a>00159 <span class="keywordtype">void</span> <a class="code" href="a00132.html#67f4843817498f17438b9bbfd1ea3f1a" title="Outputs pixel aspect ratio info.">OutputPixelAspectRatio</a>(); <a name="l00160"></a>00160 <a name="l00164"></a>00164 <span class="keywordtype">void</span> <a class="code" href="a00132.html#fe4e6bf92c064db54d94a93869858687" title="Outputs clean-area info.">OutputCleanArea</a>(); <a name="l00165"></a>00165 <a name="l00169"></a>00169 <span class="keywordtype">void</span> <a class="code" href="a00132.html#f4945155a323e54ff099116d0692283d" title="Outputs colour spec info.">OutputColourSpecification</a>(); <a name="l00170"></a>00170 <a name="l00174"></a>00174 <span class="keywordtype">void</span> <a class="code" href="a00132.html#879a1edc978ed7fe3843ea72147acf24" title="Outputs frame-rate info.">OutputFrameRate</a>(); <a name="l00175"></a>00175 <a name="l00179"></a>00179 <span class="keywordtype">void</span> <a class="code" href="a00132.html#1461a85619e27da3da5a5b2278af0b77" title="Outputs Scan info.">OutputScanFormat</a>(); <a name="l00180"></a>00180 <a name="l00184"></a>00184 <span class="keywordtype">void</span> <a class="code" href="a00132.html#d75f0bb4b870a13270d865d37bdd3938" title="Outputs signal range info.">OutputSignalRange</a>(); <a name="l00185"></a>00185 <a name="l00189"></a><a class="code" href="a00132.html#3512cdfa33f0fd03b45e7d2ea3a951cc">00189</a> <a class="code" href="a00131.html" title="Parameters relating to the source material being encoded/decoded.">SourceParams</a>& <a class="code" href="a00132.html#3512cdfa33f0fd03b45e7d2ea3a951cc" title="Source parameters for input/ouput.">m_src_params</a>; <a name="l00190"></a>00190 <a name="l00194"></a><a class="code" href="a00132.html#285dc469e21cf2962dda3f29ce6b9fa8">00194</a> <span class="keyword">const</span> <a class="code" href="a00131.html" title="Parameters relating to the source material being encoded/decoded.">SourceParams</a>& <a class="code" href="a00132.html#285dc469e21cf2962dda3f29ce6b9fa8" title="Default source parameters.">m_default_src_params</a>; <a name="l00195"></a>00195 }; <a name="l00196"></a>00196 <a name="l00197"></a>00197 <a name="l00198"></a>00198 } <span class="comment">// namespace dirac</span> <a name="l00199"></a>00199 <a name="l00200"></a>00200 <span class="preprocessor">#endif</span> </pre></div></div> <hr> <p align="center"><small> © 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>