AVCaptureDeviceFormat Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/AVFoundation.framework
Availability
Available in OS X v10.7 and later.
Declared in
AVCaptureDevice.h
Related sample code

Overview

An AVCaptureDeviceFormat object provides information about a media capture format for use with an AVCaptureDevice instance, such as video frame rates and zoom factors.

You can find more information about a capture format using its associated Core Media format description (see CMFormatDescriptionRef), available using the formatDescription property.

AVCaptureDeviceFormat objects are immutable.

Tasks

Inspecting Capture Format Attributes

Properties

formatDescription

An object describing the capture format. (read-only)

@property(nonatomic, readonly) CMFormatDescriptionRef formatDescription
Discussion

Calling this method does not assume ownership of the returned CMFormatDescriptionRef.

Availability
  • Available in OS X v10.7 and later.
Declared In
AVCaptureDevice.h

mediaType

A cosntant describing the media type of an AVCaptureDevice active or supported format. (read-only)

@property(nonatomic, readonly) NSString *mediaType
Discussion

Supported media types are listed in Media Types.

Availability
  • Available in OS X v10.7 and later.
Related Sample Code
Declared In
AVCaptureDevice.h

videoSupportedFrameRateRanges

Indicates the format’s supported frame rate ranges. (read-only)

@property(nonatomic, readonly) NSArray *videoSupportedFrameRateRanges
Discussion

The value is an array of AVFrameRateRange objects, one for each of the format’s supported video frame rate ranges.

Availability
  • Available in OS X v10.7 and later.
Declared In
AVCaptureDevice.h