Add orientation support to VideoOutput.
Just uses an integer to represent the degrees rotation from standard. Only supports multiples of 90 - other rotation can be done with standard QML. Change-Id: Id4013169c5d9da473b6e5be94ba341da21c2f2a3 Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
581564c990
commit
be7cc17cbf
@@ -56,11 +56,12 @@ public:
|
||||
virtual void setCurrentFrame(const QVideoFrame &frame) = 0;
|
||||
virtual QVideoFrame::PixelFormat pixelFormat() const = 0;
|
||||
|
||||
void setTexturedRectGeometry(const QRectF &boundingRect, const QRectF &textureRect);
|
||||
void setTexturedRectGeometry(const QRectF &boundingRect, const QRectF &textureRect, int orientation);
|
||||
|
||||
private:
|
||||
QRectF m_rect;
|
||||
QRectF m_textureRect;
|
||||
int m_orientation;
|
||||
};
|
||||
|
||||
class QSGVideoNodeFactory {
|
||||
|
||||
Reference in New Issue
Block a user