|
OpenJPEG 2.5.4
|
Implementation of operations on integers (INT). More...
Go to the source code of this file.
Functions | |
Exported functions (see also openjpeg.h) | |
| static INLINE OPJ_INT32 | opj_int_min (OPJ_INT32 a, OPJ_INT32 b) |
| Get the minimum of two integers. | |
| static INLINE OPJ_UINT32 | opj_uint_min (OPJ_UINT32 a, OPJ_UINT32 b) |
| Get the minimum of two integers. | |
| static INLINE OPJ_INT32 | opj_int_max (OPJ_INT32 a, OPJ_INT32 b) |
| Get the maximum of two integers. | |
| static INLINE OPJ_UINT32 | opj_uint_max (OPJ_UINT32 a, OPJ_UINT32 b) |
| Get the maximum of two integers. | |
| static INLINE OPJ_UINT32 | opj_uint_adds (OPJ_UINT32 a, OPJ_UINT32 b) |
| Get the saturated sum of two unsigned integers. | |
| static INLINE OPJ_UINT32 | opj_uint_subs (OPJ_UINT32 a, OPJ_UINT32 b) |
| Get the saturated difference of two unsigned integers. | |
| static INLINE OPJ_INT32 | opj_int_clamp (OPJ_INT32 a, OPJ_INT32 min, OPJ_INT32 max) |
| Clamp an integer inside an interval. | |
| static INLINE OPJ_INT64 | opj_int64_clamp (OPJ_INT64 a, OPJ_INT64 min, OPJ_INT64 max) |
| Clamp an integer inside an interval. | |
| static INLINE OPJ_INT32 | opj_int_abs (OPJ_INT32 a) |
| static INLINE OPJ_INT32 | opj_int_ceildiv (OPJ_INT32 a, OPJ_INT32 b) |
| Divide an integer and round upwards. | |
| static INLINE OPJ_UINT32 | opj_uint_ceildiv (OPJ_UINT32 a, OPJ_UINT32 b) |
| Divide an integer and round upwards. | |
| static INLINE OPJ_UINT32 | opj_uint64_ceildiv_res_uint32 (OPJ_UINT64 a, OPJ_UINT64 b) |
| Divide an integer and round upwards. | |
| static INLINE OPJ_INT32 | opj_int_ceildivpow2 (OPJ_INT32 a, OPJ_INT32 b) |
| Divide an integer by a power of 2 and round upwards. | |
| static INLINE OPJ_INT32 | opj_int64_ceildivpow2 (OPJ_INT64 a, OPJ_INT32 b) |
| Divide a 64bits integer by a power of 2 and round upwards. | |
| static INLINE OPJ_UINT32 | opj_uint_ceildivpow2 (OPJ_UINT32 a, OPJ_UINT32 b) |
| Divide an integer by a power of 2 and round upwards. | |
| static INLINE OPJ_INT32 | opj_int_floordivpow2 (OPJ_INT32 a, OPJ_INT32 b) |
| Divide an integer by a power of 2 and round downwards. | |
| static INLINE OPJ_UINT32 | opj_uint_floordivpow2 (OPJ_UINT32 a, OPJ_UINT32 b) |
| Divide an integer by a power of 2 and round downwards. | |
| static INLINE OPJ_INT32 | opj_int_floorlog2 (OPJ_INT32 a) |
| Get logarithm of an integer and round downwards. | |
| static INLINE OPJ_UINT32 | opj_uint_floorlog2 (OPJ_UINT32 a) |
| Get logarithm of an integer and round downwards. | |
| static INLINE OPJ_INT32 | opj_int_fix_mul (OPJ_INT32 a, OPJ_INT32 b) |
| Multiply two fixed-precision rational numbers. | |
| static INLINE OPJ_INT32 | opj_int_fix_mul_t1 (OPJ_INT32 a, OPJ_INT32 b) |
| static INLINE OPJ_INT32 | opj_int_add_no_overflow (OPJ_INT32 a, OPJ_INT32 b) |
| Addition two signed integers with a wrap-around behaviour. | |
| static INLINE OPJ_INT32 | opj_int_sub_no_overflow (OPJ_INT32 a, OPJ_INT32 b) |
| Subtract two signed integers with a wrap-around behaviour. | |
Implementation of operations on integers (INT).
The functions in OPJ_INTMATH.H have for goal to realize operations on integers.
Divide a 64bits integer by a power of 2 and round upwards.
References INLINE, and opj_int64_ceildivpow2().
Referenced by opj_int64_ceildivpow2(), and opj_tcd_init_tile().
Clamp an integer inside an interval.
References INLINE, max(), min(), and opj_int64_clamp().
Referenced by opj_int64_clamp(), and opj_tcd_dc_level_shift_decode().
References INLINE.
Addition two signed integers with a wrap-around behaviour.
Assumes complement-to-two signed integers.
| a | |
| b |
References INLINE.
Divide an integer by a power of 2 and round upwards.
References INLINE.
Clamp an integer inside an interval.
References INLINE, max(), min(), and opj_int_clamp().
Referenced by opj_int_clamp(), and opj_tcd_dc_level_shift_decode().
Multiply two fixed-precision rational numbers.
| a | |
| b |
References INLINE.
References INLINE, opj_int_fix_mul_t1(), and T1_NMSEDEC_FRACBITS.
Referenced by opj_int_fix_mul_t1().
Divide an integer by a power of 2 and round downwards.
References INLINE, and opj_int_floordivpow2().
Referenced by opj_int_floordivpow2(), and opj_tcd_init_tile().
Subtract two signed integers with a wrap-around behaviour.
Assumes complement-to-two signed integers.
| a | |
| b |
References INLINE.
|
static |
Divide an integer and round upwards.
References INLINE, and opj_uint64_ceildiv_res_uint32().
Referenced by opj_pi_next_cprl(), opj_pi_next_pcrl(), opj_pi_next_rpcl(), and opj_uint64_ceildiv_res_uint32().
|
static |
Get the saturated sum of two unsigned integers.
References INLINE.
|
static |
|
static |
Divide an integer by a power of 2 and round upwards.
References INLINE.
|
static |
Divide an integer by a power of 2 and round downwards.
References INLINE, and opj_uint_floordivpow2().
Referenced by opj_get_all_encoding_parameters(), opj_get_encoding_parameters(), opj_pi_next_cprl(), opj_pi_next_pcrl(), opj_pi_next_rpcl(), and opj_uint_floordivpow2().
|
static |
Get logarithm of an integer and round downwards.
References INLINE, and opj_uint_floorlog2().
Referenced by opj_t2_read_packet_header(), and opj_uint_floorlog2().
|
static |
|
static |
|
static |
Get the saturated difference of two unsigned integers.
References INLINE.