supportedRawPhotoPixelFormatTypes(for:)
Returns the list of Bayer RAW pixel formats supported for photo data in the specified file type.
Declaration
@nonobjc func supportedRawPhotoPixelFormatTypes(for fileType: AVFileType) -> [OSType]Parameters
- fileType:
The file type for which to obtain format information.
Return Value
An array of pixel format types supported for encoding in the specified file type.
Discussion
When you issue a photo capture request, you can separately specify the format for capturing or encoding image data and the container format for producing output files containing that data. However, each file type supports only a specific set of image data types.
After choosing a file type from the availableRawPhotoFileTypes array, use this method to find a compatible image data format before creating a photo settings object.