diff options
author | wm4 <wm4@nowhere> | 2013-10-30 21:47:14 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-10-30 22:19:31 +0100 |
commit | 2ccc3721ef9fc0acf39203e6709fa638a79222ae (patch) | |
tree | b4e4ad1b44b0baa0f3ce7c9696213dcabce3699f /mpvcore/player/mp_core.h | |
parent | fdd1b8cac13b7504e11db7e63f20d86e0f2e1cb2 (diff) | |
download | mpv-2ccc3721ef9fc0acf39203e6709fa638a79222ae.tar.bz2 mpv-2ccc3721ef9fc0acf39203e6709fa638a79222ae.tar.xz |
player: merge mp_osd.h into mp_core.h
Just doing this because mp_osd.h and osd.c is not consistent.
There are some other header files (command.h and screenshot.h), but
since I don't feel too good about inflating mp_core.h, I'm not merging
them, at least not yet.
Diffstat (limited to 'mpvcore/player/mp_core.h')
-rw-r--r-- | mpvcore/player/mp_core.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mpvcore/player/mp_core.h b/mpvcore/player/mp_core.h index d5b1bb2995..05909543f4 100644 --- a/mpvcore/player/mp_core.h +++ b/mpvcore/player/mp_core.h @@ -21,6 +21,7 @@ #include <stdbool.h> +#include "compat/compiler.h" #include "mpvcore/options.h" #include "demux/demux.h" @@ -77,6 +78,28 @@ enum mp_osd_seek_info { OSD_SEEK_INFO_EDITION = 8, }; + +enum { + OSD_MSG_TEXT = 1, + OSD_MSG_SUB_DELAY, + OSD_MSG_SPEED, + OSD_MSG_OSD_STATUS, + OSD_MSG_BAR, + OSD_MSG_PAUSE, + OSD_MSG_RADIO_CHANNEL, + OSD_MSG_TV_CHANNEL, + + // Base id for messages generated from the commmand to property bridge. + OSD_MSG_PROPERTY = 0x100, + OSD_MSG_SUB_BASE = 0x1000, + + // other constants + MAX_OSD_LEVEL = 3, + MAX_TERM_OSD_LEVEL = 1, + OSD_LEVEL_INVISIBLE = 4, + OSD_BAR_SEEK = 256, +}; + enum seek_type { MPSEEK_NONE = 0, MPSEEK_RELATIVE, @@ -358,6 +381,15 @@ void stream_dump(struct MPContext *mpctx); // osd.c void write_status_line(struct MPContext *mpctx, const char *line); void print_status(struct MPContext *mpctx); +void set_osd_bar(struct MPContext *mpctx, int type, const char* name, + double min, double max, double val); +void set_osd_msg(struct MPContext *mpctx, int id, int level, int time, + const char* fmt, ...) PRINTF_ATTRIBUTE(5,6); +void set_osd_tmsg(struct MPContext *mpctx, int id, int level, int time, + const char* fmt, ...) PRINTF_ATTRIBUTE(5,6); +void rm_osd_msg(struct MPContext *mpctx, int id); +void set_osd_function(struct MPContext *mpctx, int osd_function); +void set_osd_subtitle(struct MPContext *mpctx, const char *text); // playloop.c void pause_player(struct MPContext *mpctx); |