[MPlayer-dev-eng] [PATCH] dvdnav patch to still frames

Ötvös Attila oattila at chello.hu
Mon Sep 17 19:53:29 CEST 2007


2007. szeptember 15. 11.46 dátummal Nico Sabbi ezt írta:

Hi Nico Sabbi!

I make two version (and corrected):

patchs with smpi:
dvdnav-main.patch
dvdnav-smpi.patch

patchs with Uoti's patch:
dvdnav-main.patch
dvdnav-redraw_osd.patch

> >  #endif
> > Index: mplayer.c
>
> I'd still like to know from Uoti or from someone if those changes to
> mpi are acceptable (that I doubt) and if they clash with Uoti's
> patches to handle stills


I think need original image to Uoti's patch because patch fill black now:

--- libvo/osd.c	2007-09-17 18:52:02.000000000 +0200
+++ libvo/osd.c	2007-09-10 19:17:29.000000000 +0200
@@ -131,6 +131,21 @@
 #endif //!RUNTIME_CPUDETECT
 }
 
+
+/* Draw an ugly rectangle to cover old OSD content */
+void vo_overwrite_yv12(int w, int h, unsigned char* dstbase, int dststride)
+{
+    int y;
+    for (y = 0; y < h; y++) {
+        int x;
+        for (x = 0; x < w; x++)
+            dstbase[x] = 0;
+        dstbase += dststride;
+    }
+    return;
+}

Best regard,
Attila
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvdnav-main.patch
Type: text/x-diff
Size: 23904 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070917/94a35e56/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvdnav-redraw_osd.patch
Type: text/x-diff
Size: 10421 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070917/94a35e56/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvdnav-smpi.patch
Type: text/x-diff
Size: 3985 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070917/94a35e56/attachment-0002.patch>


More information about the MPlayer-dev-eng mailing list