# HG changeset patch # User arpi # Date 1019741623 0 # Node ID 041bd56e41dc6412dceefe340b2bca836038326b # Parent 92f11ec38817976f480aeff5b16d1db528ea2cad added support for output of subtitles - Juergen Hammelmann diff -r 92f11ec38817 -r 041bd56e41dc libvo/vo_yuv4mpeg.c --- a/libvo/vo_yuv4mpeg.c Thu Apr 25 13:33:02 2002 +0000 +++ b/libvo/vo_yuv4mpeg.c Thu Apr 25 13:33:43 2002 +0000 @@ -8,6 +8,11 @@ * * This is undoubtedly incomplete, inaccurate, or just plain wrong. :-) * + * + * 2002/04/17 Juergen Hammelmann + * - added support for output of subtitles + * best, if you give option '-osdlevel 0' to mplayer for + * no watching the seek+timer */ #include @@ -21,6 +26,8 @@ #include "video_out.h" #include "video_out_internal.h" +#include "sub.h" + #include "fastmemcpy.h" #include "../postproc/rgb2rgb.h" @@ -81,8 +88,18 @@ return &vo_info; } +static void draw_alpha(int x0, int y0, int w, int h, unsigned char *src, + unsigned char *srca, int stride) { + if(using_format == IMGFMT_YV12) + { + vo_draw_alpha_yv12(w, h, src, srca, stride, + image+(y0*image_width+x0), image_width); + } +} + static void draw_osd(void) { + vo_draw_text(image_width, image_height, draw_alpha); } static void flip_page (void)