bool isFormatSupported(const QVideoSurfaceFormat &format) const;
+ void stop();
+
QAbstractVideoSurface::Error setCurrentFrame(const QVideoFrame &frame);
QAbstractVideoSurface::Error paint(
return false;
}
+
+void QVideoSurfaceGLPainter::stop()
+{
+ m_frame = QVideoFrame();
+}
+
QAbstractVideoSurface::Error QVideoSurfaceGLPainter::setCurrentFrame(const QVideoFrame &frame)
{
m_frame = frame;
m_textureCount = 0;
m_programId = 0;
m_handleType = QAbstractVideoBuffer::NoHandle;
+
+ QVideoSurfaceGLPainter::stop();
}
QAbstractVideoSurface::Error QVideoSurfaceArbFpPainter::paint(
m_textureCount = 0;
m_handleType = QAbstractVideoBuffer::NoHandle;
+
+ QVideoSurfaceGLPainter::stop();
}
QAbstractVideoSurface::Error QVideoSurfaceGlslPainter::paint(