4#ifndef X11SURFACECAPTURE_P_H
5#define X11SURFACECAPTURE_P_H
18#include <QtMultimedia/private/qplatformsurfacecapture_p.h>
22class QX11SurfaceCapture :
public QPlatformSurfaceCapture
27 explicit QX11SurfaceCapture(Source initialSource);
28 ~QX11SurfaceCapture() override;
30 QVideoFrameFormat frameFormat()
const override;
32 static bool isSupported();
35 bool setActiveInternal(
bool active) override;
38 void activate(ScreenSource);
39 void activate(
const WindowSource &);
42 std::unique_ptr<Grabber> m_grabber;
static std::unique_ptr< Grabber > create(QX11SurfaceCapture &capture, QScreen *screen)
const QVideoFrameFormat & format() const
QVideoFrame grabFrame() override
static std::unique_ptr< Grabber > create(QX11SurfaceCapture &capture, WId wid)
#define qCDebug(category,...)
#define Q_STATIC_LOGGING_CATEGORY(name,...)