[Mplayer-cvslog] CVS: main/libvo sub.c,1.36,1.37 sub.h,1.8,1.9
Arpi of Ize
arpi at mplayer.dev.hu
Tue Nov 20 19:36:52 CET 2001
Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv10251
Modified Files:
sub.c sub.h
Log Message:
DVD sub patch by Kim Minh Kaplan <kmkaplan at selfoffice.com>
Index: sub.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/sub.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- sub.c 27 Oct 2001 14:30:43 -0000 1.36
+++ sub.c 20 Nov 2001 18:36:50 -0000 1.37
@@ -272,6 +272,12 @@
}
}
+void *vo_spudec=NULL;
+
+inline static void vo_draw_spudec(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)){
+ spudec_draw(vo_spudec, draw_alpha);
+}
+
static int draw_alpha_init_flag=0;
extern void vo_draw_alpha_init();
@@ -295,6 +301,10 @@
if(vo_osd_progbar_type>=0 && vo_font->font[OSD_PB_0]>=0){
vo_draw_text_progbar(dxs,dys,draw_alpha);
+ }
+
+ if(vo_spudec){
+ vo_draw_spudec(dxs,dys,draw_alpha);
}
}
Index: sub.h
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/sub.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- sub.h 27 Oct 2001 14:30:43 -0000 1.8
+++ sub.h 20 Nov 2001 18:36:50 -0000 1.9
@@ -21,6 +21,8 @@
extern subtitle* vo_sub;
+extern void* vo_spudec;
+
#define OSD_PLAY 0x01
#define OSD_PAUSE 0x02
#define OSD_STOP 0x03
More information about the MPlayer-cvslog
mailing list