# HG changeset patch # User arpi_esp # Date 990737325 0 # Node ID 83919c1b9924f3ced3b46bd06afddf02dd18b139 # Parent f0a3b5bf2e7a72131ddd95d214df8dbab8aef982 removed redundant osd.h includes diff -r f0a3b5bf2e7a -r 83919c1b9924 libvo/sub.c --- a/libvo/sub.c Thu May 24 20:14:28 2001 +0000 +++ b/libvo/sub.c Thu May 24 20:48:45 2001 +0000 @@ -7,7 +7,7 @@ unsigned char* vo_osd_text="00:00:00"; int sub_unicode=0; -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)){ +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)){ int len=strlen(vo_osd_text); int j; int y=10; @@ -31,7 +31,7 @@ int vo_osd_progbar_type=-1; int vo_osd_progbar_value=100; // 0..255 -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)){ +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)){ int len=strlen(vo_osd_text); int i; int y=dys/2; @@ -91,7 +91,7 @@ subtitle* vo_sub=NULL; -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)){ +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)){ int i; int y; y=dys-(1+vo_sub->lines-1)*vo_font->height-10; diff -r f0a3b5bf2e7a -r 83919c1b9924 libvo/sub.h --- a/libvo/sub.h Thu May 24 20:14:28 2001 +0000 +++ b/libvo/sub.h Thu May 24 20:48:45 2001 +0000 @@ -2,6 +2,14 @@ #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; @@ -31,8 +39,9 @@ #define OSD_PB_1 0x13 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)); +//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 diff -r f0a3b5bf2e7a -r 83919c1b9924 libvo/vo_dga.c --- a/libvo/vo_dga.c Thu May 24 20:14:28 2001 +0000 +++ b/libvo/vo_dga.c Thu May 24 20:48:45 2001 +0000 @@ -23,6 +23,9 @@ * - works only on x86 architectures * * $Log$ + * Revision 1.23 2001/05/24 20:48:45 arpi_esp + * removed redundant osd.h includes + * * Revision 1.22 2001/05/07 19:16:04 acki2 * - now chooses mode with highest ymax (enables doublebuffering in some cases * it didn't work before) @@ -325,8 +328,6 @@ //--------------------------------------------------------- -#include "osd.h" - static void draw_alpha( int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride ){ char *d; diff -r f0a3b5bf2e7a -r 83919c1b9924 libvo/vo_fbdev.c --- a/libvo/vo_fbdev.c Thu May 24 20:14:28 2001 +0000 +++ b/libvo/vo_fbdev.c Thu May 24 20:48:45 2001 +0000 @@ -25,7 +25,6 @@ #include "video_out.h" #include "video_out_internal.h" #include "fastmemcpy.h" -#include "osd.h" #include "sub.h" #include "yuv2rgb.h" extern void rgb15to16_mmx(char *s0, char *d0, int count); diff -r f0a3b5bf2e7a -r 83919c1b9924 libvo/vo_svga.c --- a/libvo/vo_svga.c Thu May 24 20:14:28 2001 +0000 +++ b/libvo/vo_svga.c Thu May 24 20:48:45 2001 +0000 @@ -22,7 +22,6 @@ #include "mmx.h" #include "sub.h" -#include "osd.h" extern void rgb15to16_mmx(char* s0,char* d0,int count); extern int vo_dbpp; diff -r f0a3b5bf2e7a -r 83919c1b9924 libvo/vo_x11.c --- a/libvo/vo_x11.c Thu May 24 20:14:28 2001 +0000 +++ b/libvo/vo_x11.c Thu May 24 20:48:45 2001 +0000 @@ -394,8 +394,6 @@ #endif } -#include "osd.h" - static void draw_alpha(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride){ switch(bpp){ case 24: