<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 15.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoToolbox",
  "identifier" : "/documentation/VideoToolbox/VTOpticalFlowConfiguration",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Video Toolbox"
    ],
    "preciseIdentifier" : "c:objc(cs)VTOpticalFlowConfiguration"
  },
  "title" : "VTOpticalFlowConfiguration"
}
-->

# VTOpticalFlowConfiguration

A configuration object that enables optical flow on a frame processing session.

```
class VTOpticalFlowConfiguration
```

## Topics

### Creating an optical flow configuration

[`-  initWithFrameWidth:frameHeight:qualityPrioritization:revision:`](/documentation/VideoToolbox/VTOpticalFlowConfiguration/init(frameWidth:frameHeight:qualityPrioritization:revision:))

### Determining processor availability

[`supported`](/documentation/VideoToolbox/VTOpticalFlowConfiguration/isSupported)

Reports whether the system supports this processor.

### Inspecting the configuration

[`frameWidth`](/documentation/VideoToolbox/VTOpticalFlowConfiguration/frameWidth)

The width of a source frame in pixels.

[`frameHeight`](/documentation/VideoToolbox/VTOpticalFlowConfiguration/frameHeight)

The height of source frame in pixels.

[`sourcePixelBufferAttributes`](/documentation/VideoToolbox/VTOpticalFlowConfiguration/sourcePixelBufferAttributes)

A dictionary of pixel buffer attributes describing requirements for pixel buffers used as source frames and reference frames.

[`destinationPixelBufferAttributes`](/documentation/VideoToolbox/VTOpticalFlowConfiguration/destinationPixelBufferAttributes)

A dictionary of pixel buffer attributes describing the requirements for pixel buffers used as destination frames.

[`supportedPixelFormats`](/documentation/VideoToolbox/VTOpticalFlowConfiguration/supportedPixelFormats)

[`qualityPrioritization`](/documentation/VideoToolbox/VTOpticalFlowConfiguration/qualityPrioritization-swift.property)

A value that specifies whether to prioritize quality or performance.

[`QualityPrioritization`](/documentation/VideoToolbox/VTOpticalFlowConfiguration/QualityPrioritization-swift.enum)

Values that specify whether to prioritize quality or performance.

### Inspecting revision information

[`revision`](/documentation/VideoToolbox/VTOpticalFlowConfiguration/revision-swift.property)

The specific algorithm or configuration revision that is to be used to perform the request.

[`defaultRevision`](/documentation/VideoToolbox/VTOpticalFlowConfiguration/defaultRevision)

The default revision of a particular algorithm or configuration.

[`supportedRevisions`](/documentation/VideoToolbox/VTOpticalFlowConfiguration/supportedRevisions)

A boolean value that indicates whether the processor supported on the current configuration.

[`Revision`](/documentation/VideoToolbox/VTOpticalFlowConfiguration/Revision-swift.enum)

The specific algorithm or configuration revision that is to be used to perform the request.

### Deprecated

[`processorSupported`](/documentation/VideoToolbox/VTOpticalFlowConfiguration/processorSupported)

A boolean value that indicates whether the processor supported on the current configuration.

[`frameSupportedPixelFormats`](/documentation/VideoToolbox/VTOpticalFlowConfiguration/frameSupportedPixelFormats-gm6u)

A list of source frame supported pixel formats for the current configuration.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`VTFrameProcessorConfiguration`](/documentation/VideoToolbox/VTFrameProcessorConfiguration)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)