diff options
author | Yoann Lopes <yoann.lopes@digia.com> | 2013-09-27 12:09:32 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-27 11:54:41 +0200 |
commit | bd30595975e55dc051d91da6c6795cecf47e6feb (patch) | |
tree | 1515d6aaf122c3dc6be47e647149419f1e210bd5 | |
parent | 6914aa76a4fb9490ff334fa83511d77569095993 (diff) |
VideoOutput: take the video format's scanLineDirection into account.
Task-number: QTBUG-30442
Change-Id: Ic950d66cb35a937ccf3862089e0060819b6d6f34
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
-rw-r--r-- | src/imports/multimedia/qdeclarativevideooutput_render.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/imports/multimedia/qdeclarativevideooutput_render.cpp b/src/imports/multimedia/qdeclarativevideooutput_render.cpp index 96b979bc5..002f50a62 100644 --- a/src/imports/multimedia/qdeclarativevideooutput_render.cpp +++ b/src/imports/multimedia/qdeclarativevideooutput_render.cpp @@ -174,6 +174,12 @@ void QDeclarativeVideoRendererBackend::updateGeometry() 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, |