Static Public Member Functions | |
static unsigned long | maxval (const int mv_bits, const unsigned long mv_pos=1) |
calculate maximum value which could be stored in the specified number of bits | |
static unsigned int | tobits (unsigned long tb_value, const unsigned long tb_pos=1) |
calculate number of bits which are necessary to store the specified value | |
static unsigned int | rangeToBits (double minvalue, double maxvalue) |
calculate number of bits which are necessary to store the specified value range | |
static EP_Representation | determineRepresentation (double minvalue, double maxvalue) |
determine integer representation which is necessary to store values in the specified range | |
static void | setDebugLevel (const int level) |
set the debug level to the specified value | |
static int | getDebugLevel () |
get the current debug level | |
static int | checkDebugLevel (const int level) |
check whether specified debug level is set | |
Static Public Attributes | |
static const int | DL_NoMessages |
debug level: display no messages | |
static const int | DL_Errors |
debug level: display error messages | |
static const int | DL_Warnings |
debug level: display warning messages | |
static const int | DL_Informationals |
debug level: display informational messages | |
static const int | DL_DebugMessages |
debug level: display debug messages | |
Static Private Attributes | |
static OFGlobal< int > | DebugLevel |
debug level defining the verboseness of the image toolkit |
introduced to avoid problems with naming convention
Definition at line 312 of file diutils.h.
|
|
determine integer representation which is necessary to store values in the specified range
|
|
get the current debug level
Definition at line 385 of file diutils.h. References DebugLevel, and OFGlobal< T >::get(). |
|
calculate maximum value which could be stored in the specified number of bits
Definition at line 324 of file diutils.h. Referenced by DiYBRPart422PixelTemplate< T1, T2 >::convert(), DiYBR422PixelTemplate< T1, T2 >::convert(), DiYBRPixelTemplate< T1, T2 >::convert(), DiRGBPixelTemplate< T1, T2 >::convert(), DiHSVPixelTemplate< T1, T2 >::convert(), DiColorOutputPixelTemplate< T1, T2 >::convert(), DiCMYKPixelTemplate< T1, T2 >::convert(), DiARGBPixelTemplate< T1, T2, T3 >::convert(), DiColorPixelTemplate< T3 >::createAWTBitmap(), DiColorPixelTemplate< T3 >::createDIB(), DiInputPixelTemplate< T1, T2 >::DiInputPixelTemplate(), DiBaseLUT::getAbsMaxRange(), DiScaleTemplate< T >::interpolatePixel(), DiMonoOutputPixelTemplate< T1, T2, T3 >::overlay(), and DiMonoScaleTemplate< T >::scale(). |
|
calculate number of bits which are necessary to store the specified value range
|
|
set the debug level to the specified value
Definition at line 376 of file diutils.h. References DebugLevel, and OFGlobal< T >::set(). |
|
calculate number of bits which are necessary to store the specified value
|