openjpeg/doxygen/group___o_p_j___i_n_t_m_a_t...

720 lines
45 KiB
HTML
Raw Normal View History

2015-07-10 18:06:19 +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.9.1"/>
<title>OpenJPEG: OPJ_INTMATH - Implementation of operations on integers</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 style="padding-left: 0.5em;">
<div id="projectname">OpenJPEG
&#160;<span id="projectnumber">2.1.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<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><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">OPJ_INTMATH - Implementation of operations on integers</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Exported functions (see also openjpeg.h)</h2></td></tr>
<tr class="memitem:gaac315c40dca690742df538fcc21d4f91"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___o_p_j___i_n_t_m_a_t_h.html#gaac315c40dca690742df538fcc21d4f91">opj_int_min</a> (<a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a, <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> b)</td></tr>
<tr class="memdesc:gaac315c40dca690742df538fcc21d4f91"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the minimum of two integers. <a href="#gaac315c40dca690742df538fcc21d4f91">More...</a><br /></td></tr>
<tr class="separator:gaac315c40dca690742df538fcc21d4f91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga06c1c4470f9765a3ed04963b0daa111a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a> <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___o_p_j___i_n_t_m_a_t_h.html#ga06c1c4470f9765a3ed04963b0daa111a">opj_uint_min</a> (<a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> a, <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> b)</td></tr>
<tr class="memdesc:ga06c1c4470f9765a3ed04963b0daa111a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the minimum of two integers. <a href="#ga06c1c4470f9765a3ed04963b0daa111a">More...</a><br /></td></tr>
<tr class="separator:ga06c1c4470f9765a3ed04963b0daa111a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2f7d5c3934ee6be38763652b7f80ea6c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___o_p_j___i_n_t_m_a_t_h.html#ga2f7d5c3934ee6be38763652b7f80ea6c">opj_int_max</a> (<a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a, <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> b)</td></tr>
<tr class="memdesc:ga2f7d5c3934ee6be38763652b7f80ea6c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the maximum of two integers. <a href="#ga2f7d5c3934ee6be38763652b7f80ea6c">More...</a><br /></td></tr>
<tr class="separator:ga2f7d5c3934ee6be38763652b7f80ea6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2c3eb35fddab83fef25256485b926fc0"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a> <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___o_p_j___i_n_t_m_a_t_h.html#ga2c3eb35fddab83fef25256485b926fc0">opj_uint_max</a> (<a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> a, <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> b)</td></tr>
<tr class="memdesc:ga2c3eb35fddab83fef25256485b926fc0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the maximum of two integers. <a href="#ga2c3eb35fddab83fef25256485b926fc0">More...</a><br /></td></tr>
<tr class="separator:ga2c3eb35fddab83fef25256485b926fc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab9aad885f5c9bc9e39420003b2b32fe5"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a> <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___o_p_j___i_n_t_m_a_t_h.html#gab9aad885f5c9bc9e39420003b2b32fe5">opj_uint_adds</a> (<a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> a, <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> b)</td></tr>
<tr class="memdesc:gab9aad885f5c9bc9e39420003b2b32fe5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the saturated sum of two unsigned integers. <a href="#gab9aad885f5c9bc9e39420003b2b32fe5">More...</a><br /></td></tr>
<tr class="separator:gab9aad885f5c9bc9e39420003b2b32fe5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaefb4572107a9aea093be96d966869a0d"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___o_p_j___i_n_t_m_a_t_h.html#gaefb4572107a9aea093be96d966869a0d">opj_int_clamp</a> (<a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a, <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> <a class="el" href="index__manager_8c.html#ac1d9c713f42b405f9e353ec99b880755">min</a>, <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> <a class="el" href="index__manager_8c.html#aecefdbf80129b12f2ef66ccfbedbb7fe">max</a>)</td></tr>
<tr class="memdesc:gaefb4572107a9aea093be96d966869a0d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clamp an integer inside an interval. <a href="#gaefb4572107a9aea093be96d966869a0d">More...</a><br /></td></tr>
<tr class="separator:gaefb4572107a9aea093be96d966869a0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacaef279a9031adbd9319990646328a01"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___o_p_j___i_n_t_m_a_t_h.html#gacaef279a9031adbd9319990646328a01">opj_int_abs</a> (<a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a)</td></tr>
<tr class="separator:gacaef279a9031adbd9319990646328a01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab00a7c3619b5af7595961047baff120e"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___o_p_j___i_n_t_m_a_t_h.html#gab00a7c3619b5af7595961047baff120e">opj_int_ceildiv</a> (<a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a, <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> b)</td></tr>
<tr class="memdesc:gab00a7c3619b5af7595961047baff120e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Divide an integer and round upwards. <a href="#gab00a7c3619b5af7595961047baff120e">More...</a><br /></td></tr>
<tr class="separator:gab00a7c3619b5af7595961047baff120e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae4b2e5a7c8b8f09faacc4a895f866ea1"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a> <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___o_p_j___i_n_t_m_a_t_h.html#gae4b2e5a7c8b8f09faacc4a895f866ea1">opj_uint_ceildiv</a> (<a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> a, <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> b)</td></tr>
<tr class="memdesc:gae4b2e5a7c8b8f09faacc4a895f866ea1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Divide an integer and round upwards. <a href="#gae4b2e5a7c8b8f09faacc4a895f866ea1">More...</a><br /></td></tr>
<tr class="separator:gae4b2e5a7c8b8f09faacc4a895f866ea1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaaa1e441dec325d33ccd86aa7ca8ccfdc"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___o_p_j___i_n_t_m_a_t_h.html#gaaa1e441dec325d33ccd86aa7ca8ccfdc">opj_int_ceildivpow2</a> (<a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a, <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> b)</td></tr>
<tr class="memdesc:gaaa1e441dec325d33ccd86aa7ca8ccfdc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Divide an integer by a power of 2 and round upwards. <a href="#gaaa1e441dec325d33ccd86aa7ca8ccfdc">More...</a><br /></td></tr>
<tr class="separator:gaaa1e441dec325d33ccd86aa7ca8ccfdc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae592eb75f221decddec51834b6c4177d"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a> <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___o_p_j___i_n_t_m_a_t_h.html#gae592eb75f221decddec51834b6c4177d">opj_uint_ceildivpow2</a> (<a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> a, <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> b)</td></tr>
<tr class="memdesc:gae592eb75f221decddec51834b6c4177d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Divide an integer by a power of 2 and round upwards. <a href="#gae592eb75f221decddec51834b6c4177d">More...</a><br /></td></tr>
<tr class="separator:gae592eb75f221decddec51834b6c4177d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabdf6c78f5b60afd230901e5e0c57f491"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___o_p_j___i_n_t_m_a_t_h.html#gabdf6c78f5b60afd230901e5e0c57f491">opj_int_floordivpow2</a> (<a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a, <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> b)</td></tr>
<tr class="memdesc:gabdf6c78f5b60afd230901e5e0c57f491"><td class="mdescLeft">&#160;</td><td class="mdescRight">Divide an integer by a power of 2 and round downwards. <a href="#gabdf6c78f5b60afd230901e5e0c57f491">More...</a><br /></td></tr>
<tr class="separator:gabdf6c78f5b60afd230901e5e0c57f491"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa6a55d57af96308459f6de414227ae40"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___o_p_j___i_n_t_m_a_t_h.html#gaa6a55d57af96308459f6de414227ae40">opj_int_floorlog2</a> (<a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a)</td></tr>
<tr class="memdesc:gaa6a55d57af96308459f6de414227ae40"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get logarithm of an integer and round downwards. <a href="#gaa6a55d57af96308459f6de414227ae40">More...</a><br /></td></tr>
<tr class="separator:gaa6a55d57af96308459f6de414227ae40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga91ef25eaa56320684de5d1e3a4097823"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a> <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___o_p_j___i_n_t_m_a_t_h.html#ga91ef25eaa56320684de5d1e3a4097823">opj_uint_floorlog2</a> (<a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> a)</td></tr>
<tr class="memdesc:ga91ef25eaa56320684de5d1e3a4097823"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get logarithm of an integer and round downwards. <a href="#ga91ef25eaa56320684de5d1e3a4097823">More...</a><br /></td></tr>
<tr class="separator:ga91ef25eaa56320684de5d1e3a4097823"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa2130d6482126a20e6680f82b254857b"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___o_p_j___i_n_t_m_a_t_h.html#gaa2130d6482126a20e6680f82b254857b">opj_int_fix_mul</a> (<a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a, <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> b)</td></tr>
<tr class="memdesc:gaa2130d6482126a20e6680f82b254857b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Multiply two fixed-precision rational numbers. <a href="#gaa2130d6482126a20e6680f82b254857b">More...</a><br /></td></tr>
<tr class="separator:gaa2130d6482126a20e6680f82b254857b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5ce489e764483d741e8953475341ba14"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___o_p_j___i_n_t_m_a_t_h.html#ga5ce489e764483d741e8953475341ba14">opj_int_fix_mul_t1</a> (<a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a, <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> b)</td></tr>
<tr class="separator:ga5ce489e764483d741e8953475341ba14"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="gacaef279a9031adbd9319990646328a01"></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> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> opj_int_abs </td>
<td>(</td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>a</em></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">
<dl class="section return"><dt>Returns</dt><dd>Get absolute value of integer </dd></dl>
<p>Referenced by <a class="el" href="group___t1.html#ga33161ec649303a88337ba8fb9877f111">opj_t1_enc_clnpass()</a>, <a class="el" href="group___t1.html#gaa674afcf1709f834ace5bbbb900d080d">opj_t1_enc_clnpass_step()</a>, <a class="el" href="group___t1.html#ga421d79431c9ddd07e3722fb3cff932e8">opj_t1_enc_refpass_step()</a>, and <a class="el" href="group___t1.html#gaea66d58fa183ce4560ed35af951b7404">opj_t1_enc_sigpass_step()</a>.</p>
</div>
</div>
<a class="anchor" id="gab00a7c3619b5af7595961047baff120e"></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> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> opj_int_ceildiv </td>
<td>(</td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>b</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>Divide an integer and round upwards. </p>
<dl class="section return"><dt>Returns</dt><dd>Returns a divided by b </dd></dl>
<p>Referenced by <a class="el" href="group___p_i.html#ga0224e9498d03915f1e3b626791db6f10">opj_get_all_encoding_parameters()</a>, <a class="el" href="group___p_i.html#gac3e3cc4faa8e95967c06d931f2f65ccb">opj_get_encoding_parameters()</a>, <a class="el" href="group___j2_k.html#ga061aaa9fba5e66d352568be76c6279bb">opj_get_tile_dimensions()</a>, <a class="el" href="j2k_8h.html#a60371d3609364bf033e8c244599abf6f">opj_j2k_get_tile()</a>, <a class="el" href="group___j2_k.html#gaa91c21b73fc17028a77ba44d3987f17a">opj_j2k_read_siz()</a>, <a class="el" href="j2k_8h.html#ab4cb6916a495309faab2dd7cb587ccb8">opj_j2k_set_decode_area()</a>, <a class="el" href="group___j2_k.html#ga4a6561d0899d91b38099da38814cbe86">opj_j2k_setup_encoder()</a>, <a class="el" href="group___p_i.html#ga813ec21ad21c815057f14fec5f9d9da8">opj_pi_next_cprl()</a>, <a class="el" href="group___p_i.html#gad87015c9daa0be226f4953a087fae459">opj_pi_next_pcrl()</a>, <a class="el" href="group___p_i.html#gaf9366c26ac3d63f747d954fbdf67b7a6">opj_pi_next_rpcl()</a>, and <a class="el" href="tcd_8c.html#ab661bd689857433bdc5d7a312862944d">opj_tcd_init_tile()</a>.</p>
</div>
</div>
<a class="anchor" id="gaaa1e441dec325d33ccd86aa7ca8ccfdc"></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> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> opj_int_ceildivpow2 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>b</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>Divide an integer by a power of 2 and round upwards. </p>
<dl class="section return"><dt>Returns</dt><dd>Returns a divided by 2^b </dd></dl>
<p>Referenced by <a class="el" href="group___p_i.html#ga0224e9498d03915f1e3b626791db6f10">opj_get_all_encoding_parameters()</a>, <a class="el" href="group___p_i.html#gac3e3cc4faa8e95967c06d931f2f65ccb">opj_get_encoding_parameters()</a>, <a class="el" href="j2k_8h.html#a60371d3609364bf033e8c244599abf6f">opj_j2k_get_tile()</a>, <a class="el" href="j2k_8h.html#ab4cb6916a495309faab2dd7cb587ccb8">opj_j2k_set_decode_area()</a>, and <a class="el" href="tcd_8c.html#ab661bd689857433bdc5d7a312862944d">opj_tcd_init_tile()</a>.</p>
</div>
</div>
<a class="anchor" id="gaefb4572107a9aea093be96d966869a0d"></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> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> opj_int_clamp </td>
<td>(</td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>min</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>max</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>Clamp an integer inside an interval. </p>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>
Returns a if (min &lt; a &lt; max) </li>
<li>
Returns max if (a &gt; max) </li>
<li>
Returns min if (a &lt; min) </li>
</ul>
</dd></dl>
<p>References <a class="el" href="index__manager_8c.html#aecefdbf80129b12f2ef66ccfbedbb7fe">max()</a>, and <a class="el" href="index__manager_8c.html#ac1d9c713f42b405f9e353ec99b880755">min()</a>.</p>
<p>Referenced by <a class="el" href="tcd_8c.html#a37ea10990a1e0bba1d694aa081b3286d">opj_tcd_dc_level_shift_decode()</a>.</p>
</div>
</div>
<a class="anchor" id="gaa2130d6482126a20e6680f82b254857b"></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> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> opj_int_fix_mul </td>
<td>(</td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>b</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>Multiply two fixed-precision rational numbers. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">a</td><td></td></tr>
<tr><td class="paramname">b</td><td></td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns a * b </dd></dl>
<p>Referenced by <a class="el" href="group___d_w_t.html#ga8c8c19f291bc6516f681bba66ccae570">opj_dwt_encode_1_real()</a>, <a class="el" href="group___m_c_t.html#gab0946464e132487d1acffbeddd1a1a2e">opj_mct_encode_custom()</a>, and <a class="el" href="mct_8c.html#aea8b4d5feb5c1aa1f2a8426394f10874">opj_mct_encode_real()</a>.</p>
</div>
</div>
<a class="anchor" id="ga5ce489e764483d741e8953475341ba14"></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> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> opj_int_fix_mul_t1 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>b</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="group___t1.html#ga46ab5a09928a8d3872a6128d5aa80ca1">T1_NMSEDEC_FRACBITS</a>.</p>
<p>Referenced by <a class="el" href="group___t1.html#gada55dfa54a9324f948a3383ed95aedc5">opj_t1_encode_cblks()</a>.</p>
</div>
</div>
<a class="anchor" id="gabdf6c78f5b60afd230901e5e0c57f491"></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> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> opj_int_floordivpow2 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>b</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>Divide an integer by a power of 2 and round downwards. </p>
<dl class="section return"><dt>Returns</dt><dd>Returns a divided by 2^b </dd></dl>
<p>Referenced by <a class="el" href="group___p_i.html#ga0224e9498d03915f1e3b626791db6f10">opj_get_all_encoding_parameters()</a>, <a class="el" href="group___p_i.html#gac3e3cc4faa8e95967c06d931f2f65ccb">opj_get_encoding_parameters()</a>, <a class="el" href="group___p_i.html#ga813ec21ad21c815057f14fec5f9d9da8">opj_pi_next_cprl()</a>, <a class="el" href="group___p_i.html#gad87015c9daa0be226f4953a087fae459">opj_pi_next_pcrl()</a>, <a class="el" href="group___p_i.html#gaf9366c26ac3d63f747d954fbdf67b7a6">opj_pi_next_rpcl()</a>, and <a class="el" href="tcd_8c.html#ab661bd689857433bdc5d7a312862944d">opj_tcd_init_tile()</a>.</p>
</div>
</div>
<a class="anchor" id="gaa6a55d57af96308459f6de414227ae40"></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> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> opj_int_floorlog2 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>a</em></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>Get logarithm of an integer and round downwards. </p>
<dl class="section return"><dt>Returns</dt><dd>Returns log2(a) </dd></dl>
<p>Referenced by <a class="el" href="group___d_w_t.html#ga83dd1fea51de7b7a24a99373f2441583">opj_dwt_encode_stepsize()</a>, <a class="el" href="group___j2_k.html#ga4a6561d0899d91b38099da38814cbe86">opj_j2k_setup_encoder()</a>, <a class="el" href="group___t1.html#gad51bfd4e6b2179afe834b1bf1335f9a7">opj_t1_encode_cblk()</a>, and <a class="el" href="group___t2.html#gaf7cf1e0b8fc17c1bce5983efa853bd91">opj_t2_encode_packet()</a>.</p>
</div>
</div>
<a class="anchor" id="ga2f7d5c3934ee6be38763652b7f80ea6c"></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> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> opj_int_max </td>
<td>(</td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>b</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>Get the maximum of two integers. </p>
<dl class="section return"><dt>Returns</dt><dd>Returns a if a &gt; b else b </dd></dl>
<p>Referenced by <a class="el" href="t1__generate__luts_8c.html#a3c04138a5bfe5d72780bb7e82a18e627">main()</a>, <a class="el" href="group___p_i.html#gac3e3cc4faa8e95967c06d931f2f65ccb">opj_get_encoding_parameters()</a>, <a class="el" href="group___j2_k.html#ga73783749b012ef90f474462066140506">opj_j2k_update_rates()</a>, <a class="el" href="group___t1.html#gad51bfd4e6b2179afe834b1bf1335f9a7">opj_t1_encode_cblk()</a>, <a class="el" href="group___t2.html#gaf7cf1e0b8fc17c1bce5983efa853bd91">opj_t2_encode_packet()</a>, and <a class="el" href="tcd_8c.html#ab661bd689857433bdc5d7a312862944d">opj_tcd_init_tile()</a>.</p>
</div>
</div>
<a class="anchor" id="gaac315c40dca690742df538fcc21d4f91"></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> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> opj_int_min </td>
<td>(</td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a>&#160;</td>
<td class="paramname"><em>b</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>Get the minimum of two integers. </p>
<dl class="section return"><dt>Returns</dt><dd>Returns a if a &lt; b else b </dd></dl>
<p>Referenced by <a class="el" href="group___p_i.html#ga0224e9498d03915f1e3b626791db6f10">opj_get_all_encoding_parameters()</a>, <a class="el" href="group___p_i.html#gac3e3cc4faa8e95967c06d931f2f65ccb">opj_get_encoding_parameters()</a>, <a class="el" href="group___j2_k.html#ga73783749b012ef90f474462066140506">opj_j2k_update_rates()</a>, <a class="el" href="group___j2_k.html#ga2bc07ba46f4865ee3fcc33a36970959f">opj_j2k_write_poc_in_memory()</a>, <a class="el" href="group___t2.html#ga4d849585f336e85d77ebde58a5e0d8d1">opj_t2_read_packet_header()</a>, <a class="el" href="tcd_8c.html#ab661bd689857433bdc5d7a312862944d">opj_tcd_init_tile()</a>, <a class="el" href="group___d_w_t.html#ga6bc6a62f50111a93b04e66d6df73b697">opj_v4dwt_decode()</a>, <a class="el" href="t1__generate__luts_8c.html#a32ddb99fc08cf69c119e553833de522a">t1_init_ctxno_sc()</a>, and <a class="el" href="t1__generate__luts_8c.html#a58e60ec915f2a196265f4fcae8edf77d">t1_init_spb()</a>.</p>
</div>
</div>
<a class="anchor" id="gab9aad885f5c9bc9e39420003b2b32fe5"></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> <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> opj_uint_adds </td>
<td>(</td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>b</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>Get the saturated sum of two unsigned integers. </p>
<dl class="section return"><dt>Returns</dt><dd>Returns saturated sum of a+b </dd></dl>
<p>Referenced by <a class="el" href="group___p_i.html#ga0224e9498d03915f1e3b626791db6f10">opj_get_all_encoding_parameters()</a>, <a class="el" href="group___i_m_a_g_e.html#gaa7b8e2985cd630021497528669063b7c">opj_image_comp_header_update()</a>, and <a class="el" href="tcd_8c.html#ab661bd689857433bdc5d7a312862944d">opj_tcd_init_tile()</a>.</p>
</div>
</div>
<a class="anchor" id="gae4b2e5a7c8b8f09faacc4a895f866ea1"></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> <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> opj_uint_ceildiv </td>
<td>(</td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>b</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>Divide an integer and round upwards. </p>
<dl class="section return"><dt>Returns</dt><dd>Returns a divided by b </dd></dl>
<p>Referenced by <a class="el" href="group___i_m_a_g_e.html#gaa7b8e2985cd630021497528669063b7c">opj_image_comp_header_update()</a>, and <a class="el" href="group___j2_k.html#ga73783749b012ef90f474462066140506">opj_j2k_update_rates()</a>.</p>
</div>
</div>
<a class="anchor" id="gae592eb75f221decddec51834b6c4177d"></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> <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> opj_uint_ceildivpow2 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>b</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>Divide an integer by a power of 2 and round upwards. </p>
<dl class="section return"><dt>Returns</dt><dd>Returns a divided by 2^b </dd></dl>
<p>Referenced by <a class="el" href="group___i_m_a_g_e.html#gaa7b8e2985cd630021497528669063b7c">opj_image_comp_header_update()</a>, and <a class="el" href="group___j2_k.html#ga910546eabc5ca2b140f99f9bdf821479">opj_j2k_update_image_data()</a>.</p>
</div>
</div>
<a class="anchor" id="ga91ef25eaa56320684de5d1e3a4097823"></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> <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> opj_uint_floorlog2 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>a</em></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>Get logarithm of an integer and round downwards. </p>
<dl class="section return"><dt>Returns</dt><dd>Returns log2(a) </dd></dl>
<p>Referenced by <a class="el" href="group___t2.html#ga4d849585f336e85d77ebde58a5e0d8d1">opj_t2_read_packet_header()</a>.</p>
</div>
</div>
<a class="anchor" id="ga2c3eb35fddab83fef25256485b926fc0"></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> <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> opj_uint_max </td>
<td>(</td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>b</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>Get the maximum of two integers. </p>
<dl class="section return"><dt>Returns</dt><dd>Returns a if a &gt; b else b </dd></dl>
<p>Referenced by <a class="el" href="group___p_i.html#ga0224e9498d03915f1e3b626791db6f10">opj_get_all_encoding_parameters()</a>, <a class="el" href="group___i_m_a_g_e.html#gaa7b8e2985cd630021497528669063b7c">opj_image_comp_header_update()</a>, <a class="el" href="group___j2_k.html#gad2cb2db01790f68fc62a30654be995d8">opj_j2k_get_max_coc_size()</a>, <a class="el" href="group___j2_k.html#ga8e4508a880e23d3b6066d0f5645afbd5">opj_j2k_get_max_poc_size()</a>, <a class="el" href="group___j2_k.html#ga0efb718b748fdd02ae09ab2bc156382d">opj_j2k_get_max_toc_size()</a>, <a class="el" href="group___t2.html#ga3b26fccd1cd25cd664001272399d7680">opj_t2_decode_packets()</a>, and <a class="el" href="tcd_8c.html#ab661bd689857433bdc5d7a312862944d">opj_tcd_init_tile()</a>.</p>
</div>
</div>
<a class="anchor" id="ga06c1c4470f9765a3ed04963b0daa111a"></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> <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> opj_uint_min </td>
<td>(</td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a>&#160;</td>
<td class="paramname"><em>b</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>Get the minimum of two integers. </p>
<dl class="section return"><dt>Returns</dt><dd>Returns a if a &lt; b else b </dd></dl>
<p>Referenced by <a class="el" href="group___p_i.html#ga0224e9498d03915f1e3b626791db6f10">opj_get_all_encoding_parameters()</a>, <a class="el" href="group___p_i.html#gac3e3cc4faa8e95967c06d931f2f65ccb">opj_get_encoding_parameters()</a>, <a class="el" href="group___i_m_a_g_e.html#gaa7b8e2985cd630021497528669063b7c">opj_image_comp_header_update()</a>, <a class="el" href="group___j2_k.html#ga094ffbf4a7e4ab181717cfe32f95427b">opj_j2k_read_poc()</a>, <a class="el" href="group___p_i.html#ga813ec21ad21c815057f14fec5f9d9da8">opj_pi_next_cprl()</a>, <a class="el" href="group___p_i.html#gad87015c9daa0be226f4953a087fae459">opj_pi_next_pcrl()</a>, <a class="el" href="group___p_i.html#gaf9366c26ac3d63f747d954fbdf67b7a6">opj_pi_next_rpcl()</a>, <a class="el" href="tcd_8c.html#ab661bd689857433bdc5d7a312862944d">opj_tcd_init_tile()</a>, and <a class="el" href="group___t_c_d.html#ga18bfaa053e392a5b0ad36264b7977cd4">opj_tcd_rateallocate()</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.9.1
</small></address>
</body>
</html>