616
|
1
|
|
2 #ifndef __MPLAYER_SUB_H
|
|
3 #define __MPLAYER_SUB_H
|
|
4
|
865
|
5 #if 0
|
|
6
|
|
7 // disable subtitles:
|
|
8 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)){
|
|
9 }
|
|
10
|
|
11 #else
|
|
12
|
616
|
13 #include "../subreader.h"
|
218
|
14
|
|
15 extern font_desc_t* vo_font;
|
|
16
|
|
17 extern unsigned char* vo_osd_text;
|
|
18
|
|
19 extern int vo_osd_progbar_type;
|
|
20 extern int vo_osd_progbar_value; // 0..255
|
|
21
|
254
|
22 extern subtitle* vo_sub;
|
218
|
23
|
|
24 #define OSD_PLAY 0x01
|
|
25 #define OSD_PAUSE 0x02
|
|
26 #define OSD_STOP 0x03
|
|
27 #define OSD_REW 0x04
|
|
28 #define OSD_FFW 0x05
|
|
29 #define OSD_CLOCK 0x06
|
|
30 #define OSD_CONTRAST 0x07
|
|
31 #define OSD_SATURATION 0x08
|
|
32 #define OSD_VOLUME 0x09
|
|
33 #define OSD_BRIGHTNESS 0x0A
|
|
34 #define OSD_HUE 0x0B
|
|
35
|
|
36 #define OSD_PB_START 0x10
|
|
37 #define OSD_PB_0 0x11
|
|
38 #define OSD_PB_END 0x12
|
|
39 #define OSD_PB_1 0x13
|
|
40
|
1552
|
41 /* now in textform */
|
|
42 static char * osd_names[]={
|
|
43 "Seekbar",
|
|
44 "Play",
|
|
45 "Pause",
|
|
46 "Stop",
|
|
47 "Rewind",
|
|
48 "Forward",
|
|
49 "Clock",
|
|
50 "Contrast",
|
|
51 "Saturation",
|
|
52 "Volume",
|
1910
|
53 "Brightness",
|
1552
|
54 "Hue"
|
|
55 };
|
|
56 static char * osd_names_short[] ={ "", "|>", "||", "[]", "<<" , ">>", "", "", "", "", "", ""};
|
|
57
|
|
58
|
|
59
|
898
|
60 //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));
|
865
|
61 //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));
|
|
62 //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));
|
898
|
63 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));
|
218
|
64
|
616
|
65 #endif
|
865
|
66 #endif
|