Class

AVCaptureStillImageOutput

A capture output for capturing still photos in macOS.

Declaration

class AVCaptureStillImageOutput : AVCaptureOutput

Overview

Topics

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.

var automaticallyEnablesStillImageStabilizationWhenAvailable: Bool

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

var isStillImageStabilizationSupported: Bool

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

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.

var availableImageDataCVPixelFormatTypes: [NSNumber]

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

var availableImageDataCodecTypes: [AVVideoCodecType]

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

var outputSettings: [String : Any]

The compression settings for the output.

Video Settings Dictionaries

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

Image Format Conversion

class func jpegStillImageNSDataRepresentation(CMSampleBuffer) -> Data?

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.

var isLensStabilizationDuringBracketedCaptureSupported: Bool

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

var isLensStabilizationDuringBracketedCaptureEnabled: Bool

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

Creating Still Image Output

init()

Creates new still image output.

Relationships

Inherits From

Conforms To

See Also

Mac Capture Options

class AVCaptureScreenInput

A capture input for recording from a screen in macOS.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software