openjpeg/doxygen/jp2k__decoder_8c.html

273 lines
16 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>OpenJPEG: jp2k_decoder.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">OpenJPEG
&#160;<span id="projectnumber">2.3.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d522931ffa1371640980b621734a4381.html">Users</a></li><li class="navelem"><a class="el" href="dir_694e20c96f4fc1be4aed4f026eadce94.html">antonin</a></li><li class="navelem"><a class="el" href="dir_3ca1ad36e65e03f9e8d67ddc2553765b.html">dev</a></li><li class="navelem"><a class="el" href="dir_181a881edfcb8646dab693a228fa6bde.html">opj</a></li><li class="navelem"><a class="el" href="dir_5064bb5511811c3176850b7e47443f14.html">github</a></li><li class="navelem"><a class="el" href="dir_0b20524d8f8835ca75acc430451c8412.html">openjpeg</a></li><li class="navelem"><a class="el" href="dir_e3f8a8e294f8271ee71cbcf3c2acacc1.html">src</a></li><li class="navelem"><a class="el" href="dir_da83fe5fdfb6c4554d36abffc03790ad.html">lib</a></li><li class="navelem"><a class="el" href="dir_6ec2d9a1b37a1187cc46aeaf3b19e1b3.html">openjpip</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">jp2k_decoder.c File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
<code>#include &lt;stdlib.h&gt;</code><br />
<code>#include &lt;assert.h&gt;</code><br />
<code>#include &lt;limits.h&gt;</code><br />
<code>#include &quot;<a class="el" href="jp2k__decoder_8h_source.html">jp2k_decoder.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="openjpeg_8h_source.html">openjpeg.h</a>&quot;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ac13f43a496730fa9f5e1c7027d12cf5c"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jp2k__decoder_8c.html#ac13f43a496730fa9f5e1c7027d12cf5c">error_callback</a> (const char *msg, void *client_data)</td></tr>
<tr class="memdesc:ac13f43a496730fa9f5e1c7027d12cf5c"><td class="mdescLeft">&#160;</td><td class="mdescRight">sample error callback expecting a FILE* client object <a href="#ac13f43a496730fa9f5e1c7027d12cf5c">More...</a><br /></td></tr>
<tr class="separator:ac13f43a496730fa9f5e1c7027d12cf5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7155c221d3437696eb0ee9d3fe47f72a"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jp2k__decoder_8c.html#a7155c221d3437696eb0ee9d3fe47f72a">warning_callback</a> (const char *msg, void *client_data)</td></tr>
<tr class="memdesc:a7155c221d3437696eb0ee9d3fe47f72a"><td class="mdescLeft">&#160;</td><td class="mdescRight">sample warning callback expecting a FILE* client object <a href="#a7155c221d3437696eb0ee9d3fe47f72a">More...</a><br /></td></tr>
<tr class="separator:a7155c221d3437696eb0ee9d3fe47f72a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5fad34d4ded181954f44540e94c2c9b"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jp2k__decoder_8c.html#af5fad34d4ded181954f44540e94c2c9b">info_callback</a> (const char *msg, void *client_data)</td></tr>
<tr class="memdesc:af5fad34d4ded181954f44540e94c2c9b"><td class="mdescLeft">&#160;</td><td class="mdescRight">sample debug callback expecting no client object <a href="#af5fad34d4ded181954f44540e94c2c9b">More...</a><br /></td></tr>
<tr class="separator:af5fad34d4ded181954f44540e94c2c9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f99d031f0df16b1d45b0ea488bacc19"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jp2k__decoder_8c.html#a1f99d031f0df16b1d45b0ea488bacc19">imagetopnm</a> (<a class="el" href="openjpeg_8h.html#a5c557180c59d54a2f1d29e8639687aa4">opj_image_t</a> *image, <a class="el" href="ihdrbox__manager_8h.html#ae88b004f80ae7e57d50cdbee20e25199">ihdrbox_param_t</a> **ihdrbox)</td></tr>
<tr class="separator:a1f99d031f0df16b1d45b0ea488bacc19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a261799e8487d1b77fc04948abe701e5f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jp2k__decoder_8c.html#a261799e8487d1b77fc04948abe701e5f">j2k_to_pnm</a> (const char *fn, <a class="el" href="ihdrbox__manager_8h.html#ae88b004f80ae7e57d50cdbee20e25199">ihdrbox_param_t</a> **ihdrbox)</td></tr>
<tr class="separator:a261799e8487d1b77fc04948abe701e5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ac13f43a496730fa9f5e1c7027d12cf5c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void error_callback </td>
<td>(</td>
<td class="paramtype">const char *&#160;</td>
<td class="paramname"><em>msg</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void *&#160;</td>
<td class="paramname"><em>client_data</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>sample error callback expecting a FILE* client object </p>
<p>Referenced by <a class="el" href="jp2k__decoder_8h.html#a261799e8487d1b77fc04948abe701e5f">j2k_to_pnm()</a>.</p>
</div>
</div>
<a class="anchor" id="a1f99d031f0df16b1d45b0ea488bacc19"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a> * imagetopnm </td>
<td>(</td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a5c557180c59d54a2f1d29e8639687aa4">opj_image_t</a> *&#160;</td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="ihdrbox__manager_8h.html#ae88b004f80ae7e57d50cdbee20e25199">ihdrbox_param_t</a> **&#160;</td>
<td class="paramname"><em>ihdrbox</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>References <a class="el" href="structopj__image.html#a6b52b100c934697a29446af5c3e0fa00">opj_image::comps</a>, <a class="el" href="structopj__image__comp.html#ad676bf364b0c8fc889e97cc684ce95d0">opj_image_comp::data</a>, <a class="el" href="structopj__image__comp.html#a11ecb361a0c49b482c90573a868cc8dc">opj_image_comp::h</a>, <a class="el" href="structopj__image.html#ac63093741ed0c70b9c0a8ee3070cbce6">opj_image::numcomps</a>, <a class="el" href="structopj__image__comp.html#ab7210ddbf12e6d9998d24034a579cea1">opj_image_comp::prec</a>, <a class="el" href="structopj__image__comp.html#a2d2337d15fd837252fe250386bac7fb9">opj_image_comp::sgnd</a>, <a class="el" href="structopj__image__comp.html#a59225121158d5bc911838e5b05779cdb">opj_image_comp::w</a>, and <a class="el" href="structihdrbox__param.html#ad3760ecc26048cde5501e8eb646539fd">ihdrbox_param::width</a>.</p>
<p>Referenced by <a class="el" href="jp2k__decoder_8h.html#a261799e8487d1b77fc04948abe701e5f">j2k_to_pnm()</a>.</p>
</div>
</div>
<a class="anchor" id="af5fad34d4ded181954f44540e94c2c9b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void info_callback </td>
<td>(</td>
<td class="paramtype">const char *&#160;</td>
<td class="paramname"><em>msg</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void *&#160;</td>
<td class="paramname"><em>client_data</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>sample debug callback expecting no client object </p>
<p>Referenced by <a class="el" href="jp2k__decoder_8h.html#a261799e8487d1b77fc04948abe701e5f">j2k_to_pnm()</a>.</p>
</div>
</div>
<a class="anchor" id="a261799e8487d1b77fc04948abe701e5f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="byte__manager_8h.html#ade896f5d51f03e046a004d006b53a8b0">Byte_t</a>* j2k_to_pnm </td>
<td>(</td>
<td class="paramtype">const char *&#160;</td>
<td class="paramname"><em>fn</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="ihdrbox__manager_8h.html#ae88b004f80ae7e57d50cdbee20e25199">ihdrbox_param_t</a> **&#160;</td>
<td class="paramname"><em>ihdrbox</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>References <a class="el" href="structopj__dparameters.html#a440bb7c355913b2dade15a4b811f3f23">opj_dparameters::DA_x0</a>, <a class="el" href="structopj__dparameters.html#a98e9ceaf5c68dcc39019ec707961e24d">opj_dparameters::DA_x1</a>, <a class="el" href="structopj__dparameters.html#a3349a1210e55ae91e8eb9446fb6f979f">opj_dparameters::DA_y0</a>, <a class="el" href="structopj__dparameters.html#a52c99d552c89a73a85710fb313de6995">opj_dparameters::DA_y1</a>, <a class="el" href="jp2k__decoder_8c.html#ac13f43a496730fa9f5e1c7027d12cf5c">error_callback()</a>, <a class="el" href="jp2k__decoder_8c.html#a1f99d031f0df16b1d45b0ea488bacc19">imagetopnm()</a>, <a class="el" href="jp2k__decoder_8c.html#af5fad34d4ded181954f44540e94c2c9b">info_callback()</a>, <a class="el" href="openjpeg_8h.html#a1d857738cef754699ffb79ddff48efbfa8600e6e00112f983e5bb7d4daad836ab">OPJ_CODEC_J2K</a>, <a class="el" href="openjpeg_8c.html#ab9b3cca67f964a3099a64729744084c8">opj_create_decompress()</a>, <a class="el" href="openjpeg_8c.html#af5b94be0890f895a5527eb3ca9abe2f1">opj_decode()</a>, <a class="el" href="openjpeg_8c.html#ab801406c7e356d798777e0052943e348">opj_destroy_codec()</a>, <a class="el" href="openjpeg_8c.html#a2a9a4836a18cc832d8683508235c900d">opj_end_decompress()</a>, <a class="el" href="image_8c.html#a193f6a609b0a3c4aa4912be9c987cd14">opj_image_destroy()</a>, <a class="el" href="openjpeg_8c.html#aad24422789c9a57e5a62cae7892db4be">opj_read_header()</a>, <a class="el" href="openjpeg_8c.html#aea476bddc65f8bf5b5b2bbbe41af7389">opj_set_decode_area()</a>, <a class="el" href="openjpeg_8c.html#a4404982cd554e2251772043ea12e5164">opj_set_default_decoder_parameters()</a>, <a class="el" href="openjpeg_8c.html#a0b847b8776315c6f654a6ad7c2d8af67">opj_set_error_handler()</a>, <a class="el" href="openjpeg_8c.html#a6b7606d660444e8f414aa6e2c148fa44">opj_set_info_handler()</a>, <a class="el" href="openjpeg_8c.html#ab460c38323da1140f66763aa419c404b">opj_set_warning_handler()</a>, <a class="el" href="openjpeg_8c.html#ad8473386b576be935efe653b9773ba06">opj_setup_decoder()</a>, <a class="el" href="openjpeg_8c.html#acb36a77efa64f8332c27fc4ea6be066c">opj_stream_create_default_file_stream()</a>, <a class="el" href="cio_8c.html#ac0686c0048dfa2d2fcffaf649891ea58">opj_stream_destroy()</a>, <a class="el" href="openjpeg_8h.html#a04830036d767cba56cbf5ae5bdc481d3">OPJ_TRUE</a>, and <a class="el" href="jp2k__decoder_8c.html#a7155c221d3437696eb0ee9d3fe47f72a">warning_callback()</a>.</p>
<p>Referenced by <a class="el" href="jpipstream__manager_8h.html#a6a3ef3a0ef8ec42a1f90dd6f2776ec37">jpipstream_to_pnm()</a>.</p>
</div>
</div>
<a class="anchor" id="a7155c221d3437696eb0ee9d3fe47f72a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void warning_callback </td>
<td>(</td>
<td class="paramtype">const char *&#160;</td>
<td class="paramname"><em>msg</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void *&#160;</td>
<td class="paramname"><em>client_data</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>sample warning callback expecting a FILE* client object </p>
<p>Referenced by <a class="el" href="jp2k__decoder_8h.html#a261799e8487d1b77fc04948abe701e5f">j2k_to_pnm()</a>.</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.10
</small></address>
</body>
</html>