Instance Property

format

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

Declaration

@property(readonly, copy) NSDictionary<NSString *,id> *format;

Discussion

This property is read-only—you specify a processed format when creating a settings object with the photoSettings, photoSettingsWithFormat:, or photoSettingsWithRawPixelFormatType:processedFormat: initializer.

When capturing images in processed formats, the following requirements apply:

The capture output validates these requirements when you call the capturePhotoWithSettings:delegate: method. If your settings and delegate do not meet these requirements, that method raises an exception.

See Also

Creating Photo Settings

+ photoSettings

Creates a photo settings object with default settings.

+ photoSettingsWithFormat:

Creates a photo settings object with the specified output format.

+ photoSettingsWithRawPixelFormatType:

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

+ photoSettingsWithRawPixelFormatType:processedFormat:

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

+ photoSettingsWithRawPixelFormatType:rawFileType:processedFormat:processedFileType:

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

processedFileType

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

rawFileType

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

rawPhotoPixelFormatType

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

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.