"L. Spiro Engine"
Static Public Member Functions

lsi::CJpegInt Class Reference

Implementation of operations on integers (INT). More...

#include <LSIJpegInt.h>

List of all members.

Static Public Member Functions

static LSE_INLINE LSINT32 LSE_FCALL int_min (LSINT32 _i32A, LSINT32 _i32B)
static LSE_INLINE LSINT32 LSE_FCALL int_max (LSINT32 _i32A, LSINT32 _i32B)
static LSE_INLINE LSINT32 LSE_FCALL int_clamp (LSINT32 _i32A, LSINT32 _i32Min, LSINT32 _i32Max)
static LSE_INLINE LSINT32 LSE_FCALL int_abs (LSINT32 _i32A)
static LSE_INLINE LSINT32 LSE_FCALL int_ceildiv (LSINT32 _i32A, LSINT32 _i32B)
static LSE_INLINE LSINT32 LSE_FCALL int_ceildivpow2 (LSINT32 _i32A, LSINT32 _i32B)
static LSE_INLINE LSINT32 LSE_FCALL int_floordivpow2 (LSINT32 _i32A, LSINT32 _i32B)
static LSE_INLINE LSINT32 LSE_FCALL int_floorlog2 (LSINT32 _i32A)

Detailed Description

Implementation of operations on integers (INT).

Class CJpegInt Description: Implementation of operations on integers (INT).


Member Function Documentation

LSE_INLINE LSINT32 LSE_FCALL lsi::CJpegInt::int_abs ( LSINT32  _i32A) [static]

Get the absolute value of integer.

Returns:
Returns the absolute value of integer.
LSE_INLINE LSINT32 LSE_FCALL lsi::CJpegInt::int_ceildiv ( LSINT32  _i32A,
LSINT32  _i32B 
) [static]

Divide an integer and round upwards.

Returns:
Returns _i32A divided by _i32B.
LSE_INLINE LSINT32 LSE_FCALL lsi::CJpegInt::int_ceildivpow2 ( LSINT32  _i32A,
LSINT32  _i32B 
) [static]

Divide an integer by a power of 2 and round upwards.

Returns:
Returns _i32A divided by 2^_i32B.
LSE_INLINE LSINT32 LSE_FCALL lsi::CJpegInt::int_clamp ( LSINT32  _i32A,
LSINT32  _i32Min,
LSINT32  _i32Max 
) [static]

Clamp an integer inside an interval.

Returns:
  • Returns _i32A if ( _i32Min < _i32A < _i32Max ).
  • Returns _i32Max if ( _i32A > _i32Max ).
  • Returns _i32Min if ( _i32A < _i32Min ).
LSE_INLINE LSINT32 LSE_FCALL lsi::CJpegInt::int_floordivpow2 ( LSINT32  _i32A,
LSINT32  _i32B 
) [static]

Divide an integer by a power of 2 and round downwards.

Returns:
Returns _i32A divided by 2^_i32B.
LSE_INLINE LSINT32 LSE_FCALL lsi::CJpegInt::int_floorlog2 ( LSINT32  _i32A) [static]

Get logarithm of an integer and round downwards.

Returns:
Returns log2( _i32A ).
LSE_INLINE LSINT32 LSE_FCALL lsi::CJpegInt::int_max ( LSINT32  _i32A,
LSINT32  _i32B 
) [static]

Get the maximum of two integers.

Returns:
Returns _i32A if _i32A > _i32B else _i32B.
LSE_INLINE LSINT32 LSE_FCALL lsi::CJpegInt::int_min ( LSINT32  _i32A,
LSINT32  _i32B 
) [static]

Get the minimum of two integers.

Returns:
Returns _i32A if _i32A < _i32B else _i32B.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator