automaticallyConfiguresOutputBufferDimensions
A Boolean value that indicates whether the output automatically configures the size of output buffers.
Declaration
var automaticallyConfiguresOutputBufferDimensions: Bool { get set }Discussion
In most configurations, AVCaptureVideoDataOutput delivers full-resolution buffers that match the video dimensions of the capture device’s activeFormat property. When this property is true, the output is free to scale the buffers delivered to captureOutput(_:didOutput:from:) to a size suitable for preview (approximately the size of the screen).
You can query this property to find out whether the automatic configuration of output buffer dimensions is downscaling buffers to a preview size. You can also query the output’s videoSettings dictionary to find the buffer’s exact dimensions.
The default value of this property is true.
See Also
Configuring video capture
videoSettingsVideo settingsalwaysDiscardsLateVideoFramesdeliversPreviewSizedOutputBufferspreparesCellularRadioForNetworkConnectionpreservesDynamicHDRMetadatarecommendedMediaTimeScaleForAssetWriterrecommendedMovieMetadata(forVideoCodecType:assetWriterOutputFileType:)recommendedVideoSettings(forVideoCodecType:assetWriterOutputFileType:)recommendedVideoSettings(forVideoCodecType:assetWriterOutputFileType:outputFileURL:)recommendedVideoSettingsForAssetWriter(writingTo:)