diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2009-11-04 07:55:35 (GMT) |
---|---|---|
committer | Andrew den Exter <andrew.den-exter@nokia.com> | 2009-11-04 07:59:06 (GMT) |
commit | 70e62dacd529e9257c5bb372a680fe2ec4786a9c (patch) | |
tree | 099cf54cb44b4716593e7be50aada4dc0d4fdec3 /src/multimedia/video/qvideosurfaceformat.h | |
parent | 14238b8f58b2f7496cde8b829870a6180286ea14 (diff) | |
download | Qt-70e62dacd529e9257c5bb372a680fe2ec4786a9c.zip Qt-70e62dacd529e9257c5bb372a680fe2ec4786a9c.tar.gz Qt-70e62dacd529e9257c5bb372a680fe2ec4786a9c.tar.bz2 |
QVideoSurfaceFormat API review changes.
Rename YuvColorSpace enum and related functions to YCbCrColorSpace.
Remove ViewportMode enum and make setFrameSize() always reset the
viewport to fill the frame.
Reviewed-by: Justin McPherson
Diffstat (limited to 'src/multimedia/video/qvideosurfaceformat.h')
-rw-r--r-- | src/multimedia/video/qvideosurfaceformat.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/multimedia/video/qvideosurfaceformat.h b/src/multimedia/video/qvideosurfaceformat.h index 1f4a5cb..ee60244 100644 --- a/src/multimedia/video/qvideosurfaceformat.h +++ b/src/multimedia/video/qvideosurfaceformat.h @@ -68,13 +68,7 @@ public: BottomToTop }; - enum ViewportMode - { - ResetViewport, - KeepViewport - }; - - enum YuvColorSpace + enum YCbCrColorSpace { YCbCr_Undefined, YCbCr_BT601, @@ -106,8 +100,8 @@ public: QAbstractVideoBuffer::HandleType handleType() const; QSize frameSize() const; - void setFrameSize(const QSize &size, ViewportMode mode = ResetViewport); - void setFrameSize(int width, int height, ViewportMode mode = ResetViewport); + void setFrameSize(const QSize &size); + void setFrameSize(int width, int height); int frameWidth() const; int frameHeight() const; @@ -125,8 +119,8 @@ public: void setPixelAspectRatio(const QSize &ratio); void setPixelAspectRatio(int width, int height); - YuvColorSpace yuvColorSpace() const; - void setYuvColorSpace(YuvColorSpace colorSpace); + YCbCrColorSpace yCbCrColorSpace() const; + void setYCbCrColorSpace(YCbCrColorSpace colorSpace); QSize sizeHint() const; @@ -145,7 +139,7 @@ Q_MULTIMEDIA_EXPORT QDebug operator<<(QDebug, const QVideoSurfaceFormat &); QT_END_NAMESPACE Q_DECLARE_METATYPE(QVideoSurfaceFormat::Direction) -Q_DECLARE_METATYPE(QVideoSurfaceFormat::YuvColorSpace) +Q_DECLARE_METATYPE(QVideoSurfaceFormat::YCbCrColorSpace) QT_END_HEADER |