4#ifndef QAVFSCREENCAPTURE_H
5#define QAVFSCREENCAPTURE_H
18#include <QtMultimedia/private/qplatformsurfacecapture_p.h>
20#include <QtCore/qmutex.h>
21#include <QtCore/qwaitcondition.h>
25class QFFmpegVideoSink;
47 void onNewFrame(
const QVideoFrame &frame);
49 bool initScreenCapture(QScreen *screen);
54 std::optional<QVideoFrameFormat> m_format;
55 mutable QMutex m_formatMutex;
56 mutable QWaitCondition m_waitForFormat;
58 std::unique_ptr<Grabber> m_grabber;
bool setActiveInternal(bool active) override
std::optional< int > ffmpegHWPixelFormat() const override
~QAVFScreenCapture() override
QVideoFrameFormat frameFormat() const override
std::conditional_t< QT_FFMPEG_AVIO_WRITE_CONST, const uint8_t *, uint8_t * > AvioWriteBufferType