An identifier for the Bayer RAW pixel format to deliver captured RAW photos in.
SDKs
- iOS 10.0+
- Mac Catalyst 13.0+
Framework
- AVFoundation
Declaration
var rawPhotoPixelFormatType: OSType { get }
Discussion
This property is read-only—you specify a RAW pixel format when creating a settings object with the init(raw
, init(raw
initializer.
When capturing RAW images, the following requirements apply:
The
is
setting must beAuto Still Image Stabilization Enabled false
.Your delegate object must implement the
photo
method.Output(_: did Finish Processing Raw Photo: preview Photo: resolved Settings: bracket Settings: error:) The
is
setting may beHigh Resolution Photo Enabled true
orfalse
, but that setting applies only to the separate processed image.(You request separate processed images with the
init(raw
initializer. This restriction does not apply when you request RAW-only capture with thePixel Format Type: processed Format:) init(raw
initializer.)Pixel Format Type:)
The capture output validates these requirements when you call the capture
method. If your settings and delegate do not meet these requirements, that method raises an exception.