Added loading of video node factories from plugins

This change will allow us to add new video node factories that
can be loaded dynamically at runtime.

The previous video node factories, I420 and RGB have been kept
as static parts of the Qt Multimedia imports, but can be moved
to plugins at a later date.

For plugins to be able to find and use QSGVideoNode, the class
has to be exported.

Change-Id: Idbead9a8ad33619cebe90fcec92eb29cf52ae9bd
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
Jonas Rabbe
2012-02-06 10:55:59 +10:00
committed by Qt by Nokia
parent a94c8a1ac2
commit 6de7c31040
12 changed files with 180 additions and 11 deletions

View File

@@ -70,6 +70,11 @@ QSGVideoNode *QSGVideoNodeFactory_RGB::createNode(const QVideoSurfaceFormat &for
return 0;
}
QStringList QSGVideoNodeFactory_RGB::keys() const
{
return QStringList() << QSGVideoNodeFactoryPluginKey;
}
class QSGVideoMaterialShader_RGB : public QSGMaterialShader
{