openjpeg/doxygen/opj__malloc_8c.html

212 lines
14 KiB
HTML
Raw Normal View History

2016-09-29 22:38:29 +02:00
<!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: opj_malloc.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.1.2</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_68013e83e260d17d49dee5e209315608.html">openjp2</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">opj_malloc.c File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="opj__includes_8h_source.html">opj_includes.h</a>&quot;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a66b275350ced9ee2809a6d816448a3e7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="opj__malloc_8c.html#a66b275350ced9ee2809a6d816448a3e7">OPJ_SKIP_POISON</a></td></tr>
<tr class="separator:a66b275350ced9ee2809a6d816448a3e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c75bb398badb69c7577b21486f9963f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="opj__malloc_8c.html#a3c75bb398badb69c7577b21486f9963f">SIZE_MAX</a>&#160;&#160;&#160;((size_t) -1)</td></tr>
<tr class="separator:a3c75bb398badb69c7577b21486f9963f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ac38162a5a110cb6499df3efd7a6b395f"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a> void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="opj__malloc_8c.html#ac38162a5a110cb6499df3efd7a6b395f">opj_aligned_alloc_n</a> (size_t alignment, size_t size)</td></tr>
<tr class="separator:ac38162a5a110cb6499df3efd7a6b395f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29b9ed947cbc800b3d9747a4d9312013"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a> void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="opj__malloc_8c.html#a29b9ed947cbc800b3d9747a4d9312013">opj_aligned_realloc_n</a> (void *ptr, size_t alignment, size_t new_size)</td></tr>
<tr class="separator:a29b9ed947cbc800b3d9747a4d9312013"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga49c70931cbed786f6eef5f095bcb2917"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_i_s_c.html#ga49c70931cbed786f6eef5f095bcb2917">opj_malloc</a> (size_t size)</td></tr>
<tr class="memdesc:ga49c70931cbed786f6eef5f095bcb2917"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocate an uninitialized memory block. <a href="group___m_i_s_c.html#ga49c70931cbed786f6eef5f095bcb2917">More...</a><br /></td></tr>
<tr class="separator:ga49c70931cbed786f6eef5f095bcb2917"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7fe6dfcb0a623dbec30daf0f48624bf7"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_i_s_c.html#ga7fe6dfcb0a623dbec30daf0f48624bf7">opj_calloc</a> (size_t num, size_t size)</td></tr>
<tr class="memdesc:ga7fe6dfcb0a623dbec30daf0f48624bf7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocate a memory block with elements initialized to 0. <a href="group___m_i_s_c.html#ga7fe6dfcb0a623dbec30daf0f48624bf7">More...</a><br /></td></tr>
<tr class="separator:ga7fe6dfcb0a623dbec30daf0f48624bf7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4418db34754a5b9ac5a79fece518c601"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_i_s_c.html#ga4418db34754a5b9ac5a79fece518c601">opj_aligned_malloc</a> (size_t size)</td></tr>
<tr class="memdesc:ga4418db34754a5b9ac5a79fece518c601"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocate memory aligned to a 16 byte boundary. <a href="group___m_i_s_c.html#ga4418db34754a5b9ac5a79fece518c601">More...</a><br /></td></tr>
<tr class="separator:ga4418db34754a5b9ac5a79fece518c601"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0fdc9e5dfa748e01dd87621a12a0e102"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_i_s_c.html#ga0fdc9e5dfa748e01dd87621a12a0e102">opj_aligned_realloc</a> (void *ptr, size_t size)</td></tr>
<tr class="separator:ga0fdc9e5dfa748e01dd87621a12a0e102"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaefeccfbb22ba64c00f94f7f66fc97126"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_i_s_c.html#gaefeccfbb22ba64c00f94f7f66fc97126">opj_aligned_free</a> (void *ptr)</td></tr>
<tr class="separator:gaefeccfbb22ba64c00f94f7f66fc97126"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga95862b2a456efdc436c61beba816fb25"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_i_s_c.html#ga95862b2a456efdc436c61beba816fb25">opj_realloc</a> (void *ptr, size_t new_size)</td></tr>
<tr class="memdesc:ga95862b2a456efdc436c61beba816fb25"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reallocate memory blocks. <a href="group___m_i_s_c.html#ga95862b2a456efdc436c61beba816fb25">More...</a><br /></td></tr>
<tr class="separator:ga95862b2a456efdc436c61beba816fb25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2bd00e2482ae36197631bde0665cfdfe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_i_s_c.html#ga2bd00e2482ae36197631bde0665cfdfe">opj_free</a> (void *ptr)</td></tr>
<tr class="memdesc:ga2bd00e2482ae36197631bde0665cfdfe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deallocates or frees a memory block. <a href="group___m_i_s_c.html#ga2bd00e2482ae36197631bde0665cfdfe">More...</a><br /></td></tr>
<tr class="separator:ga2bd00e2482ae36197631bde0665cfdfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a66b275350ced9ee2809a6d816448a3e7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define OPJ_SKIP_POISON</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a3c75bb398badb69c7577b21486f9963f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define SIZE_MAX&#160;&#160;&#160;((size_t) -1)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Referenced by <a class="el" href="opj__malloc_8c.html#ac38162a5a110cb6499df3efd7a6b395f">opj_aligned_alloc_n()</a>, <a class="el" href="opj__malloc_8c.html#a29b9ed947cbc800b3d9747a4d9312013">opj_aligned_realloc_n()</a>, <a class="el" href="group___d_w_t.html#ga403bd8bf5833ad7b859499006bc94bfc">opj_dwt_decode_real()</a>, <a class="el" href="group___d_w_t.html#ga48646519707c1effde28134ac7267f89">opj_dwt_decode_tile()</a>, <a class="el" href="group___d_w_t.html#gaf5d11346c5468f428d60d40e7dfced26">opj_dwt_encode_procedure()</a>, <a class="el" href="group___j2_k.html#ga7d62e2e69643f4b8a5968a2d99c5a369">opj_j2k_update_image_data()</a>, <a class="el" href="group___p_i.html#ga4990d0324eb594434bd7ef61d746ac46">opj_pi_create_decode()</a>, and <a class="el" href="group___t1.html#ga676ae65a9d3daed3299a36fa3842043e">opj_t1_allocate_buffers()</a>.</p>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ac38162a5a110cb6499df3efd7a6b395f"></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="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a> void* opj_aligned_alloc_n </td>
<td>(</td>
<td class="paramtype">size_t&#160;</td>
<td class="paramname"><em>alignment</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t&#160;</td>
<td class="paramname"><em>size</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="opj__malloc_8c.html#a3c75bb398badb69c7577b21486f9963f">SIZE_MAX</a>.</p>
<p>Referenced by <a class="el" href="group___m_i_s_c.html#ga4418db34754a5b9ac5a79fece518c601">opj_aligned_malloc()</a>, and <a class="el" href="opj__malloc_8c.html#a29b9ed947cbc800b3d9747a4d9312013">opj_aligned_realloc_n()</a>.</p>
</div>
</div>
<a class="anchor" id="a29b9ed947cbc800b3d9747a4d9312013"></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="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a> void* opj_aligned_realloc_n </td>
<td>(</td>
<td class="paramtype">void *&#160;</td>
<td class="paramname"><em>ptr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t&#160;</td>
<td class="paramname"><em>alignment</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t&#160;</td>
<td class="paramname"><em>new_size</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="opj__malloc_8c.html#ac38162a5a110cb6499df3efd7a6b395f">opj_aligned_alloc_n()</a>, and <a class="el" href="opj__malloc_8c.html#a3c75bb398badb69c7577b21486f9963f">SIZE_MAX</a>.</p>
<p>Referenced by <a class="el" href="group___m_i_s_c.html#ga0fdc9e5dfa748e01dd87621a12a0e102">opj_aligned_realloc()</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>