VideoOutput: take the video format's scanLineDirection into account.

Task-number: QTBUG-30442
Change-Id: Ic950d66cb35a937ccf3862089e0060819b6d6f34
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
This commit is contained in:
Yoann Lopes
2013-09-27 12:09:32 +02:00
committed by The Qt Project
parent 6914aa76a4
commit bd30595975

View File

@@ -174,6 +174,12 @@ void QDeclarativeVideoRendererBackend::updateGeometry()
totalHeight, totalWidth); totalHeight, totalWidth);
} }
} }
if (videoSurface()->surfaceFormat().scanLineDirection() == QVideoSurfaceFormat::BottomToTop) {
qreal top = m_sourceTextureRect.top();
m_sourceTextureRect.setTop(m_sourceTextureRect.bottom());
m_sourceTextureRect.setBottom(top);
}
} }
QSGNode *QDeclarativeVideoRendererBackend::updatePaintNode(QSGNode *oldNode, QSGNode *QDeclarativeVideoRendererBackend::updatePaintNode(QSGNode *oldNode,