summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-20 18:36:50 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-20 18:36:50 +0000
commit7cb47d1cbc5b63c0c17b67a408a3eaabee2b38d9 (patch)
tree14bd177d8fa1f2134ecd518bbf4a6fa6f51fa5ba /libvo
parent8d04f52cd7753af44c05c87759b12aff672f19aa (diff)
downloadmpv-7cb47d1cbc5b63c0c17b67a408a3eaabee2b38d9.tar.bz2
mpv-7cb47d1cbc5b63c0c17b67a408a3eaabee2b38d9.tar.xz
DVD sub patch by Kim Minh Kaplan <kmkaplan@selfoffice.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3035 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/sub.c10
-rw-r--r--libvo/sub.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/libvo/sub.c b/libvo/sub.c
index 72e2a836bc..77934a691b 100644
--- a/libvo/sub.c
+++ b/libvo/sub.c
@@ -272,6 +272,12 @@ inline static void vo_draw_text_sub(int dxs,int dys,void (*draw_alpha)(int x0,in
}
}
+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();
@@ -297,5 +303,9 @@ void vo_draw_text(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h,
vo_draw_text_progbar(dxs,dys,draw_alpha);
}
+ if(vo_spudec){
+ vo_draw_spudec(dxs,dys,draw_alpha);
+ }
+
}
diff --git a/libvo/sub.h b/libvo/sub.h
index 8ffecbcd15..acaf4a050c 100644
--- a/libvo/sub.h
+++ b/libvo/sub.h
@@ -21,6 +21,8 @@ extern int vo_osd_progbar_value; // 0..255
extern subtitle* vo_sub;
+extern void* vo_spudec;
+
#define OSD_PLAY 0x01
#define OSD_PAUSE 0x02
#define OSD_STOP 0x03