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 wraps a CMFormatDescription (see CMFormatDescriptionRef) and other format-related information, such as minimum and maximum frame rate.

An AVCaptureDeviceFormat object is immutable. AVCaptureDevice uses AVCaptureDeviceFormat objects to describe supported formats and the active format of an instance.

Tasks

Accessing Properties

Properties

formatDescription

A CMFormatDescription describing an AVCaptureDevice active or supported format. (read-only)

@property(nonatomic, readonly) CMFormatDescriptionRef formatDescription
Availability
  • Available in OS X v10.7 and later.
Declared In
AVCaptureDevice.h

mediaType

An string 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 AVMediaFormat.h.

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

Did this document help you? Yes It's good, but... Not helpful...