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:
committed by
Qt by Nokia
parent
3613a14b38
commit
09a7fda971
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user