Mac Developer Library

Developer

AVFoundation Framework Reference AVCaptureDeviceFormat Class Reference

Options
Deployment Target:

On This Page
Language:

AVCaptureDeviceFormat

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.

Inheritance


Conforms To


Import Statement


Swift

import AVFoundation

Objective-C

@import AVFoundation;

Availability


Available in OS X v10.7 and later.
  • mediaType mediaType Property

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

    Declaration

    Swift

    var mediaType: String! { get }

    Objective-C

    @property(nonatomic, readonly) NSString *mediaType

    Discussion

    Supported media types are listed in Media Types.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in OS X v10.7 and later.

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

    Declaration

    Swift

    var formatDescription: CMFormatDescription! { get }

    Objective-C

    @property(nonatomic, readonly) CMFormatDescriptionRef formatDescription

    Discussion

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

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in OS X v10.7 and later.

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

    Declaration

    Swift

    var videoSupportedFrameRateRanges: [AnyObject]! { get }

    Objective-C

    @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.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in OS X v10.7 and later.