219 lines
15 KiB
HTML
219 lines
15 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.13"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<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
|
|
 <span id="projectnumber">2.3.1</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.13 -->
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
initMenu('',false,false,'search.php','Search');
|
|
});
|
|
</script>
|
|
<div id="main-nav"></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> |
|
|
<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 "<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="define-members"></a>
|
|
Macros</h2></td></tr>
|
|
<tr class="memitem:a66b275350ced9ee2809a6d816448a3e7"><td class="memItemLeft" align="right" valign="top">#define </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"> </td></tr>
|
|
<tr class="memitem:a3c75bb398badb69c7577b21486f9963f"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="opj__malloc_8c.html#a3c75bb398badb69c7577b21486f9963f">SIZE_MAX</a>   ((size_t) -1)</td></tr>
|
|
<tr class="separator:a3c75bb398badb69c7577b21486f9963f"><td class="memSeparator" colspan="2"> </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 * </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"> </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 * </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"> </td></tr>
|
|
<tr class="memitem:ga49c70931cbed786f6eef5f095bcb2917"><td class="memItemLeft" align="right" valign="top">void * </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"> </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"> </td></tr>
|
|
<tr class="memitem:ga7fe6dfcb0a623dbec30daf0f48624bf7"><td class="memItemLeft" align="right" valign="top">void * </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"> </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"> </td></tr>
|
|
<tr class="memitem:ga4418db34754a5b9ac5a79fece518c601"><td class="memItemLeft" align="right" valign="top">void * </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"> </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"> </td></tr>
|
|
<tr class="memitem:ga0fdc9e5dfa748e01dd87621a12a0e102"><td class="memItemLeft" align="right" valign="top">void * </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"> </td></tr>
|
|
<tr class="memitem:gaca33611a393378b0314a07d239b66099"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_i_s_c.html#gaca33611a393378b0314a07d239b66099">opj_aligned_32_malloc</a> (size_t size)</td></tr>
|
|
<tr class="memdesc:gaca33611a393378b0314a07d239b66099"><td class="mdescLeft"> </td><td class="mdescRight">Allocate memory aligned to a 32 byte boundary. <a href="group___m_i_s_c.html#gaca33611a393378b0314a07d239b66099">More...</a><br /></td></tr>
|
|
<tr class="separator:gaca33611a393378b0314a07d239b66099"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga42f91b38d00506a6851fc1dde0fba402"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_i_s_c.html#ga42f91b38d00506a6851fc1dde0fba402">opj_aligned_32_realloc</a> (void *ptr, size_t size)</td></tr>
|
|
<tr class="separator:ga42f91b38d00506a6851fc1dde0fba402"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaefeccfbb22ba64c00f94f7f66fc97126"><td class="memItemLeft" align="right" valign="top">void </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"> </td></tr>
|
|
<tr class="memitem:ga95862b2a456efdc436c61beba816fb25"><td class="memItemLeft" align="right" valign="top">void * </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"> </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"> </td></tr>
|
|
<tr class="memitem:ga2bd00e2482ae36197631bde0665cfdfe"><td class="memItemLeft" align="right" valign="top">void </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"> </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"> </td></tr>
|
|
</table>
|
|
<h2 class="groupheader">Macro Definition Documentation</h2>
|
|
<a id="a66b275350ced9ee2809a6d816448a3e7"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a66b275350ced9ee2809a6d816448a3e7">◆ </a></span>OPJ_SKIP_POISON</h2>
|
|
|
|
<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 id="a3c75bb398badb69c7577b21486f9963f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a3c75bb398badb69c7577b21486f9963f">◆ </a></span>SIZE_MAX</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define SIZE_MAX   ((size_t) -1)</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="reference">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="dwt_8c.html#a75cd080404aadce6662457dec7cc9d21">opj_dwt_decode_partial_97()</a>, <a class="el" href="group___d_w_t.html#ga74b827f7914de05bf5bfc52894894803">opj_dwt_decode_partial_tile()</a>, <a class="el" href="group___d_w_t.html#ga473550255363b8acb0c9b10a6dbac434">opj_dwt_decode_tile()</a>, <a class="el" href="dwt_8c.html#a7e47f416bc6f3987a9b2139c302f4104">opj_dwt_decode_tile_97()</a>, <a class="el" href="group___d_w_t.html#gaf5d11346c5468f428d60d40e7dfced26">opj_dwt_encode_procedure()</a>, <a class="el" href="openjpeg_8h.html#af168cf4a4295433c8c33610bac614553">opj_image_create()</a>, <a class="el" href="group___j2_k.html#ga8e1a7d063d261020d4d8984cb2320971">opj_j2k_update_image_data()</a>, <a class="el" href="group___t_c_d.html#gad5a64bbb748b2c76bd41ea66715fa897">opj_tcd_decode_tile()</a>, and <a class="el" href="tcd_8c.html#a54bd587a88cc401980302d13635b2703">opj_tcd_init_tile()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Function Documentation</h2>
|
|
<a id="ac38162a5a110cb6499df3efd7a6b395f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac38162a5a110cb6499df3efd7a6b395f">◆ </a></span>opj_aligned_alloc_n()</h2>
|
|
|
|
<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 </td>
|
|
<td class="paramname"><em>alignment</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">size_t </td>
|
|
<td class="paramname"><em>size</em> </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 class="reference">References <a class="el" href="opj__malloc_8c.html#a3c75bb398badb69c7577b21486f9963f">SIZE_MAX</a>.</p>
|
|
|
|
<p class="reference">Referenced by <a class="el" href="group___m_i_s_c.html#gaca33611a393378b0314a07d239b66099">opj_aligned_32_malloc()</a>, <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 id="a29b9ed947cbc800b3d9747a4d9312013"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a29b9ed947cbc800b3d9747a4d9312013">◆ </a></span>opj_aligned_realloc_n()</h2>
|
|
|
|
<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 * </td>
|
|
<td class="paramname"><em>ptr</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">size_t </td>
|
|
<td class="paramname"><em>alignment</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">size_t </td>
|
|
<td class="paramname"><em>new_size</em> </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 class="reference">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 class="reference">Referenced by <a class="el" href="group___m_i_s_c.html#ga42f91b38d00506a6851fc1dde0fba402">opj_aligned_32_realloc()</a>, and <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  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.13
|
|
</small></address>
|
|
</body>
|
|
</html>
|