openjpeg/doxygen/opj__intmath_8h.html

1057 lines
69 KiB
HTML
Raw Normal View History

2022-05-13 20:21:13 +02:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2015-07-10 18:06:19 +02:00
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
2022-05-13 20:21:13 +02:00
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
2015-07-10 18:06:19 +02:00
<title>OpenJPEG: opj_intmath.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
2016-09-29 22:38:29 +02:00
<td id="projectalign" style="padding-left: 0.5em;">
2015-07-10 18:06:19 +02:00
<div id="projectname">OpenJPEG
2022-05-13 20:21:13 +02:00
&#160;<span id="projectnumber">2.5.0</span>
2015-07-10 18:06:19 +02:00
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
2022-05-13 20:21:13 +02:00
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
2015-07-10 18:06:19 +02:00
<div id="nav-path" class="navpath">
<ul>
2020-12-28 22:12:25 +01:00
<li class="navelem"><a class="el" href="dir_43e0a1f539e00dcfa1a6bc4d4fee4fc2.html">home</a></li><li class="navelem"><a class="el" href="dir_cb9b2b419d92b64f7cee83d8faf7a4ab.html">even</a></li><li class="navelem"><a class="el" href="dir_f75d9a0165d6564a1e04793ef847d41d.html">openjpeg</a></li><li class="navelem"><a class="el" href="dir_5f588d7ea139c1aae751d03c13a16064.html">openjpeg</a></li><li class="navelem"><a class="el" href="dir_378f732e812ef6cbaaae22e96a4fa79f.html">src</a></li><li class="navelem"><a class="el" href="dir_19dcb5713315405a27e1bde75a489a4c.html">lib</a></li><li class="navelem"><a class="el" href="dir_54e5bc4f0640fea590afaf04f4d9c88d.html">openjp2</a></li> </ul>
2015-07-10 18:06:19 +02:00
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">opj_intmath.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Implementation of operations on integers (INT)
<a href="#details">More...</a></p>
<p><a href="opj__intmath_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Exported functions (see also openjpeg.h)</div></td></tr>
2022-05-13 20:21:13 +02:00
<tr class="memitem:aac315c40dca690742df538fcc21d4f91"><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="opj__intmath_8h.html#aac315c40dca690742df538fcc21d4f91">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:aac315c40dca690742df538fcc21d4f91"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the minimum of two integers. <a href="opj__intmath_8h.html#aac315c40dca690742df538fcc21d4f91">More...</a><br /></td></tr>
<tr class="separator:aac315c40dca690742df538fcc21d4f91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06c1c4470f9765a3ed04963b0daa111a"><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="opj__intmath_8h.html#a06c1c4470f9765a3ed04963b0daa111a">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:a06c1c4470f9765a3ed04963b0daa111a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the minimum of two integers. <a href="opj__intmath_8h.html#a06c1c4470f9765a3ed04963b0daa111a">More...</a><br /></td></tr>
<tr class="separator:a06c1c4470f9765a3ed04963b0daa111a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f7d5c3934ee6be38763652b7f80ea6c"><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="opj__intmath_8h.html#a2f7d5c3934ee6be38763652b7f80ea6c">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:a2f7d5c3934ee6be38763652b7f80ea6c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the maximum of two integers. <a href="opj__intmath_8h.html#a2f7d5c3934ee6be38763652b7f80ea6c">More...</a><br /></td></tr>
<tr class="separator:a2f7d5c3934ee6be38763652b7f80ea6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c3eb35fddab83fef25256485b926fc0"><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="opj__intmath_8h.html#a2c3eb35fddab83fef25256485b926fc0">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:a2c3eb35fddab83fef25256485b926fc0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the maximum of two integers. <a href="opj__intmath_8h.html#a2c3eb35fddab83fef25256485b926fc0">More...</a><br /></td></tr>
<tr class="separator:a2c3eb35fddab83fef25256485b926fc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9aad885f5c9bc9e39420003b2b32fe5"><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="opj__intmath_8h.html#ab9aad885f5c9bc9e39420003b2b32fe5">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:ab9aad885f5c9bc9e39420003b2b32fe5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the saturated sum of two unsigned integers. <a href="opj__intmath_8h.html#ab9aad885f5c9bc9e39420003b2b32fe5">More...</a><br /></td></tr>
<tr class="separator:ab9aad885f5c9bc9e39420003b2b32fe5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef70413f6c794150eec1fc019b4de2d4"><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="opj__intmath_8h.html#aef70413f6c794150eec1fc019b4de2d4">opj_uint_subs</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:aef70413f6c794150eec1fc019b4de2d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the saturated difference of two unsigned integers. <a href="opj__intmath_8h.html#aef70413f6c794150eec1fc019b4de2d4">More...</a><br /></td></tr>
<tr class="separator:aef70413f6c794150eec1fc019b4de2d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefb4572107a9aea093be96d966869a0d"><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="opj__intmath_8h.html#aefb4572107a9aea093be96d966869a0d">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:aefb4572107a9aea093be96d966869a0d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clamp an integer inside an interval. <a href="opj__intmath_8h.html#aefb4572107a9aea093be96d966869a0d">More...</a><br /></td></tr>
<tr class="separator:aefb4572107a9aea093be96d966869a0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20a9a9e2aee9a99897131989b4a9e7e9"><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#a871a81193cb4972db35948edd67360bd">OPJ_INT64</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="opj__intmath_8h.html#a20a9a9e2aee9a99897131989b4a9e7e9">opj_int64_clamp</a> (<a class="el" href="openjpeg_8h.html#a871a81193cb4972db35948edd67360bd">OPJ_INT64</a> a, <a class="el" href="openjpeg_8h.html#a871a81193cb4972db35948edd67360bd">OPJ_INT64</a> <a class="el" href="index__manager_8c.html#ac1d9c713f42b405f9e353ec99b880755">min</a>, <a class="el" href="openjpeg_8h.html#a871a81193cb4972db35948edd67360bd">OPJ_INT64</a> <a class="el" href="index__manager_8c.html#aecefdbf80129b12f2ef66ccfbedbb7fe">max</a>)</td></tr>
<tr class="memdesc:a20a9a9e2aee9a99897131989b4a9e7e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clamp an integer inside an interval. <a href="opj__intmath_8h.html#a20a9a9e2aee9a99897131989b4a9e7e9">More...</a><br /></td></tr>
<tr class="separator:a20a9a9e2aee9a99897131989b4a9e7e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acaef279a9031adbd9319990646328a01"><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="opj__intmath_8h.html#acaef279a9031adbd9319990646328a01">opj_int_abs</a> (<a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a)</td></tr>
<tr class="separator:acaef279a9031adbd9319990646328a01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab00a7c3619b5af7595961047baff120e"><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="opj__intmath_8h.html#ab00a7c3619b5af7595961047baff120e">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:ab00a7c3619b5af7595961047baff120e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Divide an integer and round upwards. <a href="opj__intmath_8h.html#ab00a7c3619b5af7595961047baff120e">More...</a><br /></td></tr>
<tr class="separator:ab00a7c3619b5af7595961047baff120e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4b2e5a7c8b8f09faacc4a895f866ea1"><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="opj__intmath_8h.html#ae4b2e5a7c8b8f09faacc4a895f866ea1">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:ae4b2e5a7c8b8f09faacc4a895f866ea1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Divide an integer and round upwards. <a href="opj__intmath_8h.html#ae4b2e5a7c8b8f09faacc4a895f866ea1">More...</a><br /></td></tr>
<tr class="separator:ae4b2e5a7c8b8f09faacc4a895f866ea1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa1e441dec325d33ccd86aa7ca8ccfdc"><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="opj__intmath_8h.html#aaa1e441dec325d33ccd86aa7ca8ccfdc">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:aaa1e441dec325d33ccd86aa7ca8ccfdc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Divide an integer by a power of 2 and round upwards. <a href="opj__intmath_8h.html#aaa1e441dec325d33ccd86aa7ca8ccfdc">More...</a><br /></td></tr>
<tr class="separator:aaa1e441dec325d33ccd86aa7ca8ccfdc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6881e82a881556059d14d265a8d0aa25"><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="opj__intmath_8h.html#a6881e82a881556059d14d265a8d0aa25">opj_int64_ceildivpow2</a> (<a class="el" href="openjpeg_8h.html#a871a81193cb4972db35948edd67360bd">OPJ_INT64</a> a, <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> b)</td></tr>
<tr class="memdesc:a6881e82a881556059d14d265a8d0aa25"><td class="mdescLeft">&#160;</td><td class="mdescRight">Divide a 64bits integer by a power of 2 and round upwards. <a href="opj__intmath_8h.html#a6881e82a881556059d14d265a8d0aa25">More...</a><br /></td></tr>
<tr class="separator:a6881e82a881556059d14d265a8d0aa25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae592eb75f221decddec51834b6c4177d"><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="opj__intmath_8h.html#ae592eb75f221decddec51834b6c4177d">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:ae592eb75f221decddec51834b6c4177d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Divide an integer by a power of 2 and round upwards. <a href="opj__intmath_8h.html#ae592eb75f221decddec51834b6c4177d">More...</a><br /></td></tr>
<tr class="separator:ae592eb75f221decddec51834b6c4177d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdf6c78f5b60afd230901e5e0c57f491"><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="opj__intmath_8h.html#abdf6c78f5b60afd230901e5e0c57f491">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:abdf6c78f5b60afd230901e5e0c57f491"><td class="mdescLeft">&#160;</td><td class="mdescRight">Divide an integer by a power of 2 and round downwards. <a href="opj__intmath_8h.html#abdf6c78f5b60afd230901e5e0c57f491">More...</a><br /></td></tr>
<tr class="separator:abdf6c78f5b60afd230901e5e0c57f491"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6972ea9bd03fb83a3421e2578fa486f1"><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="opj__intmath_8h.html#a6972ea9bd03fb83a3421e2578fa486f1">opj_uint_floordivpow2</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:a6972ea9bd03fb83a3421e2578fa486f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Divide an integer by a power of 2 and round downwards. <a href="opj__intmath_8h.html#a6972ea9bd03fb83a3421e2578fa486f1">More...</a><br /></td></tr>
<tr class="separator:a6972ea9bd03fb83a3421e2578fa486f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6a55d57af96308459f6de414227ae40"><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="opj__intmath_8h.html#aa6a55d57af96308459f6de414227ae40">opj_int_floorlog2</a> (<a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a)</td></tr>
<tr class="memdesc:aa6a55d57af96308459f6de414227ae40"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get logarithm of an integer and round downwards. <a href="opj__intmath_8h.html#aa6a55d57af96308459f6de414227ae40">More...</a><br /></td></tr>
<tr class="separator:aa6a55d57af96308459f6de414227ae40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91ef25eaa56320684de5d1e3a4097823"><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="opj__intmath_8h.html#a91ef25eaa56320684de5d1e3a4097823">opj_uint_floorlog2</a> (<a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> a)</td></tr>
<tr class="memdesc:a91ef25eaa56320684de5d1e3a4097823"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get logarithm of an integer and round downwards. <a href="opj__intmath_8h.html#a91ef25eaa56320684de5d1e3a4097823">More...</a><br /></td></tr>
<tr class="separator:a91ef25eaa56320684de5d1e3a4097823"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2130d6482126a20e6680f82b254857b"><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="opj__intmath_8h.html#aa2130d6482126a20e6680f82b254857b">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:aa2130d6482126a20e6680f82b254857b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Multiply two fixed-precision rational numbers. <a href="opj__intmath_8h.html#aa2130d6482126a20e6680f82b254857b">More...</a><br /></td></tr>
<tr class="separator:aa2130d6482126a20e6680f82b254857b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ce489e764483d741e8953475341ba14"><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="opj__intmath_8h.html#a5ce489e764483d741e8953475341ba14">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:a5ce489e764483d741e8953475341ba14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a384853368e8aae9b2b5130746bed0566"><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="opj__intmath_8h.html#a384853368e8aae9b2b5130746bed0566">opj_int_add_no_overflow</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:a384853368e8aae9b2b5130746bed0566"><td class="mdescLeft">&#160;</td><td class="mdescRight">Addition two signed integers with a wrap-around behaviour. <a href="opj__intmath_8h.html#a384853368e8aae9b2b5130746bed0566">More...</a><br /></td></tr>
<tr class="separator:a384853368e8aae9b2b5130746bed0566"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f7a6ab779e13fa2116b4b820173190d"><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="opj__intmath_8h.html#a4f7a6ab779e13fa2116b4b820173190d">opj_int_sub_no_overflow</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:a4f7a6ab779e13fa2116b4b820173190d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Subtract two signed integers with a wrap-around behaviour. <a href="opj__intmath_8h.html#a4f7a6ab779e13fa2116b4b820173190d">More...</a><br /></td></tr>
<tr class="separator:a4f7a6ab779e13fa2116b4b820173190d"><td class="memSeparator" colspan="2">&#160;</td></tr>
2015-07-10 18:06:19 +02:00
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Implementation of operations on integers (INT) </p>
2022-05-13 20:21:13 +02:00
<p>The functions in <a class="el" href="opj__intmath_8h.html" title="Implementation of operations on integers (INT)">OPJ_INTMATH.H</a> have for goal to realize operations on integers. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a6881e82a881556059d14d265a8d0aa25"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6881e82a881556059d14d265a8d0aa25">&#9670;&nbsp;</a></span>opj_int64_ceildivpow2()</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> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> opj_int64_ceildivpow2 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a871a81193cb4972db35948edd67360bd">OPJ_INT64</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 a 64bits 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 class="reference">Referenced by <a class="el" href="tcd_8c.html#a0e4d491f4d95e89b9f113664431faffc">opj_tcd_init_tile()</a>.</p>
</div>
</div>
<a id="a20a9a9e2aee9a99897131989b4a9e7e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20a9a9e2aee9a99897131989b4a9e7e9">&#9670;&nbsp;</a></span>opj_int64_clamp()</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> <a class="el" href="openjpeg_8h.html#a871a81193cb4972db35948edd67360bd">OPJ_INT64</a> opj_int64_clamp </td>
<td>(</td>
<td class="paramtype"><a class="el" href="openjpeg_8h.html#a871a81193cb4972db35948edd67360bd">OPJ_INT64</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#a871a81193cb4972db35948edd67360bd">OPJ_INT64</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#a871a81193cb4972db35948edd67360bd">OPJ_INT64</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 class="reference">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 class="reference">Referenced by <a class="el" href="tcd_8c.html#a9dc572b0982c7d7db4f3c53d8ccfdce6">opj_tcd_dc_level_shift_decode()</a>.</p>
</div>
</div>
<a id="acaef279a9031adbd9319990646328a01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acaef279a9031adbd9319990646328a01">&#9670;&nbsp;</a></span>opj_int_abs()</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> <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 class="reference">Referenced by <a class="el" href="dwt_8c.html#a92372f690a06c336343d9b1936356fa0">opj_dwt_encode_step1_combined()</a>.</p>
</div>
</div>
<a id="a384853368e8aae9b2b5130746bed0566"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a384853368e8aae9b2b5130746bed0566">&#9670;&nbsp;</a></span>opj_int_add_no_overflow()</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> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> opj_int_add_no_overflow </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>Addition two signed integers with a wrap-around behaviour. </p>
<p>Assumes complement-to-two signed integers. </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 class="reference">Referenced by <a class="el" href="dwt_8c.html#a6a4d5e05c76cd5c053c352a279efe3fe">opj_dwt_decode_partial_1()</a>, <a class="el" href="dwt_8c.html#a8b5d49615ec89ef1726ca79aa44fecec">opj_dwt_decode_partial_1_parallel()</a>, <a class="el" href="dwt_8c.html#af9334a52e412121d2c84f8a70425bd79">opj_idwt3_v_cas0()</a>, <a class="el" href="dwt_8c.html#aa1e1d65844d59fd0182bc2c5355144f5">opj_idwt53_h_cas0()</a>, and <a class="el" href="dwt_8c.html#aa1a47075793852c4d73935ab6c4305d1">opj_idwt53_h_cas1()</a>.</p>
</div>
</div>
<a id="ab00a7c3619b5af7595961047baff120e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab00a7c3619b5af7595961047baff120e">&#9670;&nbsp;</a></span>opj_int_ceildiv()</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> <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 class="reference">Referenced by <a class="el" href="j2k_8c.html#a137ed861d6b253613d162498afe49159">opj_get_tile_dimensions()</a>, <a class="el" href="j2k_8h.html#a60371d3609364bf033e8c244599abf6f">opj_j2k_get_tile()</a>, <a class="el" href="j2k_8c.html#aa91c21b73fc17028a77ba44d3987f17a">opj_j2k_read_siz()</a>, <a class="el" href="j2k_8h.html#ab4cb6916a495309faab2dd7cb587ccb8">opj_j2k_set_decode_area()</a>, <a class="el" href="j2k_8h.html#a4a6561d0899d91b38099da38814cbe86">opj_j2k_setup_encoder()</a>, <a class="el" href="j2k_8c.html#a2759cc4cb3d0819cfa0625ffc698493a">opj_j2k_update_image_dimensions()</a>, and <a class="el" href="tcd_8c.html#a0e4d491f4d95e89b9f113664431faffc">opj_tcd_init_tile()</a>.</p>
</div>
</div>
<a id="aaa1e441dec325d33ccd86aa7ca8ccfdc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaa1e441dec325d33ccd86aa7ca8ccfdc">&#9670;&nbsp;</a></span>opj_int_ceildivpow2()</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> <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 class="reference">Referenced by <a class="el" href="bench__dwt_8c.html#a08e91e8e4298f498913436a2006496b0">init_tilec()</a>, <a class="el" href="j2k_8h.html#a60371d3609364bf033e8c244599abf6f">opj_j2k_get_tile()</a>, <a class="el" href="j2k_8c.html#a2759cc4cb3d0819cfa0625ffc698493a">opj_j2k_update_image_dimensions()</a>, and <a class="el" href="tcd_8c.html#a0e4d491f4d95e89b9f113664431faffc">opj_tcd_init_tile()</a>.</p>
</div>
</div>
<a id="aefb4572107a9aea093be96d966869a0d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aefb4572107a9aea093be96d966869a0d">&#9670;&nbsp;</a></span>opj_int_clamp()</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> <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 class="reference">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 class="reference">Referenced by <a class="el" href="tcd_8c.html#a9dc572b0982c7d7db4f3c53d8ccfdce6">opj_tcd_dc_level_shift_decode()</a>.</p>
</div>
</div>
<a id="aa2130d6482126a20e6680f82b254857b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa2130d6482126a20e6680f82b254857b">&#9670;&nbsp;</a></span>opj_int_fix_mul()</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> <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 class="reference">Referenced by <a class="el" href="mct_8h.html#a999711520bb2752ac63dcce4bb83f3a3">opj_mct_encode_custom()</a>.</p>
</div>
</div>
<a id="a5ce489e764483d741e8953475341ba14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ce489e764483d741e8953475341ba14">&#9670;&nbsp;</a></span>opj_int_fix_mul_t1()</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> <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 class="reference">References <a class="el" href="t1_8h.html#a46ab5a09928a8d3872a6128d5aa80ca1">T1_NMSEDEC_FRACBITS</a>.</p>
</div>
</div>
<a id="abdf6c78f5b60afd230901e5e0c57f491"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abdf6c78f5b60afd230901e5e0c57f491">&#9670;&nbsp;</a></span>opj_int_floordivpow2()</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> <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 class="reference">Referenced by <a class="el" href="tcd_8c.html#a0e4d491f4d95e89b9f113664431faffc">opj_tcd_init_tile()</a>.</p>
</div>
</div>
<a id="aa6a55d57af96308459f6de414227ae40"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa6a55d57af96308459f6de414227ae40">&#9670;&nbsp;</a></span>opj_int_floorlog2()</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> <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 class="reference">Referenced by <a class="el" href="dwt_8c.html#ab25c1a377c367a7246c24179477cd956">opj_dwt_encode_stepsize()</a>, <a class="el" href="j2k_8h.html#a4a6561d0899d91b38099da38814cbe86">opj_j2k_setup_encoder()</a>, <a class="el" href="t1_8c.html#a0066492bf8c292bf235c1c754a3272bf">opj_t1_encode_cblk()</a>, and <a class="el" href="t2_8c.html#af46b03251519f1cba8bb01da5abc2169">opj_t2_encode_packet()</a>.</p>
</div>
</div>
<a id="a2f7d5c3934ee6be38763652b7f80ea6c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f7d5c3934ee6be38763652b7f80ea6c">&#9670;&nbsp;</a></span>opj_int_max()</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> <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 class="reference">Referenced by <a class="el" href="t1__generate__luts_8c.html#a3c04138a5bfe5d72780bb7e82a18e627">main()</a>, <a class="el" href="j2k_8c.html#ae73d42871d377e6fa71701f85a017bd8">opj_j2k_update_rates()</a>, <a class="el" href="t1_8c.html#a0066492bf8c292bf235c1c754a3272bf">opj_t1_encode_cblk()</a>, <a class="el" href="t2_8c.html#af46b03251519f1cba8bb01da5abc2169">opj_t2_encode_packet()</a>, and <a class="el" href="tcd_8c.html#a0e4d491f4d95e89b9f113664431faffc">opj_tcd_init_tile()</a>.</p>
</div>
</div>
<a id="aac315c40dca690742df538fcc21d4f91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac315c40dca690742df538fcc21d4f91">&#9670;&nbsp;</a></span>opj_int_min()</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> <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 class="reference">Referenced by <a class="el" href="dwt_8c.html#acca3542ea2b26665c497eeceece2698b">opj_dwt_encode_1_real()</a>, <a class="el" href="dwt_8c.html#a73fa649f429612dccea5206f625bd806">opj_dwt_encode_and_deinterleave_v_real()</a>, <a class="el" href="j2k_8c.html#ae73d42871d377e6fa71701f85a017bd8">opj_j2k_update_rates()</a>, <a class="el" href="j2k_8c.html#a6578bb0829fb3fa9609a5cd91d2ae451">opj_j2k_write_poc_in_memory()</a>, <a class="el" href="t2_8c.html#afd30efdfea1361431cf3c8ad04d48458">opj_t2_read_packet_header()</a>, <a class="el" href="tcd_8c.html#a0e4d491f4d95e89b9f113664431faffc">opj_tcd_init_tile()</a>, <a class="el" href="dwt_8c.html#a179675970c058b6143e3b1d8c935b960">opj_v8dwt_decode()</a>, <a class="el" href="t1__generate__luts_8c.html#a0d8d0c9e9b5ab24f4b8b0cce62369bd7">t1_init_ctxno_sc()</a>, and <a class="el" href="t1__generate__luts_8c.html#af6d2f9d77ce41b6cac5b5849ed854fb6">t1_init_spb()</a>.</p>
</div>
</div>
<a id="a4f7a6ab779e13fa2116b4b820173190d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f7a6ab779e13fa2116b4b820173190d">&#9670;&nbsp;</a></span>opj_int_sub_no_overflow()</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> <a class="el" href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> opj_int_sub_no_overflow </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>Subtract two signed integers with a wrap-around behaviour. </p>
<p>Assumes complement-to-two signed integers. </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 class="reference">Referenced by <a class="el" href="dwt_8c.html#a6a4d5e05c76cd5c053c352a279efe3fe">opj_dwt_decode_partial_1()</a>, <a class="el" href="dwt_8c.html#a8b5d49615ec89ef1726ca79aa44fecec">opj_dwt_decode_partial_1_parallel()</a>, and <a class="el" href="dwt_8c.html#af9334a52e412121d2c84f8a70425bd79">opj_idwt3_v_cas0()</a>.</p>
</div>
</div>
<a id="ab9aad885f5c9bc9e39420003b2b32fe5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9aad885f5c9bc9e39420003b2b32fe5">&#9670;&nbsp;</a></span>opj_uint_adds()</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> <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 class="reference">Referenced by <a class="el" href="dwt_8c.html#a53029ae915e8e9763da64cb55b31b437">opj_dwt_segment_grow()</a>, <a class="el" href="pi_8c.html#a0019984757595c6ad4df22b104f95fa6">opj_get_all_encoding_parameters()</a>, <a class="el" href="pi_8c.html#a938d362cf18f07cd768385f7875a18d9">opj_get_encoding_parameters()</a>, <a class="el" href="image_8h.html#aa7b8e2985cd630021497528669063b7c">opj_image_comp_header_update()</a>, <a class="el" href="j2k_8c.html#aa91c21b73fc17028a77ba44d3987f17a">opj_j2k_read_siz()</a>, <a class="el" href="tcd_8c.html#a0e4d491f4d95e89b9f113664431faffc">opj_tcd_init_tile()</a>, and <a class="el" href="tcd_8h.html#ad98baebcb0d551980ef28b692803c1a0">opj_tcd_is_subband_area_of_interest()</a>.</p>
</div>
</div>
<a id="ae4b2e5a7c8b8f09faacc4a895f866ea1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4b2e5a7c8b8f09faacc4a895f866ea1">&#9670;&nbsp;</a></span>opj_uint_ceildiv()</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> <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 class="reference">Referenced by <a class="el" href="pi_8c.html#a0019984757595c6ad4df22b104f95fa6">opj_get_all_encoding_parameters()</a>, <a class="el" href="pi_8c.html#a938d362cf18f07cd768385f7875a18d9">opj_get_encoding_parameters()</a>, <a class="el" href="image_8h.html#aa7b8e2985cd630021497528669063b7c">opj_image_comp_header_update()</a>, <a class="el" href="j2k_8c.html#a22e755751567764e1ae55e09b04a5934">opj_j2k_get_specific_header_sizes()</a>, <a class="el" href="j2k_8c.html#ae73d42871d377e6fa71701f85a017bd8">opj_j2k_update_rates()</a>, <a class="el" href="pi_8c.html#ae9c13dff4b68aeadae3bc08d7d42ac64">opj_pi_next_cprl()</a>, <a class="el" href="pi_8c.html#a1cd070fd2265de3eac5acbfbea53c6b2">opj_pi_next_pcrl()</a>, <a class="el" href="pi_8c.html#a48f92b41cb5fcc614bfcc8d76a9a0890">opj_pi_next_rpcl()</a>, <a class="el" href="sparse__array_8h.html#a41953de4fab74677337c2597a67c9843">opj_sparse_array_int32_create()</a>, <a class="el" href="tcd_8h.html#ad5a64bbb748b2c76bd41ea66715fa897">opj_tcd_decode_tile()</a>, <a class="el" href="tcd_8h.html#ad98baebcb0d551980ef28b692803c1a0">opj_tcd_is_subband_area_of_interest()</a>, and <a class="el" href="tcd_8c.html#a751412dec0df96c8595e1276f19e7aa2">opj_tcd_is_whole_tilecomp_decoding()</a>.</p>
</div>
</div>
<a id="ae592eb75f221decddec51834b6c4177d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae592eb75f221decddec51834b6c4177d">&#9670;&nbsp;</a></span>opj_uint_ceildivpow2()</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> <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 class="reference">Referenced by <a class="el" href="dwt_8c.html#a80d6e09d9efb0ed5832601fe356ad0f6">opj_dwt_get_band_coordinates()</a>, <a class="el" href="pi_8c.html#a0019984757595c6ad4df22b104f95fa6">opj_get_all_encoding_parameters()</a>, <a class="el" href="pi_8c.html#a938d362cf18f07cd768385f7875a18d9">opj_get_encoding_parameters()</a>, <a class="el" href="image_8h.html#aa7b8e2985cd630021497528669063b7c">opj_image_comp_header_update()</a>, <a class="el" href="j2k_8c.html#a8e1a7d063d261020d4d8984cb2320971">opj_j2k_update_image_data()</a>, <a class="el" href="tcd_8h.html#ad5a64bbb748b2c76bd41ea66715fa897">opj_tcd_decode_tile()</a>, and <a class="el" href="tcd_8h.html#ad98baebcb0d551980ef28b692803c1a0">opj_tcd_is_subband_area_of_interest()</a>.</p>
</div>
</div>
<a id="a6972ea9bd03fb83a3421e2578fa486f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6972ea9bd03fb83a3421e2578fa486f1">&#9670;&nbsp;</a></span>opj_uint_floordivpow2()</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> <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> opj_uint_floordivpow2 </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 downwards. </p>
<dl class="section return"><dt>Returns</dt><dd>Returns a divided by 2^b </dd></dl>
<p class="reference">Referenced by <a class="el" href="pi_8c.html#a0019984757595c6ad4df22b104f95fa6">opj_get_all_encoding_parameters()</a>, <a class="el" href="pi_8c.html#a938d362cf18f07cd768385f7875a18d9">opj_get_encoding_parameters()</a>, <a class="el" href="pi_8c.html#ae9c13dff4b68aeadae3bc08d7d42ac64">opj_pi_next_cprl()</a>, <a class="el" href="pi_8c.html#a1cd070fd2265de3eac5acbfbea53c6b2">opj_pi_next_pcrl()</a>, and <a class="el" href="pi_8c.html#a48f92b41cb5fcc614bfcc8d76a9a0890">opj_pi_next_rpcl()</a>.</p>
</div>
</div>
<a id="a91ef25eaa56320684de5d1e3a4097823"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91ef25eaa56320684de5d1e3a4097823">&#9670;&nbsp;</a></span>opj_uint_floorlog2()</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> <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 class="reference">Referenced by <a class="el" href="t2_8c.html#afd30efdfea1361431cf3c8ad04d48458">opj_t2_read_packet_header()</a>.</p>
</div>
</div>
<a id="a2c3eb35fddab83fef25256485b926fc0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c3eb35fddab83fef25256485b926fc0">&#9670;&nbsp;</a></span>opj_uint_max()</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> <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 class="reference">Referenced by <a class="el" href="dwt_8c.html#a75cd080404aadce6662457dec7cc9d21">opj_dwt_decode_partial_97()</a>, <a class="el" href="dwt_8c.html#a74b827f7914de05bf5bfc52894894803">opj_dwt_decode_partial_tile()</a>, <a class="el" href="dwt_8c.html#af833f69ca2dd4480b97b2afd7ea0322b">opj_dwt_decode_tile_97()</a>, <a class="el" href="pi_8c.html#a0019984757595c6ad4df22b104f95fa6">opj_get_all_encoding_parameters()</a>, <a class="el" href="pi_8c.html#a938d362cf18f07cd768385f7875a18d9">opj_get_encoding_parameters()</a>, <a class="el" href="image_8h.html#aa7b8e2985cd630021497528669063b7c">opj_image_comp_header_update()</a>, <a class="el" href="j2k_8c.html#a04ea16ab96380d332954db0118303b37">opj_j2k_get_max_coc_size()</a>, <a class="el" href="j2k_8c.html#aeb736e59c5e1c7fe4da41cf2c0ac5fde">opj_j2k_get_max_poc_size()</a>, <a class="el" href="j2k_8c.html#ad7d565026d9f109a8cb8516133c2d40b">opj_j2k_get_max_toc_size()</a>, <a class="el" href="j2k_8c.html#a22e755751567764e1ae55e09b04a5934">opj_j2k_get_specific_header_sizes()</a>, <a class="el" href="t2_8h.html#a08fffa34be41f4811d8bd99e9364de2e">opj_t2_decode_packets()</a>, <a class="el" href="tcd_8h.html#ad5a64bbb748b2c76bd41ea66715fa897">opj_tcd_decode_tile()</a>, <a class="el" href="tcd_8c.html#a0e4d491f4d95e89b9f113664431faffc">opj_tcd_init_tile()</a>, <a class="el" href="tcd_8h.html#ad98baebcb0d551980ef28b692803c1a0">opj_tcd_is_subband_area_of_interest()</a>, and <a class="el" href="tcd_8c.html#a751412dec0df96c8595e1276f19e7aa2">opj_tcd_is_whole_tilecomp_decoding()</a>.</p>
</div>
</div>
<a id="a06c1c4470f9765a3ed04963b0daa111a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a06c1c4470f9765a3ed04963b0daa111a">&#9670;&nbsp;</a></span>opj_uint_min()</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> <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 class="reference">Referenced by <a class="el" href="dwt_8c.html#a75cd080404aadce6662457dec7cc9d21">opj_dwt_decode_partial_97()</a>, <a class="el" href="dwt_8c.html#a74b827f7914de05bf5bfc52894894803">opj_dwt_decode_partial_tile()</a>, <a class="el" href="dwt_8c.html#a92372f690a06c336343d9b1936356fa0">opj_dwt_encode_step1_combined()</a>, <a class="el" href="dwt_8c.html#acd6ef5a5fbd498597c0fff4f529fed81">opj_dwt_encode_step2()</a>, <a class="el" href="dwt_8c.html#a57c042791753ac46c7bb073abcc245ba">opj_dwt_init_sparse_array()</a>, <a class="el" href="dwt_8c.html#a53029ae915e8e9763da64cb55b31b437">opj_dwt_segment_grow()</a>, <a class="el" href="pi_8c.html#a0019984757595c6ad4df22b104f95fa6">opj_get_all_encoding_parameters()</a>, <a class="el" href="pi_8c.html#a938d362cf18f07cd768385f7875a18d9">opj_get_encoding_parameters()</a>, <a class="el" href="image_8h.html#aa7b8e2985cd630021497528669063b7c">opj_image_comp_header_update()</a>, <a class="el" href="j2k_8c.html#a3e22494d687c124eeeb079cc0b10edd1">opj_j2k_check_poc_val()</a>, <a class="el" href="j2k_8c.html#a094ffbf4a7e4ab181717cfe32f95427b">opj_j2k_read_poc()</a>, <a class="el" href="j2k_8h.html#a4a6561d0899d91b38099da38814cbe86">opj_j2k_setup_encoder()</a>, <a class="el" href="pi_8c.html#ae9c13dff4b68aeadae3bc08d7d42ac64">opj_pi_next_cprl()</a>, <a class="el" href="pi_8c.html#a1cd070fd2265de3eac5acbfbea53c6b2">opj_pi_next_pcrl()</a>, <a class="el" href="pi_8c.html#a48f92b41cb5fcc614bfcc8d76a9a0890">opj_pi_next_rpcl()</a>, <a class="el" href="pi_8c.html#aebe324958e7e0e3bf354f76fed3f9c54">opj_pi_update_decode_poc()</a>, <a class="el" href="sparse__array_8c.html#a175c52e28cac6cad5ccdc24200e67a60">opj_sparse_array_int32_read_or_write()</a>, <a class="el" href="tcd_8h.html#ad5a64bbb748b2c76bd41ea66715fa897">opj_tcd_decode_tile()</a>, <a class="el" href="tcd_8c.html#a0e4d491f4d95e89b9f113664431faffc">opj_tcd_init_tile()</a>, <a class="el" href="tcd_8h.html#ad98baebcb0d551980ef28b692803c1a0">opj_tcd_is_subband_area_of_interest()</a>, <a class="el" href="tcd_8c.html#a751412dec0df96c8595e1276f19e7aa2">opj_tcd_is_whole_tilecomp_decoding()</a>, <a class="el" href="tcd_8h.html#a15fc40d9b891d32df8ec516473d9f15e">opj_tcd_rateallocate()</a>, <a class="el" href="dwt_8c.html#a92f849fd1b77cf5754549f3f40e99c11">opj_v8dwt_decode_step2()</a>, and <a class="el" href="dwt_8c.html#a5ddfcdcfa209297cd97a4921bd308a70">opj_v8dwt_encode_step2()</a>.</p>
</div>
</div>
<a id="aef70413f6c794150eec1fc019b4de2d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef70413f6c794150eec1fc019b4de2d4">&#9670;&nbsp;</a></span>opj_uint_subs()</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> <a class="el" href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> opj_uint_subs </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 difference of two unsigned integers. </p>
<dl class="section return"><dt>Returns</dt><dd>Returns saturated sum of a-b </dd></dl>
<p class="reference">Referenced by <a class="el" href="dwt_8c.html#a75cd080404aadce6662457dec7cc9d21">opj_dwt_decode_partial_97()</a>, <a class="el" href="dwt_8c.html#a74b827f7914de05bf5bfc52894894803">opj_dwt_decode_partial_tile()</a>, and <a class="el" href="dwt_8c.html#a53029ae915e8e9763da64cb55b31b437">opj_dwt_segment_grow()</a>.</p>
</div>
</div>
</div><!-- contents -->
2015-07-10 18:06:19 +02:00
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
2022-05-13 20:21:13 +02:00
</a> 1.8.17
2015-07-10 18:06:19 +02:00
</small></address>
</body>
</html>