19#include <private/qplatformmediaintegration_p.h>
20#include <private/qvideooutputorientationhandler_p.h>
21#define AVMediaType XAVMediaType
29#include <dispatch/dispatch.h>
66 bool checkCameraPermission();
67 void updateCameraFormat();
68 void updateVideoInput();
69 void attachVideoInputDevice();
72 AVCaptureDevice *device()
const;
75 AVCaptureSession *m_captureSession =
nullptr;
76 AVCaptureDeviceInput *m_videoInput =
nullptr;
77 AVCaptureVideoDataOutput *m_videoDataOutput =
nullptr;
79 dispatch_queue_t m_delegateQueue;
81 AVPixelFormat m_hwPixelFormat = AV_PIX_FMT_NONE;
int cameraPixelFormatScore(QVideoFrameFormat::PixelFormat pixFmt) const override
void setCaptureSession(QPlatformMediaCaptureSession *) override
void setCamera(const QCameraDevice &camera) override
void deviceOrientationChanged(int angle=-1)
void setActive(bool active) override
void syncHandleFrame(const QVideoFrame &frame)
bool setCameraFormat(const QCameraFormat &format) override
bool isActive() const override
std::optional< int > ffmpegHWPixelFormat() const override
The QCameraDevice class provides general information about camera devices.
The QCamera class provides interface for system camera devices.
The QVideoFrame class represents a frame of video data.
Combined button and popup list for selecting options.
#define Q_FORWARD_DECLARE_OBJC_CLASS(classname)
GLint GLsizei GLsizei GLenum format
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent