AVFoundation: Enable QImage based frame fallback
authorAndy Nichols <andy.nichols@digia.com>
Mon, 19 Nov 2012 15:26:38 +0000 (16:26 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 21 Nov 2012 15:56:55 +0000 (16:56 +0100)
commit4c2346bbddc83e8a1f8baf9fc335280ed2dace5e
treee42910522240c94c946fa4b6236b909f08df899f
parent21c39152055131d87614f051ca08566bd51f268f
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>
src/multimediawidgets/qpaintervideosurface.cpp
src/multimediawidgets/qpaintervideosurface_mac.mm
src/plugins/avfoundation/mediaplayer/avfvideoframerenderer.mm
src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.h
src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.mm