Sophie

Sophie

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

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>dirac_types.h</h1><a href="a00186.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_types.h,v 1.12 2008/11/18 23:25:54 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="l00039"></a>00039 <span class="preprocessor">#ifndef _DIRAC_TYPES_H</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#define _DIRAC_TYPES_H</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>
<a name="l00042"></a>00042 <span class="preprocessor">#include &lt;<a class="code" href="a00172.html">libdirac_common/common_types.h</a>&gt;</span>
<a name="l00043"></a>00043 
<a name="l00048"></a>00048 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
<a name="l00050"></a>00050 <span class="preprocessor">#endif</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span>
<a name="l00052"></a>00052 <span class="preprocessor">#if defined(WIN32) &amp;&amp; defined(_WINDLL)</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span><span class="preprocessor">#define DllExport   __declspec( dllexport )</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00055"></a><a class="code" href="a00186.html#f83a0ad9d707a0bc5fe281b6e5c358a1">00055</a> <span class="preprocessor"></span><span class="preprocessor">#define DllExport</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00057"></a>00057 <span class="preprocessor"></span>
<a name="l00058"></a>00058 <span class="comment">/*</span>
<a name="l00059"></a>00059 <span class="comment">*   Major version corresponds to major version of the software.</span>
<a name="l00060"></a>00060 <span class="comment">*   Minor version corresponds to minor version of the software. Bump</span>
<a name="l00061"></a>00061 <span class="comment">*   this up by one whenever there are  major feature changes to the software.</span>
<a name="l00062"></a>00062 <span class="comment">*   Patch version corresponds to changes in the API. It should be</span>
<a name="l00063"></a>00063 <span class="comment">*   bumped up by 1 for every committed change to the API</span>
<a name="l00064"></a>00064 <span class="comment">*/</span>
<a name="l00065"></a><a class="code" href="a00186.html#b7e5ddf611aaa22b74773609285d42ac">00065</a> <span class="preprocessor">#define DIRAC_RESEARCH_MAJOR_VERSION 1   </span><span class="comment">/* 0..255 */</span>
<a name="l00066"></a><a class="code" href="a00186.html#8c947d1c29b3738f5e60843efe299608">00066</a> <span class="preprocessor">#define DIRAC_RESEARCH_MINOR_VERSION 0   </span><span class="comment">/* 0..255 */</span>
<a name="l00067"></a><a class="code" href="a00186.html#ea09994dd017ba0c2dedf1f134a5941b">00067</a> <span class="preprocessor">#define DIRAC_RESEARCH_PATCH_VERSION 2   </span><span class="comment">/* 0..255 */</span>
<a name="l00068"></a>00068 
<a name="l00069"></a><a class="code" href="a00186.html#e48ff70045771f52d7d5f2f18f185808">00069</a> <span class="preprocessor">#define DIRAC_RESEARCH_VERSION(X, Y, Z)      \</span>
<a name="l00070"></a>00070 <span class="preprocessor">    (((X)&lt;&lt;16) + ((Y)&lt;&lt;8) + (Z))</span>
<a name="l00071"></a>00071 <span class="preprocessor"></span>
<a name="l00072"></a><a class="code" href="a00186.html#08915609f31659fd20838f83799c60dd">00072</a> <span class="preprocessor">#define DIRAC_RESEARCH_CURVERSION                        \</span>
<a name="l00073"></a>00073 <span class="preprocessor">    DIRAC_RESEARCH_VERSION(DIRAC_RESEARCH_MAJOR_VERSION, \</span>
<a name="l00074"></a>00074 <span class="preprocessor">    DIRAC_RESEARCH_MINOR_VERSION,                        \</span>
<a name="l00075"></a>00075 <span class="preprocessor">    DIRAC_RESEARCH_PATCH_VERSION)</span>
<a name="l00076"></a>00076 <span class="preprocessor"></span>
<a name="l00077"></a><a class="code" href="a00186.html#3d0f6b93dbe6f3673fab159c833aafa6">00077</a> <span class="preprocessor">#define DIRAC_RESEARCH_VERSION_ATLEAST(X, Y, Z) \</span>
<a name="l00078"></a>00078 <span class="preprocessor">    (DIRAC_RESEARCH_CURVERSION &gt;= DIRAC_RESEARCH_VERSION(X, Y, Z))</span>
<a name="l00079"></a>00079 <span class="preprocessor"></span>
<a name="l00080"></a>00080 <span class="comment">/*</span>
<a name="l00081"></a>00081 <span class="comment">* Some basic enumeration types used by end user encoder and decoder ...//</span>
<a name="l00082"></a>00082 <span class="comment">*/</span>
<a name="l00083"></a><a class="code" href="a00186.html#8de1a33b37a16b4d63247eaa8855e327">00083</a> <span class="keyword">typedef</span> <a class="code" href="a00172.html#4a6c51c10f2eb04abc7209db7caff39f">ChromaFormat</a> <a class="code" href="a00172.html#4a6c51c10f2eb04abc7209db7caff39f">dirac_chroma_t</a>;
<a name="l00084"></a><a class="code" href="a00186.html#a7ac99ea37cf254a5d37a63727b6ac3b">00084</a> <span class="keyword">typedef</span> <a class="code" href="a00172.html#4f37629f775549c508f4c5625ae348b3">PictureType</a> <a class="code" href="a00172.html#4f37629f775549c508f4c5625ae348b3">dirac_picture_type_t</a>;
<a name="l00085"></a><a class="code" href="a00186.html#1fb0af81927d05b8cd4337b3a07c0db4">00085</a> <span class="keyword">typedef</span> <a class="code" href="a00172.html#a298d9663bceef9c2ac2880c5bae3327">ReferenceType</a> <a class="code" href="a00172.html#a298d9663bceef9c2ac2880c5bae3327">dirac_reference_type_t</a>;
<a name="l00086"></a><a class="code" href="a00186.html#39dcf507464ca4809581653bdd5bb9f3">00086</a> <span class="keyword">typedef</span> <a class="code" href="a00172.html#cb32bc58ece3811ce3ce9aa0375a67a4">WltFilter</a> <a class="code" href="a00172.html#cb32bc58ece3811ce3ce9aa0375a67a4">dirac_wlt_filter_t</a>;
<a name="l00087"></a>00087 
<a name="l00088"></a><a class="code" href="a00046.html">00088</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00089"></a>00089 {
<a name="l00090"></a><a class="code" href="a00046.html#0431340ecd19529945f41d95bac08cd3">00090</a>     <span class="keywordtype">int</span> numerator;
<a name="l00091"></a><a class="code" href="a00046.html#16a4999cc9b3508491a50d4de553f2a7">00091</a>     <span class="keywordtype">int</span> denominator;
<a name="l00092"></a>00092 } <a class="code" href="a00046.html">dirac_rational_t</a>;
<a name="l00093"></a>00093 
<a name="l00094"></a><a class="code" href="a00186.html#a5ac4d12a2862ebada57ddfab7bd9e73">00094</a> <span class="keyword">typedef</span> <a class="code" href="a00046.html">dirac_rational_t</a> <a class="code" href="a00046.html">dirac_frame_rate_t</a>;
<a name="l00095"></a><a class="code" href="a00186.html#ac8337d3ad8f61f28d7146d56f9a48e0">00095</a> <span class="keyword">typedef</span> <a class="code" href="a00046.html">dirac_rational_t</a> <a class="code" href="a00046.html">dirac_pix_asr_t</a>;
<a name="l00096"></a>00096 
<a name="l00098"></a><a class="code" href="a00044.html">00098</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00099"></a>00099 {
<a name="l00101"></a><a class="code" href="a00044.html#b772830c44195ba55711e84ffd1121b9">00101</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> major_ver;
<a name="l00103"></a><a class="code" href="a00044.html#e76b32a91368f1bece47d4764a336077">00103</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> minor_ver;
<a name="l00105"></a><a class="code" href="a00044.html#94b5c1f5a2493fa3d9ebda62cd95422d">00105</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> profile;
<a name="l00107"></a><a class="code" href="a00044.html#a07425c781c29593cffd195312d898f3">00107</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> level;
<a name="l00108"></a>00108 } <a class="code" href="a00044.html">dirac_parseparams_t</a>;
<a name="l00109"></a>00109 
<a name="l00110"></a><a class="code" href="a00030.html">00110</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00111"></a>00111 {
<a name="l00112"></a><a class="code" href="a00030.html#5331c127736613565e562629cbcd8c7e">00112</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width;
<a name="l00113"></a><a class="code" href="a00030.html#12b61d347431ab7745227408d7257d0f">00113</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> height;
<a name="l00114"></a><a class="code" href="a00030.html#d8dd479bb7109b8f1399e1c03f0ed528">00114</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> left_offset;
<a name="l00115"></a><a class="code" href="a00030.html#7becb8641bf56052e96779d1b279ab11">00115</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> top_offset;
<a name="l00116"></a>00116 } <a class="code" href="a00030.html">dirac_clean_area_t</a>;
<a name="l00117"></a>00117 
<a name="l00118"></a><a class="code" href="a00047.html">00118</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00119"></a>00119 {
<a name="l00120"></a><a class="code" href="a00047.html#fd59b984ea2d2a834fab3558936ed6b1">00120</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> luma_offset;
<a name="l00121"></a><a class="code" href="a00047.html#e5d7aba466d10d3d2f7b703ad5fe18c8">00121</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> luma_excursion;
<a name="l00122"></a><a class="code" href="a00047.html#4c07232a9092ab595920ad9a51587cf6">00122</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> chroma_offset;
<a name="l00123"></a><a class="code" href="a00047.html#7a434aad9a99a7f9bc7b3a0ec389ff4f">00123</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> chroma_excursion;
<a name="l00124"></a>00124 } <a class="code" href="a00047.html">dirac_signal_range_t</a>;
<a name="l00125"></a>00125 
<a name="l00126"></a><a class="code" href="a00031.html">00126</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00127"></a>00127 {
<a name="l00128"></a><a class="code" href="a00031.html#0d0f3d93c30d4fa35769bcf13dac1481">00128</a>     <span class="keywordtype">float</span> kr;
<a name="l00129"></a><a class="code" href="a00031.html#459784e9a21143efb253587af8c36842">00129</a>     <span class="keywordtype">float</span> kb;
<a name="l00130"></a>00130 } <a class="code" href="a00031.html">dirac_col_matrix_t</a>;
<a name="l00131"></a>00131 
<a name="l00132"></a><a class="code" href="a00186.html#5d206d440fb70a7abd50f0da5a945bd9">00132</a> <span class="keyword">typedef</span> <a class="code" href="a00172.html#b38dc5997b8fc7f0f94d4d85a8d3f5a2">ColourPrimaries</a> <a class="code" href="a00172.html#b38dc5997b8fc7f0f94d4d85a8d3f5a2">dirac_col_primaries_t</a>;
<a name="l00133"></a><a class="code" href="a00186.html#dda640bfc300a7fb3ee128db5c1c60ee">00133</a> <span class="keyword">typedef</span> <a class="code" href="a00172.html#1b236414b6580bfadb3be8585123f2db">TransferFunction</a> <a class="code" href="a00172.html#1b236414b6580bfadb3be8585123f2db">dirac_transfer_func_t</a>;
<a name="l00134"></a>00134 
<a name="l00135"></a><a class="code" href="a00032.html">00135</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00136"></a>00136 {
<a name="l00137"></a><a class="code" href="a00032.html#a20ac3a0a4667471f03c35756b589a8d">00137</a>     dirac_col_primaries_t col_primary;
<a name="l00138"></a><a class="code" href="a00032.html#3b10fc6c2c8f43854c8401f32a85fb30">00138</a>     <a class="code" href="a00031.html">dirac_col_matrix_t</a> col_matrix;
<a name="l00139"></a><a class="code" href="a00032.html#730d1180ff049fd76059fb3e7847756e">00139</a>     dirac_transfer_func_t trans_func;
<a name="l00140"></a>00140 } <a class="code" href="a00032.html">dirac_colour_spec_t</a>;
<a name="l00141"></a>00141 
<a name="l00143"></a><a class="code" href="a00048.html">00143</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00144"></a>00144 {
<a name="l00146"></a><a class="code" href="a00048.html#0247d6a7590de5f4c9eb5e37dae80189">00146</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width;
<a name="l00148"></a><a class="code" href="a00048.html#a421cd6a57465ca8e176a7e352b73ca8">00148</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> height;
<a name="l00150"></a><a class="code" href="a00048.html#19be78896dc96a57d2b8ef7790fbdf76">00150</a>     dirac_chroma_t chroma;
<a name="l00152"></a><a class="code" href="a00048.html#e74a7946b7a39719117dec293a996f68">00152</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> chroma_width;
<a name="l00154"></a><a class="code" href="a00048.html#7b49bcf0338caa8becf7cb7abb202b25">00154</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> chroma_height;
<a name="l00156"></a><a class="code" href="a00048.html#09b25aa7b32f3a970bab76f860097e91">00156</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> source_sampling;
<a name="l00158"></a><a class="code" href="a00048.html#12844d0e50bcee81e665b5dde85cbcad">00158</a>     <span class="keywordtype">int</span> topfieldfirst;
<a name="l00160"></a><a class="code" href="a00048.html#b2878205aad0e8356890b0f3f0bb8904">00160</a>     dirac_frame_rate_t frame_rate;
<a name="l00162"></a><a class="code" href="a00048.html#d53697c833095703cbdcc2ae1ec33864">00162</a>     dirac_pix_asr_t pix_asr;
<a name="l00163"></a>00163     <span class="comment">/* clean area*/</span>
<a name="l00164"></a><a class="code" href="a00048.html#6530b3f04c964a6ab21ae9938e8fd8c6">00164</a>     <a class="code" href="a00030.html">dirac_clean_area_t</a> clean_area;
<a name="l00165"></a>00165     <span class="comment">/* signal range*/</span>
<a name="l00166"></a><a class="code" href="a00048.html#ae63a9195e8051544f72a88e6e0c1553">00166</a>     <a class="code" href="a00047.html">dirac_signal_range_t</a> signal_range;
<a name="l00167"></a>00167     <span class="comment">/* colour specification*/</span>
<a name="l00168"></a><a class="code" href="a00048.html#8a10e77a1288e042de4185c877173830">00168</a>     <a class="code" href="a00032.html">dirac_colour_spec_t</a> colour_spec;
<a name="l00169"></a>00169 
<a name="l00170"></a>00170 } <a class="code" href="a00048.html">dirac_sourceparams_t</a>;
<a name="l00171"></a>00171 
<a name="l00173"></a><a class="code" href="a00045.html">00173</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00174"></a>00174 {
<a name="l00176"></a><a class="code" href="a00045.html#8938d0f1cdcef4dae781f3887417f312">00176</a>     dirac_picture_type_t ptype;
<a name="l00178"></a><a class="code" href="a00045.html#8fc123609ad14031d13edd34e5952f59">00178</a>     dirac_reference_type_t rtype;
<a name="l00180"></a><a class="code" href="a00045.html#fe4d2db7318798d8f2627444779510f7">00180</a>     <span class="keywordtype">int</span> pnum;
<a name="l00181"></a>00181 } <a class="code" href="a00045.html">dirac_picparams_t</a>;
<a name="l00182"></a>00182 
<a name="l00183"></a>00183 
<a name="l00186"></a><a class="code" href="a00040.html">00186</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00187"></a>00187 {
<a name="l00189"></a><a class="code" href="a00040.html#4d66fc13d82cabd2a1fe6e4ebcaefe2e">00189</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>  *buf[3];
<a name="l00191"></a><a class="code" href="a00040.html#1f322d25bac245fb37c6577083b570bd">00191</a>     <span class="keywordtype">void</span>  *id;
<a name="l00192"></a>00192 } <a class="code" href="a00040.html">dirac_framebuf_t</a>;
<a name="l00193"></a>00193 
<a name="l00194"></a>00194 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00195"></a>00195 <span class="preprocessor"></span>}
<a name="l00196"></a>00196 <span class="preprocessor">#endif</span>
<a name="l00197"></a>00197 <span class="preprocessor"></span>
<a name="l00198"></a>00198 <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>