Mercurial > mplayer.hg
annotate mp_msg.h @ 20487:5c953a55103f
1000l: fixed broken handling of the adaption field - part 2
The value of c must be between 0 and 183 inclusive; is c is 0
I can't skip c-1 bytes!
author | nicodvb |
---|---|
date | Sun, 29 Oct 2006 10:55:02 +0000 |
parents | bd821fd3e244 |
children | e8885ec63928 |
rev | line source |
---|---|
4818
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4044
diff
changeset
|
1 |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4044
diff
changeset
|
2 #ifndef _MP_MSG_H |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4044
diff
changeset
|
3 #define _MP_MSG_H |
1566 | 4 |
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
|
5 // 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
|
6 extern int verbose; |
1562 | 7 |
8 // verbosity elevel: | |
9 | |
17968 | 10 /* Only messages level MSGL_FATAL-MSGL_STATUS should be translated, |
11 * messages level MSGL_V and above should not be translated. */ | |
1566 | 12 |
1562 | 13 #define MSGL_FATAL 0 // will exit/abort |
1563 | 14 #define MSGL_ERR 1 // continues |
1562 | 15 #define MSGL_WARN 2 // only warning |
1566 | 16 #define MSGL_HINT 3 // short help message |
17 #define MSGL_INFO 4 // -quiet | |
18 #define MSGL_STATUS 5 // v=0 | |
19 #define MSGL_V 6 // v=1 | |
20 #define MSGL_DBG2 7 // v=2 | |
21 #define MSGL_DBG3 8 // v=3 | |
22 #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
|
23 #define MSGL_DBG5 10 // v=5 |
1562 | 24 |
13122 | 25 #define MSGL_FIXME 1 // for conversions from printf where the appropriate MSGL is not known; set equal to ERR for obtrusiveness |
26 #define MSGT_FIXME 0 // for conversions from printf where the appropriate MSGT is not known; set equal to GLOBAL for obtrusiveness | |
27 | |
1562 | 28 // code/module: |
29 | |
1566 | 30 #define MSGT_GLOBAL 0 // common player stuff errors |
31 #define MSGT_CPLAYER 1 // console player (mplayer.c) | |
1562 | 32 #define MSGT_GPLAYER 2 // gui player |
33 | |
34 #define MSGT_VO 3 // libvo | |
35 #define MSGT_AO 4 // libao | |
36 | |
37 #define MSGT_DEMUXER 5 // demuxer.c (general stuff) | |
38 #define MSGT_DS 6 // demux stream (add/read packet etc) | |
39 #define MSGT_DEMUX 7 // fileformat-specific stuff (demux_*.c) | |
1563 | 40 #define MSGT_HEADER 8 // fileformat-specific header (*header.c) |
1562 | 41 |
1566 | 42 #define MSGT_AVSYNC 9 // mplayer.c timer stuff |
43 #define MSGT_AUTOQ 10 // mplayer.c auto-quality stuff | |
44 | |
45 #define MSGT_CFGPARSER 11 // cfgparser.c | |
46 | |
47 #define MSGT_DECAUDIO 12 // av decoder | |
48 #define MSGT_DECVIDEO 13 | |
49 | |
50 #define MSGT_SEEK 14 // seeking code | |
51 #define MSGT_WIN32 15 // win32 dll stuff | |
52 #define MSGT_OPEN 16 // open.c (stream opening) | |
1593 | 53 #define MSGT_DVD 17 // open.c (DVD init/read/seek) |
1566 | 54 |
1973
5216f108cb4f
all error/warn/info messages moved to help_mp-en.h for translation
arpi
parents:
1593
diff
changeset
|
55 #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
|
56 #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
|
57 |
5216f108cb4f
all error/warn/info messages moved to help_mp-en.h for translation
arpi
parents:
1593
diff
changeset
|
58 #define MSGT_STREAM 20 // stream.c |
2787 | 59 #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
|
60 |
2620 | 61 #define MSGT_MENCODER 22 |
62 | |
2787 | 63 #define MSGT_XACODEC 23 // XAnim codecs |
64 | |
65 #define MSGT_TV 24 // TV input subsystem | |
66 | |
3085 | 67 #define MSGT_OSDEP 25 // OS Dependant parts (linux/ for now) |
68 | |
3821 | 69 #define MSGT_SPUDEC 26 // spudec.c |
70 | |
4044 | 71 #define MSGT_PLAYTREE 27 // Playtree handeling (playtree.c, playtreeparser.c) |
72 | |
5198
a528f6c891b5
A bug fix in the auto-repeat stuff + moved all printf to mp_msg
albeu
parents:
5101
diff
changeset
|
73 #define MSGT_INPUT 28 |
a528f6c891b5
A bug fix in the auto-repeat stuff + moved all printf to mp_msg
albeu
parents:
5101
diff
changeset
|
74 |
5505 | 75 #define MSGT_VFILTER 29 |
76 | |
5638
86663f1b9b00
new osd code, use osd objs to follow changes and do minimal updates
arpi
parents:
5505
diff
changeset
|
77 #define MSGT_OSD 30 |
86663f1b9b00
new osd code, use osd objs to follow changes and do minimal updates
arpi
parents:
5505
diff
changeset
|
78 |
5915 | 79 #define MSGT_NETWORK 31 |
80 | |
5936 | 81 #define MSGT_CPUDETECT 32 |
82 | |
83 #define MSGT_CODECCFG 33 | |
84 | |
85 #define MSGT_SWS 34 | |
86 | |
6110 | 87 #define MSGT_VOBSUB 35 |
6296 | 88 #define MSGT_SUBREADER 36 |
6110 | 89 |
7568 | 90 #define MSGT_AFILTER 37 // Audio filter messages |
91 | |
9862 | 92 #define MSGT_NETST 38 // Netstream |
93 | |
11222 | 94 #define MSGT_MUXER 39 // muxer layer |
95 | |
17947 | 96 #define MSGT_OSD_MENU 40 |
97 | |
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
|
98 #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
|
99 |
19568
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
18237
diff
changeset
|
100 #define MSGT_RADIO 42 |
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
18237
diff
changeset
|
101 |
1562 | 102 #define MSGT_MAX 64 |
103 | |
17566
f580a7755ac5
Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents:
17106
diff
changeset
|
104 void mp_msg_init(void); |
7058
2e5c07262861
new v4l capture patch by Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>:
arpi
parents:
6296
diff
changeset
|
105 int mp_msg_test(int mod, int lev); |
1562 | 106 |
5101 | 107 #include "config.h" |
108 | |
5287 | 109 #ifdef TARGET_OS2 |
110 // va_start/vsnprintf seems to be broken under OS2 :( | |
8957
36a5cdca733b
bunkus: Encapsulated arguments to #define in ( ... ) so that the #defines can be safely used like functions: mydef(flag ? val1 : val2)
mosu
parents:
7568
diff
changeset
|
111 #define mp_msg(mod,lev, fmt, args... ) do{if((lev)<=mp_msg_levels[mod]) printf( fmt, ## args );}while(0) |
5287 | 112 #define mp_dbg(mod,lev, args... ) |
113 #else | |
114 | |
1568
2d4904c16667
modifications to use variable number of arguments in #define with GCC
atlka
parents:
1566
diff
changeset
|
115 #ifdef __GNUC__ |
16618 | 116 void mp_msg(int mod, int lev, const char *format, ... ) __attribute__ ((format (printf, 3, 4))); |
16621 | 117 # ifdef MP_DEBUG |
118 # define mp_dbg(mod,lev, args... ) mp_msg(mod, lev, ## args ) | |
119 # else | |
120 # define mp_dbg(mod,lev, args... ) /* only usefull for developers */ | |
121 # endif | |
16618 | 122 #else // not GNU C |
123 void mp_msg(int mod, int lev, const char *format, ... ); | |
16621 | 124 # ifdef MP_DEBUG |
125 # define mp_dbg(mod,lev, ... ) mp_msg(mod, lev, __VA_ARGS__) | |
126 # else | |
127 # define mp_dbg(mod,lev, ... ) /* only usefull for developers */ | |
128 # endif | |
16618 | 129 #endif |
1566 | 130 |
4818
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4044
diff
changeset
|
131 |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4044
diff
changeset
|
132 #endif |
5287 | 133 #endif |