Class

AVCaptureStillImageOutput

A capture output for recording still images.

Overview

AVCaptureStillImageOutput is a concrete sub class of AVCaptureOutput that you use to capture a high-quality still image with accompanying metadata.

In iOS 8.0 and later support for still image bracketed capture has been added. A "still image bracket" is a batch of images taken as quickly as possible in succession, optionally with different settings from picture to picture.

In a bracketed capture, AVCaptureDevice instance’s flashMode property is ignored (flash is forced off), as is the automaticallyEnablesStillImageStabilizationWhenAvailable property (stabilization is forced off).

Symbols

Capturing an Image

var isCapturingStillImage: Bool

Indicates whether a still image is being captured.

Getting and Setting Image Stabilization Settings

var isStillImageStabilizationActive: Bool

Indicates whether still image stabilization is in use for the current capture.

Deprecated
var automaticallyEnablesStillImageStabilizationWhenAvailable: Bool

A Boolean value that indicates whether still image stabilization should be automatically enabled.

Deprecated
var isStillImageStabilizationSupported: Bool

A Boolean value that indicates whether the still image currently being captured supports still image stabilization.

Deprecated

Configuring Image Settings

var isHighResolutionStillImageOutputEnabled: Bool

A Boolean value that indicates whether the receiver should emit still images at the highest resolution supported by its source AVCaptureDevice objects activeFormat property.

Deprecated
var outputSettings: [AnyHashable : Any]!

The compression settings for the output.

var availableImageDataCVPixelFormatTypes: [Any]!

The supported image pixel formats that can be specified as output settings.

var availableImageDataCodecTypes: [Any]!

The supported image codec formats that can be specified as output settings.

Image Format Conversion

class func jpegStillImageNSDataRepresentation(CMSampleBuffer!)

Returns an NSData representation of a still image data and metadata attachments in a JPEG sample buffer.

Still Image Bracketed Capture

var maxBracketedCaptureStillImageCount: Int

Specifies the maximum number of still images that may be taken in a single bracket.

Deprecated
func prepareToCaptureStillImageBracket(from: AVCaptureConnection!, withSettingsArray: [Any]!, completionHandler: ((Bool, Error?) -> Void)!)

Allows the receiver to prepare resources in advance of capturing a still image bracket.

Deprecated
var isLensStabilizationDuringBracketedCaptureSupported: Bool

A Boolean value that indicates whether the capture output supports lens stabilization across the duration of a bracketed capture.

Deprecated
var isLensStabilizationDuringBracketedCaptureEnabled: Bool

A Boolean value that specifies whether to stabilize the lens across the duration of a bracketed capture.

Deprecated

Relationships

Inherits From