Add NV12/NV21 support into SG videonode.
Add new fragment shaders and update declarative render (video node) to support NV12/NV21 pixel format. Task-number: QTBUG-45021 Change-Id: I5d52007f0da56165752268d06efca156f7496b42 Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
#define QDECLARATIVEVIDEOOUTPUT_RENDER_P_H
|
||||
|
||||
#include "qdeclarativevideooutput_backend_p.h"
|
||||
#include "qsgvideonode_i420.h"
|
||||
#include "qsgvideonode_yuv.h"
|
||||
#include "qsgvideonode_rgb.h"
|
||||
#include "qsgvideonode_texture.h"
|
||||
|
||||
@@ -86,7 +86,7 @@ private:
|
||||
QOpenGLContext *m_glContext;
|
||||
QVideoFrame m_frame;
|
||||
bool m_frameChanged;
|
||||
QSGVideoNodeFactory_I420 m_i420Factory;
|
||||
QSGVideoNodeFactory_YUV m_i420Factory;
|
||||
QSGVideoNodeFactory_RGB m_rgbFactory;
|
||||
QSGVideoNodeFactory_Texture m_textureFactory;
|
||||
QMutex m_frameMutex;
|
||||
|
||||
Reference in New Issue
Block a user