diff libvo/vo_vdpau.c @ 28611:00c0123b6df3

Add VOCAP_NOSLICES and use it to allow vo_vdpau to not support slices for YV12 - since VDPAU only has functions to upload the full frame at once there is no sense in supporting draw_slice for that.
author reimar
date Wed, 18 Feb 2009 12:30:15 +0000
parents 4172d83194f2
children 7b16ccf423b4
line wrap: on
line diff
--- a/libvo/vo_vdpau.c	Wed Feb 18 10:32:07 2009 +0000
+++ b/libvo/vo_vdpau.c	Wed Feb 18 12:30:15 2009 +0000
@@ -654,14 +654,16 @@
 
 static int query_format(uint32_t format)
 {
+    int default_flags = VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW | VFCAP_HWSCALE_UP | VFCAP_HWSCALE_DOWN | VFCAP_OSD;
     switch (format) {
         case IMGFMT_YV12:
+            return default_flags | VOCAP_NOSLICES;
         case IMGFMT_VDPAU_MPEG1:
         case IMGFMT_VDPAU_MPEG2:
         case IMGFMT_VDPAU_H264:
         case IMGFMT_VDPAU_WMV3:
         case IMGFMT_VDPAU_VC1:
-            return VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW | VFCAP_HWSCALE_UP | VFCAP_HWSCALE_DOWN | VFCAP_OSD;
+            return default_flags;
     }
     return 0;
 }