Instance Method

supportedPhotoCodecTypesForFileType:

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

Declaration

- (NSArray<AVVideoCodecType> *)supportedPhotoCodecTypesForFileType:(AVFileType)fileType;

Parameters

fileType

The file type (such as JFIF or HEIF) for which to obtain codec information.

Return Value

An array of video codec 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 availablePhotoFileTypes array, use this method to find a compatible image data codec before creating a photo settings object.

See Also

Choosing Data and File Formats

availablePhotoFileTypes

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

availableRawPhotoFileTypes

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

- supportedPhotoPixelFormatTypesForFileType:

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

- supportedRawPhotoPixelFormatTypesForFileType:

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

availablePhotoPixelFormatTypes

The pixel formats this capture output currently supports for photo capture.

availablePhotoCodecTypes

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

availableRawPhotoPixelFormatTypes

The pixel formats this capture output currently supports for RAW photo capture.