loader: Reuse do_cpuid from cpudetect.c in loader/win32.c
[mplayer/glamo.git] / mp_osd.h
blob7c5da6b7a92c92bdb410d72229d86c3532fb6de5
1 /*
2 * This file is part of MPlayer.
4 * MPlayer is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * MPlayer is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #ifndef MPLAYER_MP_OSD_H
20 #define MPLAYER_MP_OSD_H
22 #define OSD_MSG_TV_CHANNEL 0
23 #define OSD_MSG_TEXT 1
24 #define OSD_MSG_SUB_DELAY 2
25 #define OSD_MSG_SPEED 3
26 #define OSD_MSG_OSD_STATUS 4
27 #define OSD_MSG_BAR 5
28 #define OSD_MSG_PAUSE 6
29 #define OSD_MSG_RADIO_CHANNEL 7
30 /// Base id for messages generated from the commmand to property bridge.
31 #define OSD_MSG_PROPERTY 0x100
32 #define OSD_MSG_SUB_BASE 0x1000
34 #define MAX_OSD_LEVEL 3
35 #define MAX_TERM_OSD_LEVEL 1
37 // These appear in options list
38 extern int term_osd;
40 struct MPContext;
42 void set_osd_bar(struct MPContext *mpctx, int type,const char* name,double min,double max,double val);
43 void set_osd_msg(int id, int level, int time, const char* fmt, ...);
44 void set_osd_tmsg(int id, int level, int time, const char* fmt, ...);
45 void rm_osd_msg(int id);
47 #endif /* MPLAYER_MP_OSD_H */