summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/videowidget
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2009-11-04 07:56:49 (GMT)
committerAndrew den Exter <andrew.den-exter@nokia.com>2009-11-04 07:59:06 (GMT)
commitdb997a02c1d306260d8bbfe4f13e8312efb6fa7c (patch)
treefbb267f5aacd06b6328f36936f35f655978e90cf /examples/multimedia/videowidget
parent70e62dacd529e9257c5bb372a680fe2ec4786a9c (diff)
downloadQt-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/videowidget')
-rw-r--r--examples/multimedia/videowidget/videowidgetsurface.cpp4
1 files changed, 2 insertions, 2 deletions
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()) {