[MPlayer-dev-eng] [PATCH] Fix returned capabilities in

Alvaro Lopes alvieboy at alvie.com
Mon Jan 20 13:06:35 CET 2003


Arpi wrote:

>-vop expand allows yo to render osd with any vo
>
Didn't know that :)

I included VFCAP_OSD in all CSPs because I saw vo_yuv4mpeg returning it 
in all supported CSPs.

So, is this correct now?

--- MPlayer-0.90rc2-orig/libvo/vo_jpeg.c        Sun Nov 24 21:28:32 2002
+++ MPlayer-0.90rc2/libvo/vo_jpeg.c     Mon Jan 20 12:01:20 2003
@@ -5,6 +5,8 @@
  *
  * Copyright 2002 by Pontscho (pontscho at makacs.poliod.hu)
  *
+ * 2003/01/19 Alvaro Lopes <alvieboy at alvie.com>
+ *            - Fix returned capabilities
  */
 
 #include <stdio.h>
@@ -208,10 +210,12 @@
    case IMGFMT_IYUV:
    case IMGFMT_I420:
    case IMGFMT_YV12:
-   case IMGFMT_RGB|24:
+       return VFCAP_CSP_SUPPORTED|VFCAP_ACCEPT_STRIDE;
    case IMGFMT_BGR|24:
    case IMGFMT_BGR|32:
-        return 1;
+        return VFCAP_CSP_SUPPORTED;
+   case IMGFMT_RGB|24:
+        return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD;
   }
  return 0;
 }



-- 

Álvaro Lopes 
---------------------
A .sig is just a .sig




More information about the MPlayer-dev-eng mailing list