captureHighResolutionFrame(using:completion:)
Requests a single, high resolution frame to be captured.
Declaration
func captureHighResolutionFrame(using photoSettings: AVCapturePhotoSettings?, completion: @escaping @Sendable (ARFrame?, (any Error)?) -> Void)func captureHighResolutionFrame(using photoSettings: AVCapturePhotoSettings?) async throws -> ARFrameParameters
- photoSettings:
Custom AVCapturePhotoSettings to be used.
- completion:
Block being called when the call completes.
Discussion
Some video formats do not support a significantly higher still image resolution than the streaming camera resolution. Use the @c isRecommendedForHighResolutionFrameCapturing method on the video format to check if the format is recommended. For passing customized photo settings to this method, obtain a @c defaultPhotoSettings object from the video format and modify it.