35 using QObject::QObject;
37 virtual void setActive(
bool active) = 0;
38 virtual bool isActive()
const = 0;
40 virtual QVideoFrameFormat frameFormat()
const = 0;
42 virtual std::optional<
int> ffmpegHWPixelFormat()
const;
44 virtual void setCaptureSession(QPlatformMediaCaptureSession *) { }
46 virtual QString errorString()
const = 0;
48 bool hasError()
const {
return !errorString().isEmpty(); }
51 void newVideoFrame(
const QVideoFrame &);
52 void activeChanged(
bool);