summaryrefslogtreecommitdiffstats
path: root/src/multimediawidgets/qpaintervideosurface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/multimediawidgets/qpaintervideosurface.cpp')
-rw-r--r--src/multimediawidgets/qpaintervideosurface.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/multimediawidgets/qpaintervideosurface.cpp b/src/multimediawidgets/qpaintervideosurface.cpp
index 9a6ad11ed..214e5ec7e 100644
--- a/src/multimediawidgets/qpaintervideosurface.cpp
+++ b/src/multimediawidgets/qpaintervideosurface.cpp
@@ -72,19 +72,19 @@ public:
QVideoSurfaceGenericPainter();
QList<QVideoFrame::PixelFormat> supportedPixelFormats(
- QAbstractVideoBuffer::HandleType handleType) const;
+ QAbstractVideoBuffer::HandleType handleType) const override;
- bool isFormatSupported(const QVideoSurfaceFormat &format) const;
+ bool isFormatSupported(const QVideoSurfaceFormat &format) const override;
- QAbstractVideoSurface::Error start(const QVideoSurfaceFormat &format);
- void stop();
+ QAbstractVideoSurface::Error start(const QVideoSurfaceFormat &format) override;
+ void stop() override;
- QAbstractVideoSurface::Error setCurrentFrame(const QVideoFrame &frame);
+ QAbstractVideoSurface::Error setCurrentFrame(const QVideoFrame &frame) override;
QAbstractVideoSurface::Error paint(
- const QRectF &target, QPainter *painter, const QRectF &source);
+ const QRectF &target, QPainter *painter, const QRectF &source) override;
- void updateColors(int brightness, int contrast, int hue, int saturation);
+ void updateColors(int brightness, int contrast, int hue, int saturation) override;
private:
QList<QVideoFrame::PixelFormat> m_imagePixelFormats;
@@ -252,19 +252,19 @@ public:
QVideoSurfaceGLPainter(QGLContext *context);
~QVideoSurfaceGLPainter();
QList<QVideoFrame::PixelFormat> supportedPixelFormats(
- QAbstractVideoBuffer::HandleType handleType) const;
+ QAbstractVideoBuffer::HandleType handleType) const override;
- bool isFormatSupported(const QVideoSurfaceFormat &format) const;
+ bool isFormatSupported(const QVideoSurfaceFormat &format) const override;
- void stop();
+ void stop() override;
- QAbstractVideoSurface::Error setCurrentFrame(const QVideoFrame &frame);
+ QAbstractVideoSurface::Error setCurrentFrame(const QVideoFrame &frame) override;
QAbstractVideoSurface::Error paint(
- const QRectF &target, QPainter *painter, const QRectF &source);
+ const QRectF &target, QPainter *painter, const QRectF &source) override;
- void updateColors(int brightness, int contrast, int hue, int saturation);
- void viewportDestroyed();
+ void updateColors(int brightness, int contrast, int hue, int saturation) override;
+ void viewportDestroyed() override;
protected:
void initRgbTextureInfo(GLenum internalFormat, GLuint format, GLenum type, const QSize &size);
@@ -667,11 +667,11 @@ class QVideoSurfaceArbFpPainter : public QVideoSurfaceGLPainter
public:
QVideoSurfaceArbFpPainter(QGLContext *context);
- QAbstractVideoSurface::Error start(const QVideoSurfaceFormat &format);
- void stop();
+ QAbstractVideoSurface::Error start(const QVideoSurfaceFormat &format) override;
+ void stop() override;
QAbstractVideoSurface::Error paint(
- const QRectF &target, QPainter *painter, const QRectF &source);
+ const QRectF &target, QPainter *painter, const QRectF &source) override;
private:
typedef void (APIENTRY *_glProgramStringARB) (GLenum, GLenum, GLsizei, const GLvoid *);
@@ -1066,11 +1066,11 @@ class QVideoSurfaceGlslPainter : public QVideoSurfaceGLPainter
public:
QVideoSurfaceGlslPainter(QGLContext *context);
- QAbstractVideoSurface::Error start(const QVideoSurfaceFormat &format);
- void stop();
+ QAbstractVideoSurface::Error start(const QVideoSurfaceFormat &format) override;
+ void stop() override;
QAbstractVideoSurface::Error paint(
- const QRectF &target, QPainter *painter, const QRectF &source);
+ const QRectF &target, QPainter *painter, const QRectF &source) override;
private:
QGLShaderProgram m_program;