[MPlayer-dev-eng] [PATCH]Allow vo vdpau to use IMGFMT_I420 and IMGFMT_IYUV

Carl Eugen Hoyos cehoyos at rainbow.studorg.tuwien.ac.at
Sun Mar 29 13:48:27 CEST 2009


Hi!

Is there a difference between IMGFMT_YV12, IMGFMT_I420 and IMGFMT_IYUV?
All are mapped to PIX_FMT_YUV420P in fmt-conversion.c.

Please comment, Carl Eugen
-------------- next part --------------
Index: libvo/vo_vdpau.c
===================================================================
--- libvo/vo_vdpau.c	(revision 29094)
+++ libvo/vo_vdpau.c	(working copy)
@@ -930,6 +930,8 @@
     int default_flags = VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW | VFCAP_HWSCALE_UP | VFCAP_HWSCALE_DOWN | VFCAP_OSD | VFCAP_EOSD | VFCAP_EOSD_UNSCALED;
     switch (format) {
         case IMGFMT_YV12:
+        case IMGFMT_I420:
+        case IMGFMT_IYUV:
             return default_flags | VOCAP_NOSLICES;
         case IMGFMT_VDPAU_MPEG1:
         case IMGFMT_VDPAU_MPEG2:


More information about the MPlayer-dev-eng mailing list