Declarative VideoOutput: added support for more rgb formats.

RGB 565, RGB 32 and BGR 32 formats added,
all of them supported with OpenGL ES.

Change-Id: I026628611c59575af5934bac0a5f95dfbc6770cb
Reviewed-on: http://codereview.qt-project.org/6644
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
This commit is contained in:
Dmytro Poplavskiy
2011-10-14 12:36:18 +10:00
committed by Qt by Nokia
parent 6b25a189ca
commit 21fbb1d025
5 changed files with 294 additions and 163 deletions

View File

@@ -42,7 +42,7 @@
#include "qsgvideonode_p.h"
#include "qsgvideonode_i420.h"
#include "qsgvideonode_rgb32.h"
#include "qsgvideonode_rgb.h"
#include <QtDeclarative/qsgitem.h>
@@ -161,9 +161,7 @@ QDeclarativeVideoOutput::QDeclarativeVideoOutput(QSGItem *parent) :
this, SLOT(_q_updateNativeSize(QVideoSurfaceFormat)), Qt::QueuedConnection);
m_videoNodeFactories.append(new QSGVideoNodeFactory_I420);
#ifndef QT_OPENGL_ES
m_videoNodeFactories.append(new QSGVideoNodeFactory_RGB32);
#endif
m_videoNodeFactories.append(new QSGVideoNodeFactory_RGB);
}
QDeclarativeVideoOutput::~QDeclarativeVideoOutput()