summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2021-03-12 11:58:33 +0100
committerLars Knoll <lars.knoll@qt.io>2021-03-23 13:53:39 +0000
commit5d8d55212c94a3a8c945731669496a6f579f0a48 (patch)
treed4373d4be60c0150146faf608e35f1b9db8b93b9
parentda035f2f56d903dcf0668bffadb1fb4c748cfeca (diff)
downloadqtmultimedia-5d8d55212c94a3a8c945731669496a6f579f0a48.tar.gz
Remove unused virtual method in QAbstractVideoSurface
Change-Id: Icf531a4b4ae10c8d682e7555d9a413badd1c26e4 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Doris Verria <doris.verria@qt.io>
-rw-r--r--src/multimedia/video/qabstractvideosurface.cpp19
-rw-r--r--src/multimedia/video/qabstractvideosurface.h1
2 files changed, 0 insertions, 20 deletions
diff --git a/src/multimedia/video/qabstractvideosurface.cpp b/src/multimedia/video/qabstractvideosurface.cpp
index 46d5933f4..a6100cc37 100644
--- a/src/multimedia/video/qabstractvideosurface.cpp
+++ b/src/multimedia/video/qabstractvideosurface.cpp
@@ -151,25 +151,6 @@ bool QAbstractVideoSurface::isFormatSupported(const QVideoSurfaceFormat &format)
}
/*!
- Returns a supported video surface format that is similar to \a format.
-
- A similar surface format is one that has the same \l {QVideoSurfaceFormat::pixelFormat()}{pixel
- format} and \l {QVideoSurfaceFormat::handleType()}{handle type} but may differ in some of the other
- properties. For example, if there are restrictions on the \l {QVideoSurfaceFormat::frameSize()}
- {frame sizes} a video surface can accept it may suggest a format with a larger frame size and
- a \l {QVideoSurfaceFormat::viewport()}{viewport} the size of the original frame size.
-
- If the format is already supported it will be returned unchanged, or if there is no similar
- supported format an invalid format will be returned.
-*/
-QVideoSurfaceFormat QAbstractVideoSurface::nearestFormat(const QVideoSurfaceFormat &format) const
-{
- return isFormatSupported(format)
- ? format
- : QVideoSurfaceFormat();
-}
-
-/*!
\fn QAbstractVideoSurface::supportedFormatsChanged()
Signals that the set of formats supported by a video surface has changed.
diff --git a/src/multimedia/video/qabstractvideosurface.h b/src/multimedia/video/qabstractvideosurface.h
index 0acd18cd3..48877ecc0 100644
--- a/src/multimedia/video/qabstractvideosurface.h
+++ b/src/multimedia/video/qabstractvideosurface.h
@@ -70,7 +70,6 @@ public:
virtual QList<QVideoFrame::PixelFormat> supportedPixelFormats(
QVideoFrame::HandleType type = QVideoFrame::NoHandle) const = 0;
virtual bool isFormatSupported(const QVideoSurfaceFormat &format) const;
- virtual QVideoSurfaceFormat nearestFormat(const QVideoSurfaceFormat &format) const;
QVideoSurfaceFormat surfaceFormat() const;