Contents

AVCapturePhoto

A container for image data from a photo capture output.

Declaration

class AVCapturePhoto

Mentioned in

Overview

When you capture photos with the AVCapturePhotoOutput class, your delegate object receives each resulting image and related data in the form of an AVCapturePhoto object. This object is an immutable wrapper from which you can retrieve various results of the photo capture.

In addition to the photo image pixel buffer, an AVCapturePhoto object can also contain a preview-sized pixel buffer, capture metadata, and, on supported devices, depth data and camera calibration data. From an AVCapturePhoto object, you can generate data appropriate for writing to a file, such as HEVC encoded image data containerized in the HEIC file format and including a preview image, depth data and other attachments.

An AVCapturePhoto instance wraps a single image result. For example, if you request a bracketed capture of three images, your callback is called three times, each time delivering a single AVCapturePhoto object.

Topics

Resolving photo capture requests

Accessing photo pixel data

Accessing preview photo data

Accessing photo metadata

Packaging data for file output

Enabling constant color

Examining bracketed capture information

Accessing segmentation mattes

See Also

Photo capture