AntiClipSettings/VideoFrameProvider.h

17 lines
406 B
C
Raw Permalink Normal View History

2024-08-13 20:06:10 +08:00
#ifndef __VIDEOFRAMEPROVIDER_H__
#define __VIDEOFRAMEPROVIDER_H__
#include <QQuickImageProvider>
class VideoFrameProvider : public QQuickImageProvider {
public:
VideoFrameProvider();
QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize) final;
void setImage(const QImage &image);
void reset();
private:
QImage m_image;
};
#endif // __VIDEOFRAMEPROVIDER_H__