Mercurial > mplayer.hg
annotate mp_msg.h @ 3076:bfc881c0e591
newly allocated memory seems to point to only 1 zero filled 4k page or something so there is a near 100% cache hit rate ... not very realistic, writeing something in the source array fixes that so the benchmark scores are meaningfull now
author | michael |
---|---|
date | Thu, 22 Nov 2001 19:22:49 +0000 |
parents | 8dfe10c9f15d |
children | f6247be96224 |
rev | line source |
---|---|
1566 | 1 |
2 extern int verbose; // defined in mplayer.c | |
1562 | 3 |
4 // verbosity elevel: | |
5 | |
1566 | 6 // stuff from level MSGL_FATAL-MSGL_HINT should be translated. |
7 | |
1562 | 8 #define MSGL_FATAL 0 // will exit/abort |
1563 | 9 #define MSGL_ERR 1 // continues |
1562 | 10 #define MSGL_WARN 2 // only warning |
1566 | 11 #define MSGL_HINT 3 // short help message |
12 #define MSGL_INFO 4 // -quiet | |
13 #define MSGL_STATUS 5 // v=0 | |
14 #define MSGL_V 6 // v=1 | |
15 #define MSGL_DBG2 7 // v=2 | |
16 #define MSGL_DBG3 8 // v=3 | |
17 #define MSGL_DBG4 9 // v=4 | |
1562 | 18 |
19 // code/module: | |
20 | |
1566 | 21 #define MSGT_GLOBAL 0 // common player stuff errors |
22 #define MSGT_CPLAYER 1 // console player (mplayer.c) | |
1562 | 23 #define MSGT_GPLAYER 2 // gui player |
24 | |
25 #define MSGT_VO 3 // libvo | |
26 #define MSGT_AO 4 // libao | |
27 | |
28 #define MSGT_DEMUXER 5 // demuxer.c (general stuff) | |
29 #define MSGT_DS 6 // demux stream (add/read packet etc) | |
30 #define MSGT_DEMUX 7 // fileformat-specific stuff (demux_*.c) | |
1563 | 31 #define MSGT_HEADER 8 // fileformat-specific header (*header.c) |
1562 | 32 |
1566 | 33 #define MSGT_AVSYNC 9 // mplayer.c timer stuff |
34 #define MSGT_AUTOQ 10 // mplayer.c auto-quality stuff | |
35 | |
36 #define MSGT_CFGPARSER 11 // cfgparser.c | |
37 | |
38 #define MSGT_DECAUDIO 12 // av decoder | |
39 #define MSGT_DECVIDEO 13 | |
40 | |
41 #define MSGT_SEEK 14 // seeking code | |
42 #define MSGT_WIN32 15 // win32 dll stuff | |
43 #define MSGT_OPEN 16 // open.c (stream opening) | |
1593 | 44 #define MSGT_DVD 17 // open.c (DVD init/read/seek) |
1566 | 45 |
1973
5216f108cb4f
all error/warn/info messages moved to help_mp-en.h for translation
arpi
parents:
1593
diff
changeset
|
46 #define MSGT_PARSEES 18 // parse_es.c (mpeg stream parser) |
5216f108cb4f
all error/warn/info messages moved to help_mp-en.h for translation
arpi
parents:
1593
diff
changeset
|
47 #define MSGT_LIRC 19 // lirc_mp.c |
5216f108cb4f
all error/warn/info messages moved to help_mp-en.h for translation
arpi
parents:
1593
diff
changeset
|
48 |
5216f108cb4f
all error/warn/info messages moved to help_mp-en.h for translation
arpi
parents:
1593
diff
changeset
|
49 #define MSGT_STREAM 20 // stream.c |
2787 | 50 #define MSGT_CACHE 21 // cache2.c |
1973
5216f108cb4f
all error/warn/info messages moved to help_mp-en.h for translation
arpi
parents:
1593
diff
changeset
|
51 |
2620 | 52 #define MSGT_MENCODER 22 |
53 | |
2787 | 54 #define MSGT_XACODEC 23 // XAnim codecs |
55 | |
56 #define MSGT_TV 24 // TV input subsystem | |
57 | |
1562 | 58 #define MSGT_MAX 64 |
59 | |
60 void mp_msg_init(int verbose); | |
61 void mp_msg_c( int x, const char *format, ... ); | |
62 | |
1568
2d4904c16667
modifications to use variable number of arguments in #define with GCC
atlka
parents:
1566
diff
changeset
|
63 |
2d4904c16667
modifications to use variable number of arguments in #define with GCC
atlka
parents:
1566
diff
changeset
|
64 #ifdef __GNUC__ |
2d4904c16667
modifications to use variable number of arguments in #define with GCC
atlka
parents:
1566
diff
changeset
|
65 #define mp_msg(mod,lev, args... ) mp_msg_c((mod<<8)|lev, ## args ) |
1566 | 66 |
67 #ifdef MP_DEBUG | |
1568
2d4904c16667
modifications to use variable number of arguments in #define with GCC
atlka
parents:
1566
diff
changeset
|
68 #define mp_dbg(mod,lev, args... ) mp_msg_c((mod<<8)|lev, ## args ) |
1566 | 69 #else |
70 // these messages are only usefull for developers, disable them | |
1568
2d4904c16667
modifications to use variable number of arguments in #define with GCC
atlka
parents:
1566
diff
changeset
|
71 #define mp_dbg(mod,lev, args... ) |
1566 | 72 #endif |
1568
2d4904c16667
modifications to use variable number of arguments in #define with GCC
atlka
parents:
1566
diff
changeset
|
73 #else // not GNU C |
2d4904c16667
modifications to use variable number of arguments in #define with GCC
atlka
parents:
1566
diff
changeset
|
74 #define mp_msg(mod,lev, ... ) mp_msg_c((mod<<8)|lev, __VA_ARGS__) |
2d4904c16667
modifications to use variable number of arguments in #define with GCC
atlka
parents:
1566
diff
changeset
|
75 |
2d4904c16667
modifications to use variable number of arguments in #define with GCC
atlka
parents:
1566
diff
changeset
|
76 #ifdef MP_DEBUG |
2d4904c16667
modifications to use variable number of arguments in #define with GCC
atlka
parents:
1566
diff
changeset
|
77 #define mp_dbg(mod,lev, ... ) mp_msg_c((mod<<8)|lev, __VA_ARGS__) |
2d4904c16667
modifications to use variable number of arguments in #define with GCC
atlka
parents:
1566
diff
changeset
|
78 #else |
2d4904c16667
modifications to use variable number of arguments in #define with GCC
atlka
parents:
1566
diff
changeset
|
79 // these messages are only usefull for developers, disable them |
2d4904c16667
modifications to use variable number of arguments in #define with GCC
atlka
parents:
1566
diff
changeset
|
80 #define mp_dbg(mod,lev, ... ) |
2d4904c16667
modifications to use variable number of arguments in #define with GCC
atlka
parents:
1566
diff
changeset
|
81 #endif |
2d4904c16667
modifications to use variable number of arguments in #define with GCC
atlka
parents:
1566
diff
changeset
|
82 #endif |