diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2009-11-04 07:56:49 (GMT) |
---|---|---|
committer | Andrew den Exter <andrew.den-exter@nokia.com> | 2009-11-04 07:59:06 (GMT) |
commit | db997a02c1d306260d8bbfe4f13e8312efb6fa7c (patch) | |
tree | fbb267f5aacd06b6328f36936f35f655978e90cf /examples/multimedia | |
parent | 70e62dacd529e9257c5bb372a680fe2ec4786a9c (diff) | |
download | Qt-db997a02c1d306260d8bbfe4f13e8312efb6fa7c.zip Qt-db997a02c1d306260d8bbfe4f13e8312efb6fa7c.tar.gz Qt-db997a02c1d306260d8bbfe4f13e8312efb6fa7c.tar.bz2 |
QVideoFrame API review changes.
Rename equivalentImageFormat() to imageFormatFromPixelFormat().
Rename equivalentPixelFormat() to pixelFormatFromImageFormat().
Rename numBytes() to mappedBytes().
Reviewed-by: Justin McPherson
Diffstat (limited to 'examples/multimedia')
-rw-r--r-- | examples/multimedia/videographicsitem/videoitem.cpp | 2 | ||||
-rw-r--r-- | examples/multimedia/videowidget/videowidgetsurface.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/multimedia/videographicsitem/videoitem.cpp b/examples/multimedia/videographicsitem/videoitem.cpp index 2d7b38e..99e8df8 100644 --- a/examples/multimedia/videographicsitem/videoitem.cpp +++ b/examples/multimedia/videographicsitem/videoitem.cpp @@ -104,7 +104,7 @@ QList<QVideoFrame::PixelFormat> VideoItem::supportedPixelFormats( bool VideoItem::start(const QVideoSurfaceFormat &format) { if (isFormatSupported(format)) { - imageFormat = QVideoFrame::equivalentImageFormat(format.pixelFormat()); + imageFormat = QVideoFrame::imageFormatFromPixelFormat(format.pixelFormat()); imageSize = format.frameSize(); framePainted = true; diff --git a/examples/multimedia/videowidget/videowidgetsurface.cpp b/examples/multimedia/videowidget/videowidgetsurface.cpp index ec9b8b5..b69375c 100644 --- a/examples/multimedia/videowidget/videowidgetsurface.cpp +++ b/examples/multimedia/videowidget/videowidgetsurface.cpp @@ -73,7 +73,7 @@ bool VideoWidgetSurface::isFormatSupported( { Q_UNUSED(similar); - const QImage::Format imageFormat = QVideoFrame::equivalentImageFormat(format.pixelFormat()); + const QImage::Format imageFormat = QVideoFrame::imageFormatFromPixelFormat(format.pixelFormat()); const QSize size = format.frameSize(); return imageFormat != QImage::Format_Invalid @@ -85,7 +85,7 @@ bool VideoWidgetSurface::isFormatSupported( //! [2] bool VideoWidgetSurface::start(const QVideoSurfaceFormat &format) { - const QImage::Format imageFormat = QVideoFrame::equivalentImageFormat(format.pixelFormat()); + const QImage::Format imageFormat = QVideoFrame::imageFormatFromPixelFormat(format.pixelFormat()); const QSize size = format.frameSize(); if (imageFormat != QImage::Format_Invalid && !size.isEmpty()) { |