Re-enabled CIImage based gfx video item on Mac

Also prefer CoreImageHandle to GLTextureHandle
in QuickTime player backend, to avoid unnecessary
copy via FBO.

Change-Id: Id5aa039c438378b7bbf816b7845b05574683c471
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
This commit is contained in:
Dmytro Poplavskiy
2012-08-23 15:59:18 +10:00
committed by Qt by Nokia
parent 3613a14b38
commit 09a7fda971
5 changed files with 15 additions and 12 deletions

View File

@@ -330,11 +330,11 @@ void QT7MovieViewRenderer::setupVideoOutput()
QAbstractVideoBuffer::HandleType handleType = QAbstractVideoBuffer::NoHandle;
QVideoFrame::PixelFormat pixelFormat = QVideoFrame::Format_RGB32;
if (glTextureSupported) {
if (coreImageFrameSupported) {
handleType = QAbstractVideoBuffer::CoreImageHandle;
} else if (glTextureSupported) {
handleType = QAbstractVideoBuffer::GLTextureHandle;
pixelFormat = QVideoFrame::Format_BGR32;
} else if (coreImageFrameSupported) {
handleType = QAbstractVideoBuffer::CoreImageHandle;
}
QVideoSurfaceFormat format(m_nativeSize, pixelFormat, handleType);