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:
committed by
The Qt Project
parent
6914aa76a4
commit
bd30595975
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user