changeset 7694:b64f14fdadfb

also set VFCAP_ACCEPT_STRIDE when draw_image() is implemented
author arpi
date Thu, 10 Oct 2002 00:09:34 +0000
parents 3f218f3172f3
children 368d333d92c2
files libvo/mga_common.c libvo/vo_png.c libvo/vo_xv.c libvo/vosub_vidix.c
diffstat 4 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/mga_common.c	Thu Oct 10 00:04:25 2002 +0000
+++ b/libvo/mga_common.c	Thu Oct 10 00:09:34 2002 +0000
@@ -189,7 +189,7 @@
     case IMGFMT_IYUV:
     case IMGFMT_YUY2:
     case IMGFMT_UYVY:
-        return 3 | VFCAP_OSD|VFCAP_HWSCALE_UP|VFCAP_HWSCALE_DOWN;
+        return 3 | VFCAP_OSD|VFCAP_HWSCALE_UP|VFCAP_HWSCALE_DOWN|VFCAP_ACCEPT_STRIDE;
     }
     return 0;
 }
--- a/libvo/vo_png.c	Thu Oct 10 00:04:25 2002 +0000
+++ b/libvo/vo_png.c	Thu Oct 10 00:09:34 2002 +0000
@@ -284,10 +284,10 @@
     case IMGFMT_IYUV:
     case IMGFMT_I420:
     case IMGFMT_YV12:
-	return VFCAP_CSP_SUPPORTED|VFCAP_OSD;
+	return VFCAP_CSP_SUPPORTED|VFCAP_OSD|VFCAP_ACCEPT_STRIDE;
     case IMGFMT_RGB|24:
     case IMGFMT_BGR|24:
-        return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW;
+        return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_ACCEPT_STRIDE;
     }
     return 0;
 }
--- a/libvo/vo_xv.c	Thu Oct 10 00:04:25 2002 +0000
+++ b/libvo/vo_xv.c	Thu Oct 10 00:09:34 2002 +0000
@@ -698,7 +698,7 @@
 
 static uint32_t query_format(uint32_t format)
 {
-    int flag=3|VFCAP_HWSCALE_UP|VFCAP_HWSCALE_DOWN|VFCAP_OSD; // FIXME! check for DOWN
+    int flag=3|VFCAP_HWSCALE_UP|VFCAP_HWSCALE_DOWN|VFCAP_OSD|VFCAP_ACCEPT_STRIDE; // FIXME! check for DOWN
    /* check image formats */
      if(format==IMGFMT_BGR24){ format=IMGFMT_YV12;flag&=~2;flag|=VFCAP_FLIP;} // conversion!
      for(i = 0; i < formats; i++){
--- a/libvo/vosub_vidix.c	Thu Oct 10 00:04:25 2002 +0000
+++ b/libvo/vosub_vidix.c	Thu Oct 10 00:09:34 2002 +0000
@@ -353,7 +353,7 @@
   vdlQueryFourcc(vidix_handler,&vidix_fourcc);
   if (vidix_fourcc.depth == VID_DEPTH_NONE)
     return 0;
-  return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_HWSCALE_UP|VFCAP_HWSCALE_DOWN|VFCAP_OSD;
+  return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_HWSCALE_UP|VFCAP_HWSCALE_DOWN|VFCAP_OSD|VFCAP_ACCEPT_STRIDE;
 }
 
 int vidix_grkey_support(void)