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

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


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.


More information about the MPlayer-dev-eng mailing list