316 lines
28 KiB
HTML
316 lines
28 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.17"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>OpenJPEG: image.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
|
|
 <span id="projectnumber">2.5.0</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- 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&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',false,false,'search.php','Search');
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<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_54e5bc4f0640fea590afaf04f4d9c88d.html">openjp2</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">image.c File Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="textblock"><code>#include "<a class="el" href="opj__includes_8h_source.html">opj_includes.h</a>"</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:a83035109ca4e81f9d90451adf6d975b4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="openjpeg_8h.html#a938748004a587b25d8a5b8d3b344bad4">opj_image_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="image_8c.html#a83035109ca4e81f9d90451adf6d975b4">opj_image_create0</a> (void)</td></tr>
|
|
<tr class="memdesc:a83035109ca4e81f9d90451adf6d975b4"><td class="mdescLeft"> </td><td class="mdescRight">Create an empty image. <a href="image_8c.html#a83035109ca4e81f9d90451adf6d975b4">More...</a><br /></td></tr>
|
|
<tr class="separator:a83035109ca4e81f9d90451adf6d975b4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a439566326ad0df2db2c9aef54098335e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="openjpeg_8h.html#a938748004a587b25d8a5b8d3b344bad4">opj_image_t</a> *<a class="el" href="openjpeg_8h.html#aedc1e23ea6654d0cc416bc390687458b">OPJ_CALLCONV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="image_8c.html#a439566326ad0df2db2c9aef54098335e">opj_image_create</a> (<a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> numcmpts, <a class="el" href="openjpeg_8h.html#a2ac339d626a541cf19ed9ac9658c4aeb">opj_image_cmptparm_t</a> *cmptparms, <a class="el" href="openjpeg_8h.html#ae080fd52e7454b8f1b3f081b284edfe0">OPJ_COLOR_SPACE</a> clrspc)</td></tr>
|
|
<tr class="memdesc:a439566326ad0df2db2c9aef54098335e"><td class="mdescLeft"> </td><td class="mdescRight">Create an image. <a href="image_8c.html#a439566326ad0df2db2c9aef54098335e">More...</a><br /></td></tr>
|
|
<tr class="separator:a439566326ad0df2db2c9aef54098335e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a193f6a609b0a3c4aa4912be9c987cd14"><td class="memItemLeft" align="right" valign="top">void <a class="el" href="openjpeg_8h.html#aedc1e23ea6654d0cc416bc390687458b">OPJ_CALLCONV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="image_8c.html#a193f6a609b0a3c4aa4912be9c987cd14">opj_image_destroy</a> (<a class="el" href="openjpeg_8h.html#a938748004a587b25d8a5b8d3b344bad4">opj_image_t</a> *image)</td></tr>
|
|
<tr class="memdesc:a193f6a609b0a3c4aa4912be9c987cd14"><td class="mdescLeft"> </td><td class="mdescRight">Deallocate any resources associated with an image. <a href="image_8c.html#a193f6a609b0a3c4aa4912be9c987cd14">More...</a><br /></td></tr>
|
|
<tr class="separator:a193f6a609b0a3c4aa4912be9c987cd14"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1bc9d7637d7cde5b28755c8696638303"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="image_8c.html#a1bc9d7637d7cde5b28755c8696638303">opj_image_comp_header_update</a> (<a class="el" href="openjpeg_8h.html#a938748004a587b25d8a5b8d3b344bad4">opj_image_t</a> *p_image_header, const struct <a class="el" href="structopj__cp.html">opj_cp</a> *p_cp)</td></tr>
|
|
<tr class="memdesc:a1bc9d7637d7cde5b28755c8696638303"><td class="mdescLeft"> </td><td class="mdescRight">Updates the components characteristics of the image from the coding parameters. <a href="image_8c.html#a1bc9d7637d7cde5b28755c8696638303">More...</a><br /></td></tr>
|
|
<tr class="separator:a1bc9d7637d7cde5b28755c8696638303"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3802de36855e5331f4d6c04bc1b732a3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="image_8c.html#a3802de36855e5331f4d6c04bc1b732a3">opj_copy_image_header</a> (const <a class="el" href="openjpeg_8h.html#a938748004a587b25d8a5b8d3b344bad4">opj_image_t</a> *p_image_src, <a class="el" href="openjpeg_8h.html#a938748004a587b25d8a5b8d3b344bad4">opj_image_t</a> *p_image_dest)</td></tr>
|
|
<tr class="memdesc:a3802de36855e5331f4d6c04bc1b732a3"><td class="mdescLeft"> </td><td class="mdescRight">Copy only header of image and its component header (no data are copied) if dest image have data, they will be freed. <a href="image_8c.html#a3802de36855e5331f4d6c04bc1b732a3">More...</a><br /></td></tr>
|
|
<tr class="separator:a3802de36855e5331f4d6c04bc1b732a3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aac70fc16e896c56053c1385b2d3e8e47"><td class="memItemLeft" align="right" valign="top"><a class="el" href="openjpeg_8h.html#a938748004a587b25d8a5b8d3b344bad4">opj_image_t</a> *<a class="el" href="openjpeg_8h.html#aedc1e23ea6654d0cc416bc390687458b">OPJ_CALLCONV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="image_8c.html#aac70fc16e896c56053c1385b2d3e8e47">opj_image_tile_create</a> (<a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> numcmpts, <a class="el" href="openjpeg_8h.html#a2ac339d626a541cf19ed9ac9658c4aeb">opj_image_cmptparm_t</a> *cmptparms, <a class="el" href="openjpeg_8h.html#ae080fd52e7454b8f1b3f081b284edfe0">OPJ_COLOR_SPACE</a> clrspc)</td></tr>
|
|
<tr class="memdesc:aac70fc16e896c56053c1385b2d3e8e47"><td class="mdescLeft"> </td><td class="mdescRight">Creates an image without allocating memory for the image (used in the new version of the library). <a href="image_8c.html#aac70fc16e896c56053c1385b2d3e8e47">More...</a><br /></td></tr>
|
|
<tr class="separator:aac70fc16e896c56053c1385b2d3e8e47"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<h2 class="groupheader">Function Documentation</h2>
|
|
<a id="a3802de36855e5331f4d6c04bc1b732a3"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a3802de36855e5331f4d6c04bc1b732a3">◆ </a></span>opj_copy_image_header()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void opj_copy_image_header </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="openjpeg_8h.html#a938748004a587b25d8a5b8d3b344bad4">opj_image_t</a> * </td>
|
|
<td class="paramname"><em>p_image_src</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a938748004a587b25d8a5b8d3b344bad4">opj_image_t</a> * </td>
|
|
<td class="paramname"><em>p_image_dest</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Copy only header of image and its component header (no data are copied) if dest image have data, they will be freed. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">p_image_src</td><td>the src image </td></tr>
|
|
<tr><td class="paramname">p_image_dest</td><td>the dest image </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="reference">References <a class="el" href="structopj__image.html#a0a905c725270c4a7085fbe1edea994c2">opj_image::color_space</a>, <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.html#a1b62a25bd7603c6747aa3edd036401c1">opj_image::icc_profile_buf</a>, <a class="el" href="structopj__image.html#a0412d0a6696e7b6ace224c5111cf6be2">opj_image::icc_profile_len</a>, <a class="el" href="structopj__image.html#ac63093741ed0c70b9c0a8ee3070cbce6">opj_image::numcomps</a>, <a class="el" href="opj__malloc_8c.html#a9d7d909f8dc1a2c23313c48645341e81">opj_free()</a>, <a class="el" href="openjpeg_8c.html#a53a2908ba063e90755b9449001194f88">opj_image_data_free()</a>, <a class="el" href="opj__malloc_8c.html#a49c70931cbed786f6eef5f095bcb2917">opj_malloc()</a>, <a class="el" href="structopj__image.html#a0d01041cfbba0d40ab38836a35544e09">opj_image::x0</a>, <a class="el" href="structopj__image.html#a7a27deb6bf174dd57ee473d1d514f8ef">opj_image::x1</a>, <a class="el" href="structopj__image.html#a9813bacf1939346629c07262c61c8e74">opj_image::y0</a>, and <a class="el" href="structopj__image.html#a80fd916819080f959a601b0089c4c69a">opj_image::y1</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="j2k_8h.html#a09f2c6c83d8066e1db9ab66fed58d9c8">opj_j2k_decode()</a>, <a class="el" href="j2k_8h.html#a60371d3609364bf033e8c244599abf6f">opj_j2k_get_tile()</a>, <a class="el" href="j2k_8h.html#a34c49b256edcdbf036492dfa635284d7">opj_j2k_read_header()</a>, and <a class="el" href="j2k_8h.html#accea6429e4f466250b095ee3fb94805c">opj_j2k_start_compress()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a1bc9d7637d7cde5b28755c8696638303"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a1bc9d7637d7cde5b28755c8696638303">◆ </a></span>opj_image_comp_header_update()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void opj_image_comp_header_update </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a938748004a587b25d8a5b8d3b344bad4">opj_image_t</a> * </td>
|
|
<td class="paramname"><em>p_image_header</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const struct <a class="el" href="structopj__cp.html">opj_cp</a> * </td>
|
|
<td class="paramname"><em>p_cp</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Updates the components characteristics of the image from the coding parameters. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">p_image_header</td><td>the image header to update. </td></tr>
|
|
<tr><td class="paramname">p_cp</td><td>the coding parameters from which to update the image. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="reference">References <a class="el" href="structopj__image.html#a6b52b100c934697a29446af5c3e0fa00">opj_image::comps</a>, <a class="el" href="structopj__image__comp.html#a0805d2f69bb770ff022c164aeda22685">opj_image_comp::dx</a>, <a class="el" href="structopj__image__comp.html#af9d6fd62a2b8bdd9fd162ce403eb0f10">opj_image_comp::dy</a>, <a class="el" href="structopj__image__comp.html#ab0353b06d4f8e707fc0fb85237537e82">opj_image_comp::factor</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="opj__intmath_8h.html#ab9aad885f5c9bc9e39420003b2b32fe5">opj_uint_adds()</a>, <a class="el" href="opj__intmath_8h.html#ae4b2e5a7c8b8f09faacc4a895f866ea1">opj_uint_ceildiv()</a>, <a class="el" href="opj__intmath_8h.html#ae592eb75f221decddec51834b6c4177d">opj_uint_ceildivpow2()</a>, <a class="el" href="opj__intmath_8h.html#a2c3eb35fddab83fef25256485b926fc0">opj_uint_max()</a>, <a class="el" href="opj__intmath_8h.html#a06c1c4470f9765a3ed04963b0daa111a">opj_uint_min()</a>, <a class="el" href="structopj__cp.html#aae555943d0b5aeb0c6b9a5d1e25f448b">opj_cp::tdx</a>, <a class="el" href="structopj__cp.html#a0fd9a036bf63787fe10a26f9d51a9da2">opj_cp::tdy</a>, <a class="el" href="structopj__cp.html#a30a7cf50ba11fe5524888d3b38bd4a09">opj_cp::th</a>, <a class="el" href="structopj__cp.html#abacc172096044123cfa0a7b027cd457f">opj_cp::tw</a>, <a class="el" href="structopj__cp.html#aeed9ee798ec24aaa27baa3088b3b3f14">opj_cp::tx0</a>, <a class="el" href="structopj__cp.html#a59415df77f13078e76678123415f403e">opj_cp::ty0</a>, <a class="el" href="structopj__image__comp.html#a59225121158d5bc911838e5b05779cdb">opj_image_comp::w</a>, <a class="el" href="structopj__image__comp.html#a1f897a8932374ca64cd4d7a256008ea3">opj_image_comp::x0</a>, <a class="el" href="structopj__image.html#a0d01041cfbba0d40ab38836a35544e09">opj_image::x0</a>, <a class="el" href="structopj__image.html#a7a27deb6bf174dd57ee473d1d514f8ef">opj_image::x1</a>, <a class="el" href="structopj__image__comp.html#aa8dff1eb1f11e9f21b0ddefe14ad3fc6">opj_image_comp::y0</a>, <a class="el" href="structopj__image.html#a9813bacf1939346629c07262c61c8e74">opj_image::y0</a>, and <a class="el" href="structopj__image.html#a80fd916819080f959a601b0089c4c69a">opj_image::y1</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="j2k_8c.html#aa91c21b73fc17028a77ba44d3987f17a">opj_j2k_read_siz()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a439566326ad0df2db2c9aef54098335e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a439566326ad0df2db2c9aef54098335e">◆ </a></span>opj_image_create()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="openjpeg_8h.html#a938748004a587b25d8a5b8d3b344bad4">opj_image_t</a>* <a class="el" href="openjpeg_8h.html#aedc1e23ea6654d0cc416bc390687458b">OPJ_CALLCONV</a> opj_image_create </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> </td>
|
|
<td class="paramname"><em>numcmpts</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a2ac339d626a541cf19ed9ac9658c4aeb">opj_image_cmptparm_t</a> * </td>
|
|
<td class="paramname"><em>cmptparms</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="openjpeg_8h.html#ae080fd52e7454b8f1b3f081b284edfe0">OPJ_COLOR_SPACE</a> </td>
|
|
<td class="paramname"><em>clrspc</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Create an image. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">numcmpts</td><td>number of components </td></tr>
|
|
<tr><td class="paramname">cmptparms</td><td>components parameters </td></tr>
|
|
<tr><td class="paramname">clrspc</td><td>image color space </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>returns a new image structure if successful, returns NULL otherwise </dd></dl>
|
|
|
|
<p class="reference">References <a class="el" href="structopj__image.html#a0a905c725270c4a7085fbe1edea994c2">opj_image::color_space</a>, <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#a0805d2f69bb770ff022c164aeda22685">opj_image_comp::dx</a>, <a class="el" href="structopj__image__comptparm.html#a709dcaed22eaba4f946e9ca3938b41b5">opj_image_comptparm::dx</a>, <a class="el" href="structopj__image__comp.html#af9d6fd62a2b8bdd9fd162ce403eb0f10">opj_image_comp::dy</a>, <a class="el" href="structopj__image__comptparm.html#aca10e7f31cbd3ebee3601532d19333de">opj_image_comptparm::dy</a>, <a class="el" href="structopj__image__comp.html#a11ecb361a0c49b482c90573a868cc8dc">opj_image_comp::h</a>, <a class="el" href="structopj__image__comptparm.html#a9a262042a9c180f5b236145ef7f52553">opj_image_comptparm::h</a>, <a class="el" href="structopj__image.html#ac63093741ed0c70b9c0a8ee3070cbce6">opj_image::numcomps</a>, <a class="el" href="opj__malloc_8c.html#a3fe08bb7876e393dd04332d049a4d53e">opj_calloc()</a>, <a class="el" href="openjpeg_8c.html#a3f03dd6d6224e93ff15a1d9234d948d5">opj_image_data_alloc()</a>, <a class="el" href="image_8c.html#a193f6a609b0a3c4aa4912be9c987cd14">opj_image_destroy()</a>, <a class="el" href="structopj__image__comp.html#ab7210ddbf12e6d9998d24034a579cea1">opj_image_comp::prec</a>, <a class="el" href="structopj__image__comptparm.html#ac9a9f971df431df4ae59b94ad15f7ecf">opj_image_comptparm::prec</a>, <a class="el" href="structopj__image__comp.html#a2d2337d15fd837252fe250386bac7fb9">opj_image_comp::sgnd</a>, <a class="el" href="structopj__image__comptparm.html#ab04dc3080a225270b23417b1d591ff38">opj_image_comptparm::sgnd</a>, <a class="el" href="opj__malloc_8c.html#a3c75bb398badb69c7577b21486f9963f">SIZE_MAX</a>, <a class="el" href="structopj__image__comp.html#a59225121158d5bc911838e5b05779cdb">opj_image_comp::w</a>, <a class="el" href="structopj__image__comptparm.html#af83b657b54cb33fe3021656d27a76002">opj_image_comptparm::w</a>, <a class="el" href="structopj__image__comp.html#a1f897a8932374ca64cd4d7a256008ea3">opj_image_comp::x0</a>, <a class="el" href="structopj__image__comptparm.html#a384f4f3280e19b98e5fc0b67cd4fc02a">opj_image_comptparm::x0</a>, <a class="el" href="structopj__image__comp.html#aa8dff1eb1f11e9f21b0ddefe14ad3fc6">opj_image_comp::y0</a>, and <a class="el" href="structopj__image__comptparm.html#a8789a74e9825d51a1aa99021c2273746">opj_image_comptparm::y0</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a83035109ca4e81f9d90451adf6d975b4"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a83035109ca4e81f9d90451adf6d975b4">◆ </a></span>opj_image_create0()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="openjpeg_8h.html#a938748004a587b25d8a5b8d3b344bad4">opj_image_t</a>* opj_image_create0 </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void </td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Create an empty image. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>returns an empty image if successful, returns NULL otherwise </dd></dl>
|
|
|
|
<p class="reference">References <a class="el" href="opj__malloc_8c.html#a3fe08bb7876e393dd04332d049a4d53e">opj_calloc()</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="j2k_8h.html#a09f2c6c83d8066e1db9ab66fed58d9c8">opj_j2k_decode()</a>, <a class="el" href="j2k_8h.html#a60371d3609364bf033e8c244599abf6f">opj_j2k_get_tile()</a>, <a class="el" href="j2k_8h.html#a34c49b256edcdbf036492dfa635284d7">opj_j2k_read_header()</a>, and <a class="el" href="j2k_8h.html#accea6429e4f466250b095ee3fb94805c">opj_j2k_start_compress()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a193f6a609b0a3c4aa4912be9c987cd14"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a193f6a609b0a3c4aa4912be9c987cd14">◆ </a></span>opj_image_destroy()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="openjpeg_8h.html#aedc1e23ea6654d0cc416bc390687458b">OPJ_CALLCONV</a> opj_image_destroy </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a938748004a587b25d8a5b8d3b344bad4">opj_image_t</a> * </td>
|
|
<td class="paramname"><em>image</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Deallocate any resources associated with an image. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">image</td><td>image to be destroyed </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<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.html#a1b62a25bd7603c6747aa3edd036401c1">opj_image::icc_profile_buf</a>, <a class="el" href="structopj__image.html#ac63093741ed0c70b9c0a8ee3070cbce6">opj_image::numcomps</a>, <a class="el" href="opj__malloc_8c.html#a9d7d909f8dc1a2c23313c48645341e81">opj_free()</a>, and <a class="el" href="openjpeg_8c.html#a53a2908ba063e90755b9449001194f88">opj_image_data_free()</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="jp2k__decoder_8h.html#a261799e8487d1b77fc04948abe701e5f">j2k_to_pnm()</a>, <a class="el" href="openjpeg_8h.html#af168cf4a4295433c8c33610bac614553">opj_image_create()</a>, <a class="el" href="openjpeg_8h.html#a2b29bd52d3b2bcc2d3e0d95db66fbd5f">opj_image_tile_create()</a>, <a class="el" href="j2k_8h.html#a09f2c6c83d8066e1db9ab66fed58d9c8">opj_j2k_decode()</a>, <a class="el" href="j2k_8h.html#a5c4508543b134e726107308b6463528e">opj_j2k_destroy()</a>, <a class="el" href="j2k_8h.html#a60371d3609364bf033e8c244599abf6f">opj_j2k_get_tile()</a>, <a class="el" href="j2k_8c.html#a358ce63afe87a1bfad2787689a4021f4">opj_j2k_move_data_from_codec_to_output_image()</a>, and <a class="el" href="j2k_8h.html#a34c49b256edcdbf036492dfa635284d7">opj_j2k_read_header()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aac70fc16e896c56053c1385b2d3e8e47"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aac70fc16e896c56053c1385b2d3e8e47">◆ </a></span>opj_image_tile_create()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="openjpeg_8h.html#a938748004a587b25d8a5b8d3b344bad4">opj_image_t</a>* <a class="el" href="openjpeg_8h.html#aedc1e23ea6654d0cc416bc390687458b">OPJ_CALLCONV</a> opj_image_tile_create </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> </td>
|
|
<td class="paramname"><em>numcmpts</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a2ac339d626a541cf19ed9ac9658c4aeb">opj_image_cmptparm_t</a> * </td>
|
|
<td class="paramname"><em>cmptparms</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="openjpeg_8h.html#ae080fd52e7454b8f1b3f081b284edfe0">OPJ_COLOR_SPACE</a> </td>
|
|
<td class="paramname"><em>clrspc</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates an image without allocating memory for the image (used in the new version of the library). </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">numcmpts</td><td>the number of components </td></tr>
|
|
<tr><td class="paramname">cmptparms</td><td>the components parameters </td></tr>
|
|
<tr><td class="paramname">clrspc</td><td>the image color space</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>a new image structure if successful, NULL otherwise. </dd></dl>
|
|
|
|
<p class="reference">References <a class="el" href="structopj__image.html#a0a905c725270c4a7085fbe1edea994c2">opj_image::color_space</a>, <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#a0805d2f69bb770ff022c164aeda22685">opj_image_comp::dx</a>, <a class="el" href="structopj__image__comptparm.html#a709dcaed22eaba4f946e9ca3938b41b5">opj_image_comptparm::dx</a>, <a class="el" href="structopj__image__comp.html#af9d6fd62a2b8bdd9fd162ce403eb0f10">opj_image_comp::dy</a>, <a class="el" href="structopj__image__comptparm.html#aca10e7f31cbd3ebee3601532d19333de">opj_image_comptparm::dy</a>, <a class="el" href="structopj__image__comp.html#a11ecb361a0c49b482c90573a868cc8dc">opj_image_comp::h</a>, <a class="el" href="structopj__image__comptparm.html#a9a262042a9c180f5b236145ef7f52553">opj_image_comptparm::h</a>, <a class="el" href="structopj__image.html#ac63093741ed0c70b9c0a8ee3070cbce6">opj_image::numcomps</a>, <a class="el" href="opj__malloc_8c.html#a3fe08bb7876e393dd04332d049a4d53e">opj_calloc()</a>, <a class="el" href="image_8c.html#a193f6a609b0a3c4aa4912be9c987cd14">opj_image_destroy()</a>, <a class="el" href="structopj__image__comp.html#ab7210ddbf12e6d9998d24034a579cea1">opj_image_comp::prec</a>, <a class="el" href="structopj__image__comptparm.html#ac9a9f971df431df4ae59b94ad15f7ecf">opj_image_comptparm::prec</a>, <a class="el" href="structopj__image__comp.html#a2d2337d15fd837252fe250386bac7fb9">opj_image_comp::sgnd</a>, <a class="el" href="structopj__image__comptparm.html#ab04dc3080a225270b23417b1d591ff38">opj_image_comptparm::sgnd</a>, <a class="el" href="structopj__image__comp.html#a59225121158d5bc911838e5b05779cdb">opj_image_comp::w</a>, <a class="el" href="structopj__image__comptparm.html#af83b657b54cb33fe3021656d27a76002">opj_image_comptparm::w</a>, <a class="el" href="structopj__image__comp.html#a1f897a8932374ca64cd4d7a256008ea3">opj_image_comp::x0</a>, <a class="el" href="structopj__image__comptparm.html#a384f4f3280e19b98e5fc0b67cd4fc02a">opj_image_comptparm::x0</a>, <a class="el" href="structopj__image__comp.html#aa8dff1eb1f11e9f21b0ddefe14ad3fc6">opj_image_comp::y0</a>, and <a class="el" href="structopj__image__comptparm.html#a8789a74e9825d51a1aa99021c2273746">opj_image_comptparm::y0</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.17
|
|
</small></address>
|
|
</body>
|
|
</html>
|