[MPlayer-dev-eng] Question regarding MPlayer's OpenGL output

Reimar Döffinger Reimar.Doeffinger at gmx.de
Wed Oct 19 20:33:00 CEST 2011


On Wed, Oct 19, 2011 at 08:30:20PM +0200, Reimar Döffinger wrote:
> On Wed, Oct 19, 2011 at 02:12:09PM -0400, Mostapha El-Shafey wrote:
> > Here's something else I noticed: When running MPlayer in 'gl2' video output
> > mode, the CPU usage goes to 35%, up from 5% for 'gl' mode. What exactly is
> > the difference between these two modes?
> 
> gl2 does not use YUV automatically.
> See the yuv= options for both gl and gl2.
> 
> > glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 512, 512, 0, GL_BGR_EXT,
> > GL_UNSIGNED_BYTE, 0);
> 
> A RGB texture is 3 times as much data, so it is 3 times slower
> by that alone. Probably GL_BGR_EXT isn't optimized since nobody
> (except you) uses it and is another multiple times slower.

Scratch that last part, I was confused because MPlayer uses it without
the _EXT part. I have never tested BGR vs. RGB performance though,
it might make a difference.


More information about the MPlayer-dev-eng mailing list