---
title: frameWidth
framework: videotoolbox
role: symbol
role_heading: Instance Property
path: videotoolbox/vtopticalflowconfiguration/framewidth
---

# frameWidth

The width of a source frame in pixels.

## Declaration

```swift
var frameWidth: Int { get }
```

## Discussion

Discussion The maximum value is 8192 pixels for macOS, and 4096 pixels for iOS.

## See Also

### Inspecting the configuration

- [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)
