[vlc-devel] commit: XCB-XV: avoid slow packed YUV on OMAP adaptors ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Oct 19 19:38:11 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Oct 19 20:37:30 2009 +0300| [8df18e2daf0d16177fd5317e0784ef637e307e32] | committer: Rémi Denis-Courmont 

XCB-XV: avoid slow packed YUV on OMAP adaptors

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8df18e2daf0d16177fd5317e0784ef637e307e32
---

 modules/video_output/xcb/xvideo.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/modules/video_output/xcb/xvideo.c b/modules/video_output/xcb/xvideo.c
index 2978d43..85b606d 100644
--- a/modules/video_output/xcb/xvideo.c
+++ b/modules/video_output/xcb/xvideo.c
@@ -376,6 +376,16 @@ static int Open (vlc_object_t *obj)
         for (size_t i = 0; chromas[i] && (xfmt == NULL); i++)
         {
             chroma = chromas[i];
+
+            /* Oink oink! */
+            if ((chroma == VLC_CODEC_I420 || chroma == VLC_CODEC_YV12)
+             && a->name_size >= 4
+             && !memcmp ("OMAP", xcb_xv_adaptor_info_name (a), 4))
+            {
+                msg_Dbg (vd, "skipping slow I420 format");
+                continue; /* OMAP framebuffer sucks at YUV 4:2:0 */
+            }
+
             xfmt = FindFormat (vd, chroma, &fmt, a->base_id, r, &p_sys->att);
         }
 




More information about the vlc-devel mailing list