Instance Property

availablePhotoCodecTypes

The compression codecs this capture output currently supports for photo capture.

Declaration

var availablePhotoCodecTypes: [AVVideoCodecType] { get }

Discussion

To capture a photo in a compressed format, such as JPEG, use the init(format:) initializer to create your photo settings object. In that initializer’s format dictionary, pass the key AVVideoCodecKey, whose value must be one of the codec identifiers listed in this array.

This property supports Key-value observing.

See Also

Choosing Data and File Formats

var availablePhotoFileTypes: [AVFileType]

The list of file types currently supported for photo capture and output.

var availableRawPhotoFileTypes: [AVFileType]

The list of file types currently supported for RAW format capture and output.

func supportedPhotoCodecTypes(for: AVFileType) -> [AVVideoCodecType]

Returns the list of photo codecs (such as JPEG or HEVC) supported for photo data in the specified file type.

func supportedPhotoPixelFormatTypes(for: AVFileType) -> [NSNumber]

Returns the list of uncompressed pixel formats supported for photo data in the specified file type.

func supportedRawPhotoPixelFormatTypes(for: AVFileType) -> [NSNumber]

Returns the list of Bayer RAW pixel formats supported for photo data in the specified file type.