Mercurial > mplayer.hg
annotate libaf/af_mp.h @ 9278:caea8ed36b48
The reason why mplayer crashes (in some cases) when using x11
output and -wid (>0) parameter is this:
Mplayer by default creates a colormap using DirectColor visual. If the
window given to mplayer uses TrueColor visual there will be an error
when mplayer sets the colormap for the window. This patch
modifies mplayer to use TrueColor visual if the window given to mplayer
uses TrueColor. Another solution is to make sure that the window given to
mplayer is created using DirectColor visual if it is supported by the
display.
Jouni Tulkki <jitulkki@cc.hut.fi>
author | arpi |
---|---|
date | Tue, 04 Feb 2003 18:31:44 +0000 |
parents | a6615e7bc710 |
children | 815f03b7cee5 |
rev | line source |
---|---|
8167 | 1 /* Include file for mplayer specific defines and includes */ |
2 #ifndef __af_mp_h__ | |
3 #define __af_mp_h__ | |
4 | |
5 #include "../config.h" | |
6 #include "../mp_msg.h" | |
7 #include "../cpudetect.h" | |
8 #include "../libao2/afmt.h" | |
9 | |
10 /* Set the initialization type from mplayers cpudetect */ | |
11 #ifdef AF_INIT_TYPE | |
12 #undef AF_INIT_TYPE | |
13 #define AF_INIT_TYPE \ | |
14 ((gCpuCaps.has3DNow || gCpuCaps.hasSSE)?AF_INIT_FAST:AF_INIT_SLOW) | |
15 #endif | |
16 | |
17 #ifdef af_msg | |
18 #undef af_msg | |
19 #endif | |
20 #define af_msg(lev, args... ) \ | |
8957
36a5cdca733b
bunkus: Encapsulated arguments to #define in ( ... ) so that the #defines can be safely used like functions: mydef(flag ? val1 : val2)
mosu
parents:
8735
diff
changeset
|
21 mp_msg(MSGT_AFILTER,(((lev)<0)?((lev)+3):(((lev)==0)?MSGL_INFO:((lev)+5))), ##args ) |
8167 | 22 |
23 /* Decodes the format from mplayer format to libaf format */ | |
24 extern int af_format_decode(int format); | |
8993
a6615e7bc710
added af_format_encode() to convert sample format from libaf to mplayer (OSS)
arpi
parents:
8957
diff
changeset
|
25 extern int af_format_encode(void* fmt); |
8167 | 26 |
27 #endif /* __af_mp_h__ */ |