34 using QObject::QObject;
36 virtual void setActive(
bool active) = 0;
37 virtual bool isActive()
const = 0;
39 virtual QVideoFrameFormat frameFormat()
const = 0;
41 virtual std::optional<
int> ffmpegHWPixelFormat()
const;
43 virtual void setCaptureSession(QPlatformMediaCaptureSession *) { }
45 virtual QString errorString()
const = 0;
47 bool hasError()
const {
return !errorString().isEmpty(); }
50 void newVideoFrame(
const QVideoFrame &);
51 void activeChanged(
bool);