kCGDisplayStreamPreserveAspectRatio

Static kCGDisplayStreamPreserveAspectRatio 

Source
pub unsafe static kCGDisplayStreamPreserveAspectRatio: &'static CFString
👎Deprecated: Please use ScreenCaptureKit instead.
Available on crate feature CGDisplayStream only.
Expand description

Enable/disable the work the Window Server will do to preserve the display aspect ratio. By default the Window Server will assume that it should preserve the original aspect ratio of the source display rect. If the aspect ratio of the source display and the display stream destination rect are not the same, black borders will be inserted at the top/bottom or right/left sides of the destination in order to preserve the source aspect ratio.

See also Apple’s documentation