Mercurial > mplayer.hg
annotate mp_msg.h @ 27808:2988c38b6620
Make sure that linker flags passed as configure parameters appear before
those detected by configure so that the former can override the latter.
patch by Giacomo Comes, comes naic edu
author | diego |
---|---|
date | Tue, 28 Oct 2008 18:00:11 +0000 |
parents | 128f089724d3 |
children | 1cc8a20520e8 |
rev | line source |
---|---|
26029 | 1 #ifndef MPLAYER_MP_MSG_H |
2 #define MPLAYER_MP_MSG_H | |
1566 | 3 |
14046
4802041ab8e3
Output more information about vids, aids, sids, alangs and slangs with -identify. Patch by kiriuja <mplayer-patches@en-directo.net>
mosu
parents:
13365
diff
changeset
|
4 // defined in mplayer.c and mencoder.c |
4802041ab8e3
Output more information about vids, aids, sids, alangs and slangs with -identify. Patch by kiriuja <mplayer-patches@en-directo.net>
mosu
parents:
13365
diff
changeset
|
5 extern int verbose; |
1562 | 6 |
7 // verbosity elevel: | |
8 | |
17968 | 9 /* Only messages level MSGL_FATAL-MSGL_STATUS should be translated, |
10 * messages level MSGL_V and above should not be translated. */ | |
1566 | 11 |
1562 | 12 #define MSGL_FATAL 0 // will exit/abort |
1563 | 13 #define MSGL_ERR 1 // continues |
1562 | 14 #define MSGL_WARN 2 // only warning |
1566 | 15 #define MSGL_HINT 3 // short help message |
16 #define MSGL_INFO 4 // -quiet | |
17 #define MSGL_STATUS 5 // v=0 | |
18 #define MSGL_V 6 // v=1 | |
19 #define MSGL_DBG2 7 // v=2 | |
20 #define MSGL_DBG3 8 // v=3 | |
21 #define MSGL_DBG4 9 // v=4 | |
17930
81cbc8debd3c
Add DBG5 verbosity level to prepare for upcoming mp_msg_test changes.
diego
parents:
17566
diff
changeset
|
22 #define MSGL_DBG5 10 // v=5 |
1562 | 23 |
13122 | 24 #define MSGL_FIXME 1 // for conversions from printf where the appropriate MSGL is not known; set equal to ERR for obtrusiveness |
25 #define MSGT_FIXME 0 // for conversions from printf where the appropriate MSGT is not known; set equal to GLOBAL for obtrusiveness | |
26 | |
1562 | 27 // code/module: |
28 | |
1566 | 29 #define MSGT_GLOBAL 0 // common player stuff errors |
30 #define MSGT_CPLAYER 1 // console player (mplayer.c) | |
1562 | 31 #define MSGT_GPLAYER 2 // gui player |
32 | |
33 #define MSGT_VO 3 // libvo | |
34 #define MSGT_AO 4 // libao | |
35 | |
36 #define MSGT_DEMUXER 5 // demuxer.c (general stuff) | |
37 #define MSGT_DS 6 // demux stream (add/read packet etc) | |
38 #define MSGT_DEMUX 7 // fileformat-specific stuff (demux_*.c) | |
1563 | 39 #define MSGT_HEADER 8 // fileformat-specific header (*header.c) |
1562 | 40 |
1566 | 41 #define MSGT_AVSYNC 9 // mplayer.c timer stuff |
42 #define MSGT_AUTOQ 10 // mplayer.c auto-quality stuff | |
43 | |
44 #define MSGT_CFGPARSER 11 // cfgparser.c | |
45 | |
46 #define MSGT_DECAUDIO 12 // av decoder | |
47 #define MSGT_DECVIDEO 13 | |
48 | |
49 #define MSGT_SEEK 14 // seeking code | |
50 #define MSGT_WIN32 15 // win32 dll stuff | |
51 #define MSGT_OPEN 16 // open.c (stream opening) | |
1593 | 52 #define MSGT_DVD 17 // open.c (DVD init/read/seek) |
1566 | 53 |
1973
5216f108cb4f
all error/warn/info messages moved to help_mp-en.h for translation
arpi
parents:
1593
diff
changeset
|
54 #define MSGT_PARSEES 18 // parse_es.c (mpeg stream parser) |
5198
a528f6c891b5
A bug fix in the auto-repeat stuff + moved all printf to mp_msg
albeu
parents:
5101
diff
changeset
|
55 #define MSGT_LIRC 19 // lirc_mp.c and input lirc driver |
1973
5216f108cb4f
all error/warn/info messages moved to help_mp-en.h for translation
arpi
parents:
1593
diff
changeset
|
56 |
5216f108cb4f
all error/warn/info messages moved to help_mp-en.h for translation
arpi
parents:
1593
diff
changeset
|
57 #define MSGT_STREAM 20 // stream.c |
2787 | 58 #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
|
59 |
2620 | 60 #define MSGT_MENCODER 22 |
61 | |
2787 | 62 #define MSGT_XACODEC 23 // XAnim codecs |
63 | |
64 #define MSGT_TV 24 // TV input subsystem | |
65 | |
22316
f3d7a1b58a82
cosmetics: Fix some common typos, appropiate --> appropRiate,
diego
parents:
22289
diff
changeset
|
66 #define MSGT_OSDEP 25 // OS-dependent parts |
3085 | 67 |
3821 | 68 #define MSGT_SPUDEC 26 // spudec.c |
69 | |
4044 | 70 #define MSGT_PLAYTREE 27 // Playtree handeling (playtree.c, playtreeparser.c) |
71 | |
5198
a528f6c891b5
A bug fix in the auto-repeat stuff + moved all printf to mp_msg
albeu
parents:
5101
diff
changeset
|
72 #define MSGT_INPUT 28 |
a528f6c891b5
A bug fix in the auto-repeat stuff + moved all printf to mp_msg
albeu
parents:
5101
diff
changeset
|
73 |
5505 | 74 #define MSGT_VFILTER 29 |
75 | |
5638
86663f1b9b00
new osd code, use osd objs to follow changes and do minimal updates
arpi
parents:
5505
diff
changeset
|
76 #define MSGT_OSD 30 |
86663f1b9b00
new osd code, use osd objs to follow changes and do minimal updates
arpi
parents:
5505
diff
changeset
|
77 |
5915 | 78 #define MSGT_NETWORK 31 |
79 | |
5936 | 80 #define MSGT_CPUDETECT 32 |
81 | |
82 #define MSGT_CODECCFG 33 | |
83 | |
84 #define MSGT_SWS 34 | |
85 | |
6110 | 86 #define MSGT_VOBSUB 35 |
6296 | 87 #define MSGT_SUBREADER 36 |
6110 | 88 |
7568 | 89 #define MSGT_AFILTER 37 // Audio filter messages |
90 | |
9862 | 91 #define MSGT_NETST 38 // Netstream |
92 | |
11222 | 93 #define MSGT_MUXER 39 // muxer layer |
94 | |
17947 | 95 #define MSGT_OSD_MENU 40 |
96 | |
18237
4231482179b6
Get ride of the several if(identify) messy lines and rearangment of some of the output, both patches by Kiriuja mplayer-patches AT en-directo_net, his changes are barely unrelated, nevertheless Im commiting them thogeter just for the sake of my mental healt, I had both patches already applied on my local three
reynaldo
parents:
18000
diff
changeset
|
97 #define MSGT_IDENTIFY 41 // -identify output |
4231482179b6
Get ride of the several if(identify) messy lines and rearangment of some of the output, both patches by Kiriuja mplayer-patches AT en-directo_net, his changes are barely unrelated, nevertheless Im commiting them thogeter just for the sake of my mental healt, I had both patches already applied on my local three
reynaldo
parents:
18000
diff
changeset
|
98 |
19568
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
18237
diff
changeset
|
99 #define MSGT_RADIO 42 |
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
18237
diff
changeset
|
100 |
20629
e8885ec63928
Introduce MSGT_ASS, use it for all libass messages.
eugeni
parents:
19568
diff
changeset
|
101 #define MSGT_ASS 43 // libass messages |
e8885ec63928
Introduce MSGT_ASS, use it for all libass messages.
eugeni
parents:
19568
diff
changeset
|
102 |
21290
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
20629
diff
changeset
|
103 #define MSGT_LOADER 44 // dll loader messages |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
20629
diff
changeset
|
104 |
23460 | 105 #define MSGT_STATUSLINE 45 // playback/encoding status line |
106 | |
1562 | 107 #define MSGT_MAX 64 |
108 | |
17566
f580a7755ac5
Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents:
17106
diff
changeset
|
109 void mp_msg_init(void); |
7058
2e5c07262861
new v4l capture patch by Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>:
arpi
parents:
6296
diff
changeset
|
110 int mp_msg_test(int mod, int lev); |
1562 | 111 |
5101 | 112 #include "config.h" |
113 | |
1568
2d4904c16667
modifications to use variable number of arguments in #define with GCC
atlka
parents:
1566
diff
changeset
|
114 #ifdef __GNUC__ |
16618 | 115 void mp_msg(int mod, int lev, const char *format, ... ) __attribute__ ((format (printf, 3, 4))); |
16621 | 116 # ifdef MP_DEBUG |
117 # define mp_dbg(mod,lev, args... ) mp_msg(mod, lev, ## args ) | |
118 # else | |
22289
780caed72ac7
cosmetics: typo fixes, usefuLL --> useful and aswell --> as well
diego
parents:
22002
diff
changeset
|
119 # define mp_dbg(mod,lev, args... ) /* only useful for developers */ |
16621 | 120 # endif |
16618 | 121 #else // not GNU C |
122 void mp_msg(int mod, int lev, const char *format, ... ); | |
16621 | 123 # ifdef MP_DEBUG |
124 # define mp_dbg(mod,lev, ... ) mp_msg(mod, lev, __VA_ARGS__) | |
125 # else | |
22289
780caed72ac7
cosmetics: typo fixes, usefuLL --> useful and aswell --> as well
diego
parents:
22002
diff
changeset
|
126 # define mp_dbg(mod,lev, ... ) /* only useful for developers */ |
16621 | 127 # endif |
25534 | 128 #endif /* __GNUC__ */ |
1566 | 129 |
22002
ebd2d5efb11b
filename double-conversion, especially usefull for CJK users :-)
gpoirier
parents:
21290
diff
changeset
|
130 const char* filename_recode(const char* filename); |
4818
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4044
diff
changeset
|
131 |
26029 | 132 #endif /* MPLAYER_MP_MSG_H */ |