demux_viv: fix unsafe code
[mplayer.git] / mp_osd.h
blob47257371adfae4ef4ef219801e512d4d58a099e9
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 struct MPContext;
39 void set_osd_bar(struct MPContext *mpctx, int type,const char* name,double min,double max,double val);
40 void set_osd_msg(int id, int level, int time, const char* fmt, ...);
41 void set_osd_tmsg(int id, int level, int time, const char* fmt, ...);
42 void set_osd_progressmsg(int id, int level, int time, ...);
43 void rm_osd_msg(int id);
45 #endif /* MPLAYER_MP_OSD_H */