39 QPlatformMediaIntegration *integration,
40 std::function<
bool(uint32_t)> &&isCvPixelFormatSupportedDelegate =
nullptr);
44 [[nodiscard]]
bool isCvPixelFormatSupported(uint32_t cvPixelFormat)
const;
47 QList<QCameraDevice> findVideoInputs()
const override;
50 QMacNotificationObserver m_deviceConnectedObserver;
51 QMacNotificationObserver m_deviceDisconnectedObserver;
52 std::function<
bool(uint32_t)> m_isCvPixelFormatSupportedDelegate;
57 struct ObservedAVCaptureDevice {
58 AVFScopedPointer<AVCaptureDevice> avCaptureDevice;
61 QMacKeyValueObserver observer;
64 void clearObservedAvCaptureDevices();
65 void rebuildObserveredAvCaptureDevices();
69 std::vector<ObservedAVCaptureDevice> m_observedAvCaptureDevices;