2001-03-27 00:32:24 +00:00
|
|
|
|
2001-04-24 11:42:04 +00:00
|
|
|
#ifndef __MPLAYER_SUB_H
|
|
|
|
#define __MPLAYER_SUB_H
|
|
|
|
|
2001-05-24 20:48:45 +00:00
|
|
|
#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
|
|
|
|
|
2001-04-24 11:42:04 +00:00
|
|
|
#include "../subreader.h"
|
|
|
|
|
2001-03-27 00:32:24 +00:00
|
|
|
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
|
|
|
|
|
2001-03-30 03:01:50 +00:00
|
|
|
extern subtitle* vo_sub;
|
2001-03-27 00:32:24 +00:00
|
|
|
|
2001-11-20 18:36:50 +00:00
|
|
|
extern void* vo_spudec;
|
2002-01-10 17:20:27 +00:00
|
|
|
extern void* vo_vobsub;
|
2001-11-20 18:36:50 +00:00
|
|
|
|
2001-03-27 00:32:24 +00:00
|
|
|
#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
|
|
|
|
|
2001-08-16 15:18:46 +00:00
|
|
|
/* now in textform */
|
2001-10-27 14:30:43 +00:00
|
|
|
extern char * __sub_osd_names[];
|
|
|
|
extern char * __sub_osd_names_short[];
|
2001-08-16 15:18:46 +00:00
|
|
|
|
2001-05-28 15:12:14 +00:00
|
|
|
//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));
|
2001-05-24 20:48:45 +00:00
|
|
|
//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));
|
2001-05-28 15:12:14 +00:00
|
|
|
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));
|
2001-03-27 00:32:24 +00:00
|
|
|
|
2002-02-22 15:25:11 +00:00
|
|
|
int vo_osd_changed(int new_value);
|
|
|
|
|
2001-04-24 11:42:04 +00:00
|
|
|
#endif
|
2001-05-24 20:48:45 +00:00
|
|
|
#endif
|