diff options
author | Andy Nichols <andy.nichols@digia.com> | 2012-11-19 16:26:38 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-21 16:56:55 +0100 |
commit | 4c2346bbddc83e8a1f8baf9fc335280ed2dace5e (patch) | |
tree | e42910522240c94c946fa4b6236b909f08df899f /src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.h | |
parent | 21c39152055131d87614f051ca08566bd51f268f (diff) |
AVFoundation: Enable QImage based frame fallback
QGraphicsVideoItem was not working because the QPainterVideoSurface was
unable to paint BGR32 format OpenGL textures. Now if the QGraphicsView
window has a QGLWidget viewport, we use the GLTextureHandle to render
the video, otherwise we fallback to the software QImage rendered case.
Task-number: QTBUG-28017
Change-Id: I9304e0a2536f15075ae34cdd509ef24fbc18604e
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
Diffstat (limited to 'src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.h')
-rw-r--r-- | src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.h b/src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.h index 19916bd1a..adee57858 100644 --- a/src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.h +++ b/src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.h @@ -85,6 +85,7 @@ private: AVFVideoFrameRenderer *m_frameRenderer; AVFDisplayLink *m_displayLink; QSize m_nativeSize; + bool m_enableOpenGL; }; QT_END_NAMESPACE |