annotate libaf/af_mp.h @ 25661:293aeec83153

Replace the persistent CODECS_FLAG_SELECTED by a local "stringset" with an almost-trivial implementation. This allows making the builtin codec structs const, and it also makes clearer that this "selected" status is not used outside the init functions.
author reimar
date Sat, 12 Jan 2008 14:05:46 +0000
parents d88f5f82826e
children 4129c8cfa742
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8167
e8832e66babd New features:
anders
parents:
diff changeset
1 /* Include file for mplayer specific defines and includes */
25551
d88f5f82826e Replace multiple inclusion guards with leading underscores by default names.
diego
parents: 16982
diff changeset
2 #ifndef AF_MP_H
d88f5f82826e Replace multiple inclusion guards with leading underscores by default names.
diego
parents: 16982
diff changeset
3 #define AF_MP_H
8167
e8832e66babd New features:
anders
parents:
diff changeset
4
16982
a9da2db9eb16 Unify include paths by adding -I.. to CFLAGS.
diego
parents: 14245
diff changeset
5 #include "config.h"
a9da2db9eb16 Unify include paths by adding -I.. to CFLAGS.
diego
parents: 14245
diff changeset
6 #include "mp_msg.h"
a9da2db9eb16 Unify include paths by adding -I.. to CFLAGS.
diego
parents: 14245
diff changeset
7 #include "cpudetect.h"
8167
e8832e66babd New features:
anders
parents:
diff changeset
8
e8832e66babd New features:
anders
parents:
diff changeset
9 /* Set the initialization type from mplayers cpudetect */
e8832e66babd New features:
anders
parents:
diff changeset
10 #ifdef AF_INIT_TYPE
e8832e66babd New features:
anders
parents:
diff changeset
11 #undef AF_INIT_TYPE
e8832e66babd New features:
anders
parents:
diff changeset
12 #define AF_INIT_TYPE \
e8832e66babd New features:
anders
parents:
diff changeset
13 ((gCpuCaps.has3DNow || gCpuCaps.hasSSE)?AF_INIT_FAST:AF_INIT_SLOW)
e8832e66babd New features:
anders
parents:
diff changeset
14 #endif
e8832e66babd New features:
anders
parents:
diff changeset
15
e8832e66babd New features:
anders
parents:
diff changeset
16 #ifdef af_msg
e8832e66babd New features:
anders
parents:
diff changeset
17 #undef af_msg
e8832e66babd New features:
anders
parents:
diff changeset
18 #endif
e8832e66babd New features:
anders
parents:
diff changeset
19 #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
20 mp_msg(MSGT_AFILTER,(((lev)<0)?((lev)+3):(((lev)==0)?MSGL_INFO:((lev)+5))), ##args )
8167
e8832e66babd New features:
anders
parents:
diff changeset
21
25551
d88f5f82826e Replace multiple inclusion guards with leading underscores by default names.
diego
parents: 16982
diff changeset
22 #endif /* AF_MP_H */