42 QPlatformMediaIntegration *integration,
43 std::function<
bool(uint32_t)> &&isCvPixelFormatSupportedDelegate =
nullptr);
47 [[nodiscard]]
bool isCvPixelFormatSupported(uint32_t cvPixelFormat)
const;
50 QList<QCameraDevice> findVideoInputs()
const override;
53 void onAvCaptureDevicesChanged();
57 AVFScopedPointer<AVCaptureDeviceDiscoverySession> m_avDiscoverySession;
60 QMacKeyValueObserver m_avDiscoverySessionObserver;
62 std::function<
bool(uint32_t)> m_isCvPixelFormatSupportedDelegate;
67 struct ObservedAVCaptureDevice {
68 AVFScopedPointer<AVCaptureDevice> avCaptureDevice;
71 QMacKeyValueObserver observer;
74 void rebuildObserveredAvCaptureDevices();
78 std::vector<ObservedAVCaptureDevice> m_observedAvCaptureDevices;