digikam
cimg_library::cimg Namespace Reference
Namespace that encompasses low-level functions and variables of the CImg Library. More...
Classes | |
| struct | last |
| struct | superset |
| struct | superset2 |
| struct | superset3 |
| struct | superset< bool, char > |
| struct | superset< bool, double > |
| struct | superset< bool, float > |
| struct | superset< bool, int > |
| struct | superset< bool, long > |
| struct | superset< bool, short > |
| struct | superset< bool, signed char > |
| struct | superset< bool, unsigned char > |
| struct | superset< bool, unsigned int > |
| struct | superset< bool, unsigned long > |
| struct | superset< bool, unsigned short > |
| struct | superset< char, double > |
| struct | superset< char, float > |
| struct | superset< char, int > |
| struct | superset< char, long > |
| struct | superset< char, short > |
| struct | superset< char, signed char > |
| struct | superset< char, unsigned char > |
| struct | superset< char, unsigned int > |
| struct | superset< char, unsigned long > |
| struct | superset< char, unsigned short > |
| struct | superset< float, double > |
| struct | superset< int, double > |
| struct | superset< int, float > |
| struct | superset< int, long > |
| struct | superset< int, unsigned int > |
| struct | superset< int, unsigned long > |
| struct | superset< long, double > |
| struct | superset< long, float > |
| struct | superset< short, double > |
| struct | superset< short, float > |
| struct | superset< short, int > |
| struct | superset< short, long > |
| struct | superset< short, unsigned int > |
| struct | superset< short, unsigned long > |
| struct | superset< short, unsigned short > |
| struct | superset< signed char, char > |
| struct | superset< signed char, double > |
| struct | superset< signed char, float > |
| struct | superset< signed char, int > |
| struct | superset< signed char, long > |
| struct | superset< signed char, short > |
| struct | superset< signed char, unsigned char > |
| struct | superset< signed char, unsigned int > |
| struct | superset< signed char, unsigned long > |
| struct | superset< signed char, unsigned short > |
| struct | superset< unsigned char, char > |
| struct | superset< unsigned char, double > |
| struct | superset< unsigned char, float > |
| struct | superset< unsigned char, int > |
| struct | superset< unsigned char, long > |
| struct | superset< unsigned char, short > |
| struct | superset< unsigned char, signed char > |
| struct | superset< unsigned char, unsigned int > |
| struct | superset< unsigned char, unsigned long > |
| struct | superset< unsigned char, unsigned short > |
| struct | superset< unsigned int, char > |
| struct | superset< unsigned int, double > |
| struct | superset< unsigned int, float > |
| struct | superset< unsigned int, int > |
| struct | superset< unsigned int, long > |
| struct | superset< unsigned int, short > |
| struct | superset< unsigned int, signed char > |
| struct | superset< unsigned int, unsigned long > |
| struct | superset< unsigned long, char > |
| struct | superset< unsigned long, double > |
| struct | superset< unsigned long, float > |
| struct | superset< unsigned long, int > |
| struct | superset< unsigned long, long > |
| struct | superset< unsigned long, short > |
| struct | superset< unsigned long, signed char > |
| struct | superset< unsigned short, char > |
| struct | superset< unsigned short, double > |
| struct | superset< unsigned short, float > |
| struct | superset< unsigned short, int > |
| struct | superset< unsigned short, long > |
| struct | superset< unsigned short, short > |
| struct | superset< unsigned short, signed char > |
| struct | superset< unsigned short, unsigned int > |
| struct | superset< unsigned short, unsigned long > |
| struct | type |
| struct | type< bool > |
| struct | type< char > |
| struct | type< double > |
| struct | type< float > |
| struct | type< int > |
| struct | type< long > |
| struct | type< short > |
| struct | type< signed char > |
| struct | type< unsigned char > |
| struct | type< unsigned int > |
| struct | type< unsigned long > |
| struct | type< unsigned short > |
Functions | |
| double | _pythagore (double a, double b) |
| unsigned int | _sleep (const unsigned int milliseconds, unsigned long &timer) |
| int | abs (const int a) |
| float | abs (const float a) |
| double | abs (const double a) |
| unsigned long | abs (const unsigned long a) |
| unsigned int | abs (const unsigned int a) |
| unsigned short | abs (const unsigned short a) |
| unsigned char | abs (const unsigned char a) |
| bool | abs (const bool a) |
| template<typename T > | |
| T | abs (const T a) |
| const char * | argument (const unsigned int nb, const int argc, const char *const *const argv, const unsigned int nb_singles=0,...) |
| float | atof (const char *const str) |
| const char * | basename (const char *const s) |
| double | crand () |
| const char * | dcraw_path (const char *const user_path=0, const bool reinit_path=false) |
| template<typename t > | |
| int | dialog (const char *title, const char *msg, const char *button1_txt, const char *button2_txt, const char *button3_txt, const char *button4_txt, const char *button5_txt, const char *button6_txt, const CImg< t > &logo, const bool centering=false) |
| int | dialog (const char *title, const char *msg, const char *button1_txt="OK", const char *button2_txt=0, const char *button3_txt=0, const char *button4_txt=0, const char *button5_txt=0, const char *button6_txt=0, const bool centering=false) |
| bool | endianness () |
| unsigned int & | exception_mode () |
| int | fclose (cimg_std::FILE *file) |
| const char * | ffmpeg_path (const char *const user_path=0, const bool reinit_path=false) |
| const char * | file_type (cimg_std::FILE *const file, const char *const filename) |
| const char * | filenamerand () |
| cimg_std::FILE * | fopen (const char *const path, const char *const mode) |
| template<typename T > | |
| int | fread (T *const ptr, const unsigned int nmemb, cimg_std::FILE *stream) |
| template<typename T > | |
| int | fwrite (const T *ptr, const unsigned int nmemb, cimg_std::FILE *stream) |
| double | grand () |
| const char * | graphicsmagick_path (const char *const user_path=0, const bool reinit_path=false) |
| const char * | gunzip_path (const char *const user_path=0, const bool reinit_path=false) |
| const char * | gzip_path (const char *const user_path=0, const bool reinit_path=false) |
| const char * | imagemagick_path (const char *const user_path=0, const bool reinit_path=false) |
| void | info () |
| template<typename T > | |
| T & | invert_endianness (T &a) |
| template<typename T > | |
| void | invert_endianness (T *const buffer, const unsigned int size) |
| template<typename t1 , typename t2 , typename t3 , typename t4 > | |
| cimg::superset3< t1, t2, t3, t4 >::type | max (const t1 &a, const t2 &b, const t3 &c, const t4 &d) |
| template<typename t1 , typename t2 , typename t3 > | |
| cimg::superset2< t1, t2, t3 >::type | max (const t1 &a, const t2 &b, const t3 &c) |
| template<typename t1 , typename t2 > | |
| cimg::superset< t1, t2 >::type | max (const t1 &a, const t2 &b) |
| const char * | medcon_path (const char *const user_path=0, const bool reinit_path=false) |
| template<typename t1 , typename t2 , typename t3 , typename t4 > | |
| cimg::superset3< t1, t2, t3, t4 >::type | min (const t1 &a, const t2 &b, const t3 &c, const t4 &d) |
| template<typename t1 , typename t2 , typename t3 > | |
| cimg::superset2< t1, t2, t3 >::type | min (const t1 &a, const t2 &b, const t3 &c) |
| template<typename t1 , typename t2 > | |
| cimg::superset< t1, t2 >::type | min (const t1 &a, const t2 &b) |
| template<typename T > | |
| T | minmod (const T a, const T b) |
| int | mod (const unsigned long x, const unsigned long m) |
| int | mod (const unsigned int x, const unsigned int m) |
| int | mod (const unsigned short x, const unsigned short m) |
| int | mod (const unsigned char x, const unsigned char m) |
| int | mod (const long x, const long m) |
| int | mod (const int x, const int m) |
| int | mod (const short x, const short m) |
| int | mod (const char x, const char m) |
| int | mod (const bool x, const bool m) |
| template<typename T > | |
| T | mod (const T &x, const T &m) |
| template<typename T > | |
| unsigned long | nearest_pow2 (const T x) |
| char * | number_filename (const char *const filename, const int number, const unsigned int n, char *const string) |
| double | option (const char *const name, const int argc, const char *const *const argv, const double defaut, const char *const usage=0) |
| float | option (const char *const name, const int argc, const char *const *const argv, const float defaut, const char *const usage=0) |
| char | option (const char *const name, const int argc, const char *const *const argv, const char defaut, const char *const usage=0) |
| int | option (const char *const name, const int argc, const char *const *const argv, const int defaut, const char *const usage=0) |
| bool | option (const char *const name, const int argc, const char *const *const argv, const bool defaut, const char *const usage=0) |
| const char * | option (const char *const name, const int argc, const char *const *const argv, const char *defaut, const char *const usage=0) |
| unsigned int | prand (const double z) |
| double | rand () |
| template<typename T > | |
| const T | rol (const T a, const unsigned int n=1) |
| template<typename T > | |
| const T | ror (const T a, const unsigned int n=1) |
| double | round (const double x, const double y, const int rounding_type=0) |
| template<typename T > | |
| T | sign (const T x) |
| void | sleep (const unsigned int milliseconds) |
| const char * | split_filename (const char *const filename, char *const body=0) |
| template<typename T > | |
| T | sqr (const T val) |
| void | srand () |
| int | strcasecmp (const char *const s1, const char *const s2) |
| void | strclean (char *const s) |
| int | strcmp (const char *const s1, const char *const s2) |
| void | strescape (char *const s) |
| int | strfind (const char *const s, const char c) |
| int | strlen (const char *const s) |
| int | strncasecmp (const char *const s1, const char *const s2, const int l) |
| int | strncmp (const char *const s1, const char *const s2, const int l) |
| bool | strpare (char *const s, const char delimiter=' ', const bool symmetric=false) |
| template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > | |
| void | swap (T1 &a1, T1 &b1, T2 &a2, T2 &b2, T3 &a3, T3 &b3, T4 &a4, T4 &b4, T5 &a5, T5 &b5, T6 &a6, T6 &b6, T7 &a7, T7 &b7, T8 &a8, T8 &b8) |
| template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > | |
| void | swap (T1 &a1, T1 &b1, T2 &a2, T2 &b2, T3 &a3, T3 &b3, T4 &a4, T4 &b4, T5 &a5, T5 &b5, T6 &a6, T6 &b6, T7 &a7, T7 &b7) |
| template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > | |
| void | swap (T1 &a1, T1 &b1, T2 &a2, T2 &b2, T3 &a3, T3 &b3, T4 &a4, T4 &b4, T5 &a5, T5 &b5, T6 &a6, T6 &b6) |
| template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
| void | swap (T1 &a1, T1 &b1, T2 &a2, T2 &b2, T3 &a3, T3 &b3, T4 &a4, T4 &b4, T5 &a5, T5 &b5) |
| template<typename T1 , typename T2 , typename T3 , typename T4 > | |
| void | swap (T1 &a1, T1 &b1, T2 &a2, T2 &b2, T3 &a3, T3 &b3, T4 &a4, T4 &b4) |
| template<typename T1 , typename T2 , typename T3 > | |
| void | swap (T1 &a1, T1 &b1, T2 &a2, T2 &b2, T3 &a3, T3 &b3) |
| template<typename T1 , typename T2 > | |
| void | swap (T1 &a1, T1 &b1, T2 &a2, T2 &b2) |
| template<typename T > | |
| void | swap (T &a, T &b) |
| int | system (const char *const command, const char *const module_name=0) |
| template<typename T > | |
| T & | temporary (const T &) |
| const char * | temporary_path (const char *const user_path=0, const bool reinit_path=false) |
| unsigned long | time () |
| void | uncase (char *const string) |
| char | uncase (const char x) |
| unsigned int | wait (const unsigned int milliseconds) |
| void | warn (const char *format,...) |
| void | winformat_string (char *const s) |
| int | xln (const int x) |
Variables | |
| const unsigned int | font10x13 [256 *10 *13/32] |
| const unsigned int | font10x19 [10 *19 *256/32] |
| const unsigned int | font12x24 [12 *24 *256/32] |
| const unsigned int | font16x32 [16 *32 *256/32] |
| const unsigned int | font19x38 [19 *38 *256/32] |
| const unsigned int | font29x57 [29 *57 *256/32] |
| const unsigned int | font7x11 [7 *11 *256/32] |
| const unsigned int | font8x17 [8 *17 *256/32] |
| const unsigned int | key0 = 24U |
| const unsigned int | key1 = 15U |
| const unsigned int | key2 = 16U |
| const unsigned int | key3 = 17U |
| const unsigned int | key4 = 18U |
| const unsigned int | key5 = 19U |
| const unsigned int | key6 = 20U |
| const unsigned int | key7 = 21U |
| const unsigned int | key8 = 22U |
| const unsigned int | key9 = 23U |
| const unsigned int | keyA = 44U |
| const unsigned int | keyALT = 66U |
| const unsigned int | keyALTGR = 68U |
| const unsigned int | keyAPPLEFT = 65U |
| const unsigned int | keyAPPRIGHT = 69U |
| const unsigned int | keyARROWDOWN = 73U |
| const unsigned int | keyARROWLEFT = 72U |
| const unsigned int | keyARROWRIGHT = 74U |
| const unsigned int | keyARROWUP = 63U |
| const unsigned int | keyB = 59U |
| const unsigned int | keyBACKSPACE = 25U |
| const unsigned int | keyC = 57U |
| const unsigned int | keyCAPSLOCK = 43U |
| const unsigned int | keyCTRLLEFT = 64U |
| const unsigned int | keyCTRLRIGHT = 71U |
| const unsigned int | keyD = 46U |
| const unsigned int | keyDELETE = 40U |
| const unsigned int | keyE = 32U |
| const unsigned int | keyEND = 41U |
| const unsigned int | keyENTER = 53U |
| const unsigned int | keyESC = 1U |
| const unsigned int | keyF = 47U |
| const unsigned int | keyF1 = 2U |
| const unsigned int | keyF10 = 11U |
| const unsigned int | keyF11 = 12U |
| const unsigned int | keyF12 = 13U |
| const unsigned int | keyF2 = 3U |
| const unsigned int | keyF3 = 4U |
| const unsigned int | keyF4 = 5U |
| const unsigned int | keyF5 = 6U |
| const unsigned int | keyF6 = 7U |
| const unsigned int | keyF7 = 8U |
| const unsigned int | keyF8 = 9U |
| const unsigned int | keyF9 = 10U |
| const unsigned int | keyG = 48U |
| const unsigned int | keyH = 49U |
| const unsigned int | keyHOME = 27U |
| const unsigned int | keyI = 37U |
| const unsigned int | keyINSERT = 26U |
| const unsigned int | keyJ = 50U |
| const unsigned int | keyK = 51U |
| const unsigned int | keyL = 52U |
| const unsigned int | keyM = 61U |
| const unsigned int | keyMENU = 70U |
| const unsigned int | keyN = 60U |
| const unsigned int | keyO = 38U |
| const unsigned int | keyP = 39U |
| const unsigned int | keyPAD0 = 75U |
| const unsigned int | keyPAD1 = 76U |
| const unsigned int | keyPAD2 = 77U |
| const unsigned int | keyPAD3 = 78U |
| const unsigned int | keyPAD4 = 79U |
| const unsigned int | keyPAD5 = 80U |
| const unsigned int | keyPAD6 = 81U |
| const unsigned int | keyPAD7 = 82U |
| const unsigned int | keyPAD8 = 83U |
| const unsigned int | keyPAD9 = 84U |
| const unsigned int | keyPADADD = 85U |
| const unsigned int | keyPADDIV = 88U |
| const unsigned int | keyPADMUL = 87U |
| const unsigned int | keyPADSUB = 86U |
| const unsigned int | keyPAGEDOWN = 42U |
| const unsigned int | keyPAGEUP = 28U |
| const unsigned int | keyPAUSE = 14U |
| const unsigned int | keyQ = 30U |
| const unsigned int | keyR = 33U |
| const unsigned int | keyS = 45U |
| const unsigned int | keySHIFTLEFT = 54U |
| const unsigned int | keySHIFTRIGHT = 62U |
| const unsigned int | keySPACE = 67U |
| const unsigned int | keyT = 34U |
| const unsigned int | keyTAB = 29U |
| const unsigned int | keyU = 36U |
| const unsigned int | keyV = 58U |
| const unsigned int | keyW = 31U |
| const unsigned int | keyX = 56U |
| const unsigned int | keyY = 35U |
| const unsigned int | keyZ = 55U |
| const unsigned char | logo40x38 [4576] |
| const char *const *const | t_bold = cimg::t_normal |
| const char *const *const *const *const | t_green = cimg::t_normal |
| const char | t_normal [] = { '\0' } |
| const char *const *const *const | t_purple = cimg::t_normal |
| const char *const | t_red = cimg::t_normal |
| const double | valuePI = 3.14159265358979323846 |
Detailed Description
Namespace that encompasses low-level functions and variables of the CImg Library.
Most of the functions and variables within this namespace are used by the library for low-level processing. Nevertheless, documented variables and functions of this namespace may be used safely in your own source code.
- Warning:
- Never write
using namespace cimg_library::cimg;in your source code, since a lot of functions of thecimg::namespace have prototypes similar to standard C functions that could defined in the global namespace::.
Function Documentation
| double cimg_library::cimg::_pythagore | ( | double | a, | |
| double | b | |||
| ) | [inline] |
| unsigned int cimg_library::cimg::_sleep | ( | const unsigned int | milliseconds, | |
| unsigned long & | timer | |||
| ) | [inline] |
| unsigned long cimg_library::cimg::abs | ( | const unsigned long | a | ) | [inline] |
| unsigned int cimg_library::cimg::abs | ( | const unsigned int | a | ) | [inline] |
| unsigned short cimg_library::cimg::abs | ( | const unsigned short | a | ) | [inline] |
| unsigned char cimg_library::cimg::abs | ( | const unsigned char | a | ) | [inline] |
| T cimg_library::cimg::abs | ( | const T | a | ) | [inline] |
Return the absolute value of a number.
- Note:
- This function is different from
std::abs()orstd::fabs()because it is able to consider a variable of any type, without cast needed.
| const char* cimg_library::cimg::argument | ( | const unsigned int | nb, | |
| const int | argc, | |||
| const char *const *const | argv, | |||
| const unsigned int | nb_singles = 0, |
|||
| ... | ||||
| ) | [inline] |
| float cimg_library::cimg::atof | ( | const char *const | str | ) | [inline] |
Read a float number from a C-string.
- Note:
- This function is quite similar to
std::atof(), but that it allows the retrieval of fractions as in "1/2".
| const char* cimg_library::cimg::basename | ( | const char *const | s | ) | [inline] |
| double cimg_library::cimg::crand | ( | ) | [inline] |
| const char* cimg_library::cimg::dcraw_path | ( | const char *const | user_path = 0, |
|
| const bool | reinit_path = false | |||
| ) | [inline] |
| int cimg_library::cimg::dialog | ( | const char * | title, | |
| const char * | msg, | |||
| const char * | button1_txt, | |||
| const char * | button2_txt, | |||
| const char * | button3_txt, | |||
| const char * | button4_txt, | |||
| const char * | button5_txt, | |||
| const char * | button6_txt, | |||
| const CImg< t > & | logo, | |||
| const bool | centering = false | |||
| ) | [inline] |
Display a dialog box, where a user can click standard buttons.
Up to 6 buttons can be defined in the dialog window. This function returns when a user clicked one of the button or closed the dialog window.
- Parameters:
-
title = Title of the dialog window. msg = Main message displayed inside the dialog window. button1_txt = Label of the 1st button. button2_txt = Label of the 2nd button. button3_txt = Label of the 3rd button. button4_txt = Label of the 4th button. button5_txt = Label of the 5th button. button6_txt = Label of the 6th button. logo = Logo image displayed at the left of the main message. This parameter is optional. centering = Tell to center the dialog window on the screen.
- Returns:
- The button number (from 0 to 5), or -1 if the dialog window has been closed by the user.
- Note:
- If a button text is set to 0, then the corresponding button (and the followings) won't appear in the dialog box. At least one button is necessary.
| int cimg_library::cimg::dialog | ( | const char * | title, | |
| const char * | msg, | |||
| const char * | button1_txt = "OK", |
|||
| const char * | button2_txt = 0, |
|||
| const char * | button3_txt = 0, |
|||
| const char * | button4_txt = 0, |
|||
| const char * | button5_txt = 0, |
|||
| const char * | button6_txt = 0, |
|||
| const bool | centering = false | |||
| ) | [inline] |
| bool cimg_library::cimg::endianness | ( | ) | [inline] |
| unsigned int& cimg_library::cimg::exception_mode | ( | ) | [inline] |
Get/set the current CImg exception mode.
The way error messages are handled by CImg can be changed dynamically, using this function. Possible values are :
- 0 to hide debug messages (quiet mode, but exceptions are still thrown).
- 1 to display debug messages on standard error (console).
- 2 to display debug messages in modal windows (default behavior).
- 3 to do as 1 + add extra warnings (may slow down the code !).
- 4 to do as 2 + add extra warnings (may slow down the code !).
| int cimg_library::cimg::fclose | ( | cimg_std::FILE * | file | ) | [inline] |
| const char* cimg_library::cimg::ffmpeg_path | ( | const char *const | user_path = 0, |
|
| const bool | reinit_path = false | |||
| ) | [inline] |
| const char* cimg_library::cimg::file_type | ( | cimg_std::FILE *const | file, | |
| const char *const | filename | |||
| ) | [inline] |
| cimg_std::FILE* cimg_library::cimg::fopen | ( | const char *const | path, | |
| const char *const | mode | |||
| ) | [inline] |
| int cimg_library::cimg::fread | ( | T *const | ptr, | |
| const unsigned int | nmemb, | |||
| cimg_std::FILE * | stream | |||
| ) | [inline] |
| int cimg_library::cimg::fwrite | ( | const T * | ptr, | |
| const unsigned int | nmemb, | |||
| cimg_std::FILE * | stream | |||
| ) | [inline] |
| double cimg_library::cimg::grand | ( | ) | [inline] |
| const char* cimg_library::cimg::graphicsmagick_path | ( | const char *const | user_path = 0, |
|
| const bool | reinit_path = false | |||
| ) | [inline] |
| const char* cimg_library::cimg::gunzip_path | ( | const char *const | user_path = 0, |
|
| const bool | reinit_path = false | |||
| ) | [inline] |
| const char* cimg_library::cimg::gzip_path | ( | const char *const | user_path = 0, |
|
| const bool | reinit_path = false | |||
| ) | [inline] |
| const char* cimg_library::cimg::imagemagick_path | ( | const char *const | user_path = 0, |
|
| const bool | reinit_path = false | |||
| ) | [inline] |
| void cimg_library::cimg::info | ( | ) | [inline] |
| T& cimg_library::cimg::invert_endianness | ( | T & | a | ) | [inline] |
| void cimg_library::cimg::invert_endianness | ( | T *const | buffer, | |
| const unsigned int | size | |||
| ) | [inline] |
| cimg::superset3<t1,t2,t3,t4>::type cimg_library::cimg::max | ( | const t1 & | a, | |
| const t2 & | b, | |||
| const t3 & | c, | |||
| const t4 & | d | |||
| ) | [inline] |
| cimg::superset2<t1,t2,t3>::type cimg_library::cimg::max | ( | const t1 & | a, | |
| const t2 & | b, | |||
| const t3 & | c | |||
| ) | [inline] |
| cimg::superset<t1,t2>::type cimg_library::cimg::max | ( | const t1 & | a, | |
| const t2 & | b | |||
| ) | [inline] |
| const char* cimg_library::cimg::medcon_path | ( | const char *const | user_path = 0, |
|
| const bool | reinit_path = false | |||
| ) | [inline] |
| cimg::superset3<t1,t2,t3,t4>::type cimg_library::cimg::min | ( | const t1 & | a, | |
| const t2 & | b, | |||
| const t3 & | c, | |||
| const t4 & | d | |||
| ) | [inline] |
| cimg::superset2<t1,t2,t3>::type cimg_library::cimg::min | ( | const t1 & | a, | |
| const t2 & | b, | |||
| const t3 & | c | |||
| ) | [inline] |
| cimg::superset<t1,t2>::type cimg_library::cimg::min | ( | const t1 & | a, | |
| const t2 & | b | |||
| ) | [inline] |
| T cimg_library::cimg::minmod | ( | const T | a, | |
| const T | b | |||
| ) | [inline] |
| int cimg_library::cimg::mod | ( | const unsigned long | x, | |
| const unsigned long | m | |||
| ) | [inline] |
| int cimg_library::cimg::mod | ( | const unsigned int | x, | |
| const unsigned int | m | |||
| ) | [inline] |
| int cimg_library::cimg::mod | ( | const unsigned short | x, | |
| const unsigned short | m | |||
| ) | [inline] |
| int cimg_library::cimg::mod | ( | const unsigned char | x, | |
| const unsigned char | m | |||
| ) | [inline] |
| int cimg_library::cimg::mod | ( | const long | x, | |
| const long | m | |||
| ) | [inline] |
| int cimg_library::cimg::mod | ( | const int | x, | |
| const int | m | |||
| ) | [inline] |
| int cimg_library::cimg::mod | ( | const short | x, | |
| const short | m | |||
| ) | [inline] |
| int cimg_library::cimg::mod | ( | const char | x, | |
| const char | m | |||
| ) | [inline] |
| int cimg_library::cimg::mod | ( | const bool | x, | |
| const bool | m | |||
| ) | [inline] |
| T cimg_library::cimg::mod | ( | const T & | x, | |
| const T & | m | |||
| ) | [inline] |
| unsigned long cimg_library::cimg::nearest_pow2 | ( | const T | x | ) | [inline] |
| char* cimg_library::cimg::number_filename | ( | const char *const | filename, | |
| const int | number, | |||
| const unsigned int | n, | |||
| char *const | string | |||
| ) | [inline] |
| double cimg_library::cimg::option | ( | const char *const | name, | |
| const int | argc, | |||
| const char *const *const | argv, | |||
| const double | defaut, | |||
| const char *const | usage = 0 | |||
| ) | [inline] |
| float cimg_library::cimg::option | ( | const char *const | name, | |
| const int | argc, | |||
| const char *const *const | argv, | |||
| const float | defaut, | |||
| const char *const | usage = 0 | |||
| ) | [inline] |
| char cimg_library::cimg::option | ( | const char *const | name, | |
| const int | argc, | |||
| const char *const *const | argv, | |||
| const char | defaut, | |||
| const char *const | usage = 0 | |||
| ) | [inline] |
| int cimg_library::cimg::option | ( | const char *const | name, | |
| const int | argc, | |||
| const char *const *const | argv, | |||
| const int | defaut, | |||
| const char *const | usage = 0 | |||
| ) | [inline] |
| bool cimg_library::cimg::option | ( | const char *const | name, | |
| const int | argc, | |||
| const char *const *const | argv, | |||
| const bool | defaut, | |||
| const char *const | usage = 0 | |||
| ) | [inline] |
| const char* cimg_library::cimg::option | ( | const char *const | name, | |
| const int | argc, | |||
| const char *const *const | argv, | |||
| const char * | defaut, | |||
| const char *const | usage = 0 | |||
| ) | [inline] |
| unsigned int cimg_library::cimg::prand | ( | const double | z | ) | [inline] |
| double cimg_library::cimg::rand | ( | ) | [inline] |
| const T cimg_library::cimg::rol | ( | const T | a, | |
| const unsigned int | n = 1 | |||
| ) | [inline] |
| const T cimg_library::cimg::ror | ( | const T | a, | |
| const unsigned int | n = 1 | |||
| ) | [inline] |
| double cimg_library::cimg::round | ( | const double | x, | |
| const double | y, | |||
| const int | rounding_type = 0 | |||
| ) | [inline] |
| T cimg_library::cimg::sign | ( | const T | x | ) | [inline] |
| void cimg_library::cimg::sleep | ( | const unsigned int | milliseconds | ) | [inline] |
| const char* cimg_library::cimg::split_filename | ( | const char *const | filename, | |
| char *const | body = 0 | |||
| ) | [inline] |
| T cimg_library::cimg::sqr | ( | const T | val | ) | [inline] |
| int cimg_library::cimg::strcasecmp | ( | const char *const | s1, | |
| const char *const | s2 | |||
| ) | [inline] |
Compare two C-strings, ignoring the case.
- Note:
- This function is similar to
std::strcasecmp()and is here because some old compilers do not define thestd::version.
| void cimg_library::cimg::strclean | ( | char *const | s | ) | [inline] |
| int cimg_library::cimg::strcmp | ( | const char *const | s1, | |
| const char *const | s2 | |||
| ) | [inline] |
Compare two C-strings.
- Note:
- This function is similar to
std::strcmp()and is here because some old compilers do not define thestd::version.
| void cimg_library::cimg::strescape | ( | char *const | s | ) | [inline] |
| int cimg_library::cimg::strfind | ( | const char *const | s, | |
| const char | c | |||
| ) | [inline] |
| int cimg_library::cimg::strlen | ( | const char *const | s | ) | [inline] |
Compute the length of a C-string.
- Note:
- This function is similar to
std::strlen()and is here because some old compilers do not define thestd::version.
| int cimg_library::cimg::strncasecmp | ( | const char *const | s1, | |
| const char *const | s2, | |||
| const int | l | |||
| ) | [inline] |
Compare the first n characters of two C-strings, ignoring the case.
- Note:
- This function is similar to
std::strncasecmp()and is here because some old compilers do not define thestd::version.
| int cimg_library::cimg::strncmp | ( | const char *const | s1, | |
| const char *const | s2, | |||
| const int | l | |||
| ) | [inline] |
Compare the first n characters of two C-strings.
- Note:
- This function is similar to
std::strncmp()and is here because some old compilers do not define thestd::version.
| bool cimg_library::cimg::strpare | ( | char *const | s, | |
| const char | delimiter = ' ', |
|||
| const bool | symmetric = false | |||
| ) | [inline] |
| void cimg_library::cimg::swap | ( | T1 & | a1, | |
| T1 & | b1, | |||
| T2 & | a2, | |||
| T2 & | b2, | |||
| T3 & | a3, | |||
| T3 & | b3, | |||
| T4 & | a4, | |||
| T4 & | b4, | |||
| T5 & | a5, | |||
| T5 & | b5, | |||
| T6 & | a6, | |||
| T6 & | b6, | |||
| T7 & | a7, | |||
| T7 & | b7, | |||
| T8 & | a8, | |||
| T8 & | b8 | |||
| ) | [inline] |
| void cimg_library::cimg::swap | ( | T1 & | a1, | |
| T1 & | b1, | |||
| T2 & | a2, | |||
| T2 & | b2, | |||
| T3 & | a3, | |||
| T3 & | b3, | |||
| T4 & | a4, | |||
| T4 & | b4, | |||
| T5 & | a5, | |||
| T5 & | b5, | |||
| T6 & | a6, | |||
| T6 & | b6, | |||
| T7 & | a7, | |||
| T7 & | b7 | |||
| ) | [inline] |
| void cimg_library::cimg::swap | ( | T1 & | a1, | |
| T1 & | b1, | |||
| T2 & | a2, | |||
| T2 & | b2, | |||
| T3 & | a3, | |||
| T3 & | b3, | |||
| T4 & | a4, | |||
| T4 & | b4, | |||
| T5 & | a5, | |||
| T5 & | b5, | |||
| T6 & | a6, | |||
| T6 & | b6 | |||
| ) | [inline] |
| void cimg_library::cimg::swap | ( | T1 & | a1, | |
| T1 & | b1, | |||
| T2 & | a2, | |||
| T2 & | b2, | |||
| T3 & | a3, | |||
| T3 & | b3, | |||
| T4 & | a4, | |||
| T4 & | b4, | |||
| T5 & | a5, | |||
| T5 & | b5 | |||
| ) | [inline] |
| void cimg_library::cimg::swap | ( | T1 & | a1, | |
| T1 & | b1, | |||
| T2 & | a2, | |||
| T2 & | b2, | |||
| T3 & | a3, | |||
| T3 & | b3, | |||
| T4 & | a4, | |||
| T4 & | b4 | |||
| ) | [inline] |
| void cimg_library::cimg::swap | ( | T1 & | a1, | |
| T1 & | b1, | |||
| T2 & | a2, | |||
| T2 & | b2, | |||
| T3 & | a3, | |||
| T3 & | b3 | |||
| ) | [inline] |
| void cimg_library::cimg::swap | ( | T1 & | a1, | |
| T1 & | b1, | |||
| T2 & | a2, | |||
| T2 & | b2 | |||
| ) | [inline] |
| void cimg_library::cimg::swap | ( | T & | a, | |
| T & | b | |||
| ) | [inline] |
| int cimg_library::cimg::system | ( | const char *const | command, | |
| const char *const | module_name = 0 | |||
| ) | [inline] |
- Note:
- This function is similar to
std::system()and is here because using thestd::version on Windows may open undesired consoles.
| T& cimg_library::cimg::temporary | ( | const T & | ) | [inline] |
| const char* cimg_library::cimg::temporary_path | ( | const char *const | user_path = 0, |
|
| const bool | reinit_path = false | |||
| ) | [inline] |
| unsigned long cimg_library::cimg::time | ( | ) | [inline] |
| void cimg_library::cimg::uncase | ( | char *const | string | ) | [inline] |
| char cimg_library::cimg::uncase | ( | const char | x | ) | [inline] |
| unsigned int cimg_library::cimg::wait | ( | const unsigned int | milliseconds | ) | [inline] |
| void cimg_library::cimg::warn | ( | const char * | format, | |
| ... | ||||
| ) | [inline] |
| void cimg_library::cimg::winformat_string | ( | char *const | s | ) | [inline] |
| int cimg_library::cimg::xln | ( | const int | x | ) | [inline] |
Variable Documentation
| const unsigned int cimg_library::cimg::font10x13[256 *10 *13/32] |
| const unsigned int cimg_library::cimg::font10x19[10 *19 *256/32] |
| const unsigned int cimg_library::cimg::font12x24[12 *24 *256/32] |
| const unsigned int cimg_library::cimg::font16x32[16 *32 *256/32] |
| const unsigned int cimg_library::cimg::font19x38[19 *38 *256/32] |
| const unsigned int cimg_library::cimg::font29x57[29 *57 *256/32] |
| const unsigned int cimg_library::cimg::font7x11[7 *11 *256/32] |
| const unsigned int cimg_library::cimg::font8x17[8 *17 *256/32] |
| const unsigned int cimg_library::cimg::key0 = 24U |
| const unsigned int cimg_library::cimg::key1 = 15U |
| const unsigned int cimg_library::cimg::key2 = 16U |
| const unsigned int cimg_library::cimg::key3 = 17U |
| const unsigned int cimg_library::cimg::key4 = 18U |
| const unsigned int cimg_library::cimg::key5 = 19U |
| const unsigned int cimg_library::cimg::key6 = 20U |
| const unsigned int cimg_library::cimg::key7 = 21U |
| const unsigned int cimg_library::cimg::key8 = 22U |
| const unsigned int cimg_library::cimg::key9 = 23U |
| const unsigned int cimg_library::cimg::keyA = 44U |
| const unsigned int cimg_library::cimg::keyALT = 66U |
| const unsigned int cimg_library::cimg::keyALTGR = 68U |
| const unsigned int cimg_library::cimg::keyAPPLEFT = 65U |
| const unsigned int cimg_library::cimg::keyAPPRIGHT = 69U |
| const unsigned int cimg_library::cimg::keyARROWDOWN = 73U |
| const unsigned int cimg_library::cimg::keyARROWLEFT = 72U |
| const unsigned int cimg_library::cimg::keyARROWRIGHT = 74U |
| const unsigned int cimg_library::cimg::keyARROWUP = 63U |
| const unsigned int cimg_library::cimg::keyB = 59U |
| const unsigned int cimg_library::cimg::keyBACKSPACE = 25U |
| const unsigned int cimg_library::cimg::keyC = 57U |
| const unsigned int cimg_library::cimg::keyCAPSLOCK = 43U |
| const unsigned int cimg_library::cimg::keyCTRLLEFT = 64U |
| const unsigned int cimg_library::cimg::keyCTRLRIGHT = 71U |
| const unsigned int cimg_library::cimg::keyD = 46U |
| const unsigned int cimg_library::cimg::keyDELETE = 40U |
| const unsigned int cimg_library::cimg::keyE = 32U |
| const unsigned int cimg_library::cimg::keyEND = 41U |
| const unsigned int cimg_library::cimg::keyENTER = 53U |
| const unsigned int cimg_library::cimg::keyESC = 1U |
| const unsigned int cimg_library::cimg::keyF = 47U |
| const unsigned int cimg_library::cimg::keyF1 = 2U |
| const unsigned int cimg_library::cimg::keyF10 = 11U |
| const unsigned int cimg_library::cimg::keyF11 = 12U |
| const unsigned int cimg_library::cimg::keyF12 = 13U |
| const unsigned int cimg_library::cimg::keyF2 = 3U |
| const unsigned int cimg_library::cimg::keyF3 = 4U |
| const unsigned int cimg_library::cimg::keyF4 = 5U |
| const unsigned int cimg_library::cimg::keyF5 = 6U |
| const unsigned int cimg_library::cimg::keyF6 = 7U |
| const unsigned int cimg_library::cimg::keyF7 = 8U |
| const unsigned int cimg_library::cimg::keyF8 = 9U |
| const unsigned int cimg_library::cimg::keyF9 = 10U |
| const unsigned int cimg_library::cimg::keyG = 48U |
| const unsigned int cimg_library::cimg::keyH = 49U |
| const unsigned int cimg_library::cimg::keyHOME = 27U |
| const unsigned int cimg_library::cimg::keyI = 37U |
| const unsigned int cimg_library::cimg::keyINSERT = 26U |
| const unsigned int cimg_library::cimg::keyJ = 50U |
| const unsigned int cimg_library::cimg::keyK = 51U |
| const unsigned int cimg_library::cimg::keyL = 52U |
| const unsigned int cimg_library::cimg::keyM = 61U |
| const unsigned int cimg_library::cimg::keyMENU = 70U |
| const unsigned int cimg_library::cimg::keyN = 60U |
| const unsigned int cimg_library::cimg::keyO = 38U |
| const unsigned int cimg_library::cimg::keyP = 39U |
| const unsigned int cimg_library::cimg::keyPAD0 = 75U |
| const unsigned int cimg_library::cimg::keyPAD1 = 76U |
| const unsigned int cimg_library::cimg::keyPAD2 = 77U |
| const unsigned int cimg_library::cimg::keyPAD3 = 78U |
| const unsigned int cimg_library::cimg::keyPAD4 = 79U |
| const unsigned int cimg_library::cimg::keyPAD5 = 80U |
| const unsigned int cimg_library::cimg::keyPAD6 = 81U |
| const unsigned int cimg_library::cimg::keyPAD7 = 82U |
| const unsigned int cimg_library::cimg::keyPAD8 = 83U |
| const unsigned int cimg_library::cimg::keyPAD9 = 84U |
| const unsigned int cimg_library::cimg::keyPADADD = 85U |
| const unsigned int cimg_library::cimg::keyPADDIV = 88U |
| const unsigned int cimg_library::cimg::keyPADMUL = 87U |
| const unsigned int cimg_library::cimg::keyPADSUB = 86U |
| const unsigned int cimg_library::cimg::keyPAGEDOWN = 42U |
| const unsigned int cimg_library::cimg::keyPAGEUP = 28U |
| const unsigned int cimg_library::cimg::keyPAUSE = 14U |
| const unsigned int cimg_library::cimg::keyQ = 30U |
| const unsigned int cimg_library::cimg::keyR = 33U |
| const unsigned int cimg_library::cimg::keyS = 45U |
| const unsigned int cimg_library::cimg::keySHIFTLEFT = 54U |
| const unsigned int cimg_library::cimg::keySHIFTRIGHT = 62U |
| const unsigned int cimg_library::cimg::keySPACE = 67U |
| const unsigned int cimg_library::cimg::keyT = 34U |
| const unsigned int cimg_library::cimg::keyTAB = 29U |
| const unsigned int cimg_library::cimg::keyU = 36U |
| const unsigned int cimg_library::cimg::keyV = 58U |
| const unsigned int cimg_library::cimg::keyW = 31U |
| const unsigned int cimg_library::cimg::keyX = 56U |
| const unsigned int cimg_library::cimg::keyY = 35U |
| const unsigned int cimg_library::cimg::keyZ = 55U |
| const unsigned char cimg_library::cimg::logo40x38[4576] |
{
177,200,200,200,3,123,123,0,36,200,200,200,1,123,123,0,2,255,255,0,1,189,189,189,1,0,0,0,34,200,200,200,
1,123,123,0,4,255,255,0,1,189,189,189,1,0,0,0,1,123,123,123,32,200,200,200,1,123,123,0,5,255,255,0,1,0,0,
0,2,123,123,123,30,200,200,200,1,123,123,0,6,255,255,0,1,189,189,189,1,0,0,0,2,123,123,123,29,200,200,200,
1,123,123,0,7,255,255,0,1,0,0,0,2,123,123,123,28,200,200,200,1,123,123,0,8,255,255,0,1,189,189,189,1,0,0,0,
2,123,123,123,27,200,200,200,1,123,123,0,9,255,255,0,1,0,0,0,2,123,123,123,26,200,200,200,1,123,123,0,10,255,
255,0,1,189,189,189,1,0,0,0,2,123,123,123,25,200,200,200,1,123,123,0,3,255,255,0,1,189,189,189,3,0,0,0,1,189,
189,189,3,255,255,0,1,0,0,0,2,123,123,123,24,200,200,200,1,123,123,0,4,255,255,0,5,0,0,0,3,255,255,0,1,189,
189,189,1,0,0,0,2,123,123,123,23,200,200,200,1,123,123,0,4,255,255,0,5,0,0,0,4,255,255,0,1,0,0,0,2,123,123,123,
22,200,200,200,1,123,123,0,5,255,255,0,5,0,0,0,4,255,255,0,1,189,189,189,1,0,0,0,2,123,123,123,21,200,200,200,
1,123,123,0,5,255,255,0,5,0,0,0,5,255,255,0,1,0,0,0,2,123,123,123,20,200,200,200,1,123,123,0,6,255,255,0,5,0,0,
0,5,255,255,0,1,189,189,189,1,0,0,0,2,123,123,123,19,200,200,200,1,123,123,0,6,255,255,0,1,123,123,0,3,0,0,0,1,
123,123,0,6,255,255,0,1,0,0,0,2,123,123,123,18,200,200,200,1,123,123,0,7,255,255,0,1,189,189,189,3,0,0,0,1,189,
189,189,6,255,255,0,1,189,189,189,1,0,0,0,2,123,123,123,17,200,200,200,1,123,123,0,8,255,255,0,3,0,0,0,8,255,255,
0,1,0,0,0,2,123,123,123,16,200,200,200,1,123,123,0,9,255,255,0,1,123,123,0,1,0,0,0,1,123,123,0,8,255,255,0,1,189,
189,189,1,0,0,0,2,123,123,123,15,200,200,200,1,123,123,0,9,255,255,0,1,189,189,189,1,0,0,0,1,189,189,189,9,255,255,
0,1,0,0,0,2,123,123,123,14,200,200,200,1,123,123,0,11,255,255,0,1,0,0,0,10,255,255,0,1,189,189,189,1,0,0,0,2,123,
123,123,13,200,200,200,1,123,123,0,23,255,255,0,1,0,0,0,2,123,123,123,12,200,200,200,1,123,123,0,11,255,255,0,1,189,
189,189,2,0,0,0,1,189,189,189,9,255,255,0,1,189,189,189,1,0,0,0,2,123,123,123,11,200,200,200,1,123,123,0,11,255,255,
0,4,0,0,0,10,255,255,0,1,0,0,0,2,123,123,123,10,200,200,200,1,123,123,0,12,255,255,0,4,0,0,0,10,255,255,0,1,189,189,
189,1,0,0,0,2,123,123,123,9,200,200,200,1,123,123,0,12,255,255,0,1,189,189,189,2,0,0,0,1,189,189,189,11,255,255,0,1,
0,0,0,2,123,123,123,9,200,200,200,1,123,123,0,27,255,255,0,1,0,0,0,3,123,123,123,8,200,200,200,1,123,123,0,26,255,
255,0,1,189,189,189,1,0,0,0,3,123,123,123,9,200,200,200,1,123,123,0,24,255,255,0,1,189,189,189,1,0,0,0,4,123,123,
123,10,200,200,200,1,123,123,0,24,0,0,0,5,123,123,123,12,200,200,200,27,123,123,123,14,200,200,200,25,123,123,123,86,
200,200,200,91,49,124,118,124,71,32,124,95,49,56,114,52,82,121,0}
| const char* const * const cimg_library::cimg::t_bold = cimg::t_normal |
| const char* const * const * const * const cimg_library::cimg::t_green = cimg::t_normal |
| const char cimg_library::cimg::t_normal[] = { '\0' } |
| const char* const * const * const cimg_library::cimg::t_purple = cimg::t_normal |
| const char* const cimg_library::cimg::t_red = cimg::t_normal |
| const double cimg_library::cimg::valuePI = 3.14159265358979323846 |
KDE 4.4 API Reference