Instance Property

rawFileType

The container file format for eventual output of the RAW image.

Declaration

var rawFileType: AVFileType? { get }

Discussion

You specify a file format when creating capture settings with the init(rawPixelFormatType:rawFileType:processedFormat:processedFileType:) initializer. If you did not specify a file format, this value is nil, and the photo output will automatically choose a default file format appropriate to the rawPhotoPixelFormatType property.

See Also

Creating Photo Settings

init(format: [String : Any]?)

Creates a photo settings object with the specified output format.

init(rawPixelFormatType: OSType)

Creates a photo settings object for RAW-format-only capture with the specified pixel format.

init(rawPixelFormatType: OSType, processedFormat: [String : Any]?)

Creates a photo settings object for capture in both RAW format and a processed format.

init(rawPixelFormatType: OSType, rawFileType: AVFileType?, processedFormat: [String : Any]?, processedFileType: AVFileType?)

Creates a photo settings object for capture in both RAW format and a processed format with the specified output file types.

var format: [String : Any]?

A dictionary describing the processed format (for example, JPEG) to deliver captured photos in.

var processedFileType: AVFileType?

The container file format for eventual output of the processed image.

var rawPhotoPixelFormatType: OSType

An identifier for the Bayer RAW pixel format to deliver captured RAW photos in.

struct AVFileType

A uniform type identifier for various file formats.

Video Settings Dictionaries

Define output image and video formats by using the key and value constants.