openjpeg/doxygen/jp2k__decoder_8c.html

278 lines
16 KiB
HTML
Raw Permalink Normal View History

2022-05-13 20:21:13 +02:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2015-07-10 18:06:19 +02:00
<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"/>
2022-05-13 20:21:13 +02:00
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
2015-07-10 18:06:19 +02:00
<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;">
2016-09-29 22:38:29 +02:00
<td id="projectalign" style="padding-left: 0.5em;">
2015-07-10 18:06:19 +02:00
<div id="projectname">OpenJPEG
2022-05-13 20:21:13 +02:00
&#160;<span id="projectnumber">2.5.0</span>
2015-07-10 18:06:19 +02:00
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
2022-05-13 20:21:13 +02:00
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
2015-07-10 18:06:19 +02:00
<div id="nav-path" class="navpath">
<ul>
2020-12-28 22:12:25 +01:00
<li class="navelem"><a class="el" href="dir_43e0a1f539e00dcfa1a6bc4d4fee4fc2.html">home</a></li><li class="navelem"><a class="el" href="dir_cb9b2b419d92b64f7cee83d8faf7a4ab.html">even</a></li><li class="navelem"><a class="el" href="dir_f75d9a0165d6564a1e04793ef847d41d.html">openjpeg</a></li><li class="navelem"><a class="el" href="dir_5f588d7ea139c1aae751d03c13a16064.html">openjpeg</a></li><li class="navelem"><a class="el" href="dir_378f732e812ef6cbaaae22e96a4fa79f.html">src</a></li><li class="navelem"><a class="el" href="dir_19dcb5713315405a27e1bde75a489a4c.html">lib</a></li><li class="navelem"><a class="el" href="dir_54d80c9412497e935deb5677b5fae801.html">openjpip</a></li> </ul>
2015-07-10 18:06:19 +02:00
</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>
2022-05-13 20:21:13 +02:00
<tr class="memdesc:ac13f43a496730fa9f5e1c7027d12cf5c"><td class="mdescLeft">&#160;</td><td class="mdescRight">sample error callback expecting a FILE* client object <a href="jp2k__decoder_8c.html#ac13f43a496730fa9f5e1c7027d12cf5c">More...</a><br /></td></tr>
2015-07-10 18:06:19 +02:00
<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>
2022-05-13 20:21:13 +02:00
<tr class="memdesc:a7155c221d3437696eb0ee9d3fe47f72a"><td class="mdescLeft">&#160;</td><td class="mdescRight">sample warning callback expecting a FILE* client object <a href="jp2k__decoder_8c.html#a7155c221d3437696eb0ee9d3fe47f72a">More...</a><br /></td></tr>
2015-07-10 18:06:19 +02:00
<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>
2022-05-13 20:21:13 +02:00
<tr class="memdesc:af5fad34d4ded181954f44540e94c2c9b"><td class="mdescLeft">&#160;</td><td class="mdescRight">sample debug callback expecting no client object <a href="jp2k__decoder_8c.html#af5fad34d4ded181954f44540e94c2c9b">More...</a><br /></td></tr>
2015-07-10 18:06:19 +02:00
<tr class="separator:af5fad34d4ded181954f44540e94c2c9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
2022-05-13 20:21:13 +02:00
<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#a938748004a587b25d8a5b8d3b344bad4">opj_image_t</a> *image, <a class="el" href="ihdrbox__manager_8h.html#a993b5e8201d41904d9307722b70eb079">ihdrbox_param_t</a> **ihdrbox)</td></tr>
2015-07-10 18:06:19 +02:00
<tr class="separator:a1f99d031f0df16b1d45b0ea488bacc19"><td class="memSeparator" colspan="2">&#160;</td></tr>
2022-05-13 20:21:13 +02:00
<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#a993b5e8201d41904d9307722b70eb079">ihdrbox_param_t</a> **ihdrbox)</td></tr>
2015-07-10 18:06:19 +02:00
<tr class="separator:a261799e8487d1b77fc04948abe701e5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
2022-05-13 20:21:13 +02:00
<a id="ac13f43a496730fa9f5e1c7027d12cf5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac13f43a496730fa9f5e1c7027d12cf5c">&#9670;&nbsp;</a></span>error_callback()</h2>
2015-07-10 18:06:19 +02:00
<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>
2022-05-13 20:21:13 +02:00
<p class="reference">Referenced by <a class="el" href="jp2k__decoder_8h.html#a261799e8487d1b77fc04948abe701e5f">j2k_to_pnm()</a>.</p>
2015-07-10 18:06:19 +02:00
</div>
</div>
2022-05-13 20:21:13 +02:00
<a id="a1f99d031f0df16b1d45b0ea488bacc19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f99d031f0df16b1d45b0ea488bacc19">&#9670;&nbsp;</a></span>imagetopnm()</h2>
2015-07-10 18:06:19 +02:00
<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>
2022-05-13 20:21:13 +02:00
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a938748004a587b25d8a5b8d3b344bad4">opj_image_t</a> *&#160;</td>
2015-07-10 18:06:19 +02:00
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
2022-05-13 20:21:13 +02:00
<td class="paramtype"><a class="el" href="ihdrbox__manager_8h.html#a993b5e8201d41904d9307722b70eb079">ihdrbox_param_t</a> **&#160;</td>
2015-07-10 18:06:19 +02:00
<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">
2022-05-13 20:21:13 +02:00
<p class="reference">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>
2015-07-10 18:06:19 +02:00
2022-05-13 20:21:13 +02:00
<p class="reference">Referenced by <a class="el" href="jp2k__decoder_8h.html#a261799e8487d1b77fc04948abe701e5f">j2k_to_pnm()</a>.</p>
2015-07-10 18:06:19 +02:00
</div>
</div>
2022-05-13 20:21:13 +02:00
<a id="af5fad34d4ded181954f44540e94c2c9b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af5fad34d4ded181954f44540e94c2c9b">&#9670;&nbsp;</a></span>info_callback()</h2>
2015-07-10 18:06:19 +02:00
<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>
2022-05-13 20:21:13 +02:00
<p class="reference">Referenced by <a class="el" href="jp2k__decoder_8h.html#a261799e8487d1b77fc04948abe701e5f">j2k_to_pnm()</a>.</p>
2015-07-10 18:06:19 +02:00
</div>
</div>
2022-05-13 20:21:13 +02:00
<a id="a261799e8487d1b77fc04948abe701e5f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a261799e8487d1b77fc04948abe701e5f">&#9670;&nbsp;</a></span>j2k_to_pnm()</h2>
2015-07-10 18:06:19 +02:00
<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>
2022-05-13 20:21:13 +02:00
<td class="paramtype"><a class="el" href="ihdrbox__manager_8h.html#a993b5e8201d41904d9307722b70eb079">ihdrbox_param_t</a> **&#160;</td>
2015-07-10 18:06:19 +02:00
<td class="paramname"><em>ihdrbox</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
2022-05-13 20:21:13 +02:00
<p class="reference">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>
2015-07-10 18:06:19 +02:00
2022-05-13 20:21:13 +02:00
<p class="reference">Referenced by <a class="el" href="jpipstream__manager_8h.html#a6a3ef3a0ef8ec42a1f90dd6f2776ec37">jpipstream_to_pnm()</a>.</p>
2015-07-10 18:06:19 +02:00
</div>
</div>
2022-05-13 20:21:13 +02:00
<a id="a7155c221d3437696eb0ee9d3fe47f72a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7155c221d3437696eb0ee9d3fe47f72a">&#9670;&nbsp;</a></span>warning_callback()</h2>
2015-07-10 18:06:19 +02:00
<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>
2022-05-13 20:21:13 +02:00
<p class="reference">Referenced by <a class="el" href="jp2k__decoder_8h.html#a261799e8487d1b77fc04948abe701e5f">j2k_to_pnm()</a>.</p>
2015-07-10 18:06:19 +02:00
</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"/>
2022-05-13 20:21:13 +02:00
</a> 1.8.17
2015-07-10 18:06:19 +02:00
</small></address>
</body>
</html>