---
title: VTOpticalFlowConfiguration
framework: videotoolbox
role: symbol
role_heading: Class
path: videotoolbox/vtopticalflowconfiguration
---

# VTOpticalFlowConfiguration

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

## Declaration

```swift
class VTOpticalFlowConfiguration
```

## Topics

### Creating an optical flow configuration

- [init(frameWidth:frameHeight:qualityPrioritization:revision:)](videotoolbox/vtopticalflowconfiguration/init(framewidth:frameheight:qualityprioritization:revision:).md)

### Determining processor availability

- [isSupported](videotoolbox/vtopticalflowconfiguration/issupported.md)

### Inspecting the configuration

- [frameWidth](videotoolbox/vtopticalflowconfiguration/framewidth.md)
- [frameHeight](videotoolbox/vtopticalflowconfiguration/frameheight.md)
- [sourcePixelBufferAttributes](videotoolbox/vtopticalflowconfiguration/sourcepixelbufferattributes.md)
- [destinationPixelBufferAttributes](videotoolbox/vtopticalflowconfiguration/destinationpixelbufferattributes.md)
- [supportedPixelFormats](videotoolbox/vtopticalflowconfiguration/supportedpixelformats.md)
- [qualityPrioritization](videotoolbox/vtopticalflowconfiguration/qualityprioritization-swift.property.md)
- [VTOpticalFlowConfiguration.QualityPrioritization](videotoolbox/vtopticalflowconfiguration/qualityprioritization-swift.enum.md)

### Inspecting revision information

- [revision](videotoolbox/vtopticalflowconfiguration/revision-swift.property.md)
- [defaultRevision](videotoolbox/vtopticalflowconfiguration/defaultrevision.md)
- [supportedRevisions](videotoolbox/vtopticalflowconfiguration/supportedrevisions.md)
- [VTOpticalFlowConfiguration.Revision](videotoolbox/vtopticalflowconfiguration/revision-swift.enum.md)

### Deprecated

- [processorSupported](videotoolbox/vtopticalflowconfiguration/processorsupported.md)
- [frameSupportedPixelFormats](videotoolbox/vtopticalflowconfiguration/framesupportedpixelformats-gm6u.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [VTFrameProcessorConfiguration](videotoolbox/vtframeprocessorconfiguration.md)

## See Also

### Optical flow

- [VTFrameProcessorOpticalFlow](videotoolbox/vtframeprocessoropticalflow.md)
- [VTOpticalFlowParameters](videotoolbox/vtopticalflowparameters.md)
