comparison libvo/sub.c @ 865:83919c1b9924

removed redundant osd.h includes
author arpi_esp
date Thu, 24 May 2001 20:48:45 +0000
parents d7ab7dbadb22
children 76fd9463b9d3
comparison
equal deleted inserted replaced
864:f0a3b5bf2e7a 865:83919c1b9924
5 font_desc_t* vo_font=NULL; 5 font_desc_t* vo_font=NULL;
6 6
7 unsigned char* vo_osd_text="00:00:00"; 7 unsigned char* vo_osd_text="00:00:00";
8 int sub_unicode=0; 8 int sub_unicode=0;
9 9
10 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)){ 10 static 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)){
11 int len=strlen(vo_osd_text); 11 int len=strlen(vo_osd_text);
12 int j; 12 int j;
13 int y=10; 13 int y=10;
14 int x=20; 14 int x=20;
15 15
29 } 29 }
30 30
31 int vo_osd_progbar_type=-1; 31 int vo_osd_progbar_type=-1;
32 int vo_osd_progbar_value=100; // 0..255 32 int vo_osd_progbar_value=100; // 0..255
33 33
34 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)){ 34 static 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)){
35 int len=strlen(vo_osd_text); 35 int len=strlen(vo_osd_text);
36 int i; 36 int i;
37 int y=dys/2; 37 int y=dys/2;
38 int x; 38 int x;
39 int c,font; 39 int c,font;
89 89
90 } 90 }
91 91
92 subtitle* vo_sub=NULL; 92 subtitle* vo_sub=NULL;
93 93
94 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)){ 94 static 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)){
95 int i; 95 int i;
96 int y; 96 int y;
97 y=dys-(1+vo_sub->lines-1)*vo_font->height-10; 97 y=dys-(1+vo_sub->lines-1)*vo_font->height-10;
98 98
99 // too long lines divide into smaller ones 99 // too long lines divide into smaller ones