[MPlayer-dev-eng] Video output for RV280+Mesa3D

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Fri Dec 5 15:12:46 CET 2008


Hello,
On Fri, Dec 05, 2008 at 03:34:45PM +0300, malc wrote:
> As it stand this vo_rv280 is faster than anything, XV included, and by
> a large margin:
> 
> Playing:
> http://fedoraproject.org/w/uploads/8/83/OpenVideo_Submissions_Bertoldi_Fly_Your_Mind.ogg
> 
> ./mplayer -benchmark Bertoldi_Fly_Your_Mind.ogg -nosound -vo [rv280|xv] yields:

Please compare to attached patch with "-vo gl -dr".
I can see a lot of reasons why it could still be a lot slower, but it is
the first step to finding out which are the parts of your patch which
are critical for performance.

Greetings,
Reimar Döffinger
-------------- next part --------------
Index: libvo/gl_common.c
===================================================================
--- libvo/gl_common.c	(revision 28090)
+++ libvo/gl_common.c	(working copy)
@@ -212,6 +212,13 @@
       *gl_format = GL_LUMINANCE;
       *gl_type = GL_UNSIGNED_BYTE;
       break;
+    case IMGFMT_UYVY:
+    case IMGFMT_YUY2:
+      *gl_texfmt = GL_YCBCR_MESA;
+      *bpp = 16;
+      *gl_format = GL_YCBCR_MESA;
+      *gl_type = fmt == IMGFMT_UYVY ? GL_UNSIGNED_SHORT_8_8_MESA : GL_UNSIGNED_SHORT_8_8_REV_MESA;
+      break;
 #if 0
     // we do not support palettized formats, although the format the
     // swscale produces works
@@ -484,6 +491,8 @@
     case GL_LUMINANCE:
     case GL_ALPHA:
       return component_size;
+    case GL_YCBCR_MESA:
+      return 2;
     case GL_RGB:
     case GL_BGR:
       return 3 * component_size;


More information about the MPlayer-dev-eng mailing list