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:
Michael Goddard
2011-11-25 15:25:22 +10:00
committed by Qt by Nokia
parent 581564c990
commit be7cc17cbf
4 changed files with 126 additions and 11 deletions

View File

@@ -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 {