mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 01:52:19 +00:00
2f70d8ead3
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1911 b3059339-0415-0410-9bf9-f77b7e298cf2
67 lines
1.7 KiB
C
67 lines
1.7 KiB
C
|
|
#ifndef __MPLAYER_SUB_H
|
|
#define __MPLAYER_SUB_H
|
|
|
|
#if 0
|
|
|
|
// disable subtitles:
|
|
static inline void vo_draw_text_osd(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)){
|
|
}
|
|
|
|
#else
|
|
|
|
#include "../subreader.h"
|
|
|
|
extern font_desc_t* vo_font;
|
|
|
|
extern unsigned char* vo_osd_text;
|
|
|
|
extern int vo_osd_progbar_type;
|
|
extern int vo_osd_progbar_value; // 0..255
|
|
|
|
extern subtitle* vo_sub;
|
|
|
|
#define OSD_PLAY 0x01
|
|
#define OSD_PAUSE 0x02
|
|
#define OSD_STOP 0x03
|
|
#define OSD_REW 0x04
|
|
#define OSD_FFW 0x05
|
|
#define OSD_CLOCK 0x06
|
|
#define OSD_CONTRAST 0x07
|
|
#define OSD_SATURATION 0x08
|
|
#define OSD_VOLUME 0x09
|
|
#define OSD_BRIGHTNESS 0x0A
|
|
#define OSD_HUE 0x0B
|
|
|
|
#define OSD_PB_START 0x10
|
|
#define OSD_PB_0 0x11
|
|
#define OSD_PB_END 0x12
|
|
#define OSD_PB_1 0x13
|
|
|
|
/* now in textform */
|
|
static char * osd_names[]={
|
|
"Seekbar",
|
|
"Play",
|
|
"Pause",
|
|
"Stop",
|
|
"Rewind",
|
|
"Forward",
|
|
"Clock",
|
|
"Contrast",
|
|
"Saturation",
|
|
"Volume",
|
|
"Brightness",
|
|
"Hue"
|
|
};
|
|
static char * osd_names_short[] ={ "", "|>", "||", "[]", "<<" , ">>", "", "", "", "", "", ""};
|
|
|
|
|
|
|
|
//extern void vo_draw_text_osd(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride));
|
|
//extern void vo_draw_text_progbar(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride));
|
|
//extern void vo_draw_text_sub(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride));
|
|
extern void vo_draw_text(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride));
|
|
|
|
#endif
|
|
#endif
|