kVTCompressionPreset_ConsistentQuality
NewiOSmacOStvOSpublic let kVTCompressionPreset_ConsistentQuality: CFStringWhat's New / Media, Audio & Capture
VideoToolbox is a low-level C framework for hardware-accelerated video encoding, decoding, and pixel transcoding. It exposes compression sessions, decompression sessions, and property keys that configure codec behavior.
5 new APIs, no deprecations or removals. New compression controls include kVTCompressionPropertyKey_ConstantQualityFactor, the kVTCompressionPreset_ConsistentQuality preset, and the maximumDimension and maximumPixelCount properties. The kVTProjectionKind_AppleImmersiveVideo constant adds a projection kind for Apple Immersive Video.
kVTCompressionPreset_ConsistentQualitypublic let kVTCompressionPreset_ConsistentQuality: CFStringkVTCompressionPropertyKey_ConstantQualityFactorpublic let kVTCompressionPropertyKey_ConstantQualityFactor: CFStringkVTProjectionKind_AppleImmersiveVideopublic let kVTProjectionKind_AppleImmersiveVideo: CFStringmaximumDimensionopen class func maximumDimension(forSpatialScaleFactor spatialScaleFactor: Int) -> IntThe maximum value for either dimension of the source frame, in pixels, for a given spatial scale factor.
Both frameWidth and frameHeight must be less than or equal to this value. Use in conjunction with maximumPixelCountForSpatialScaleFactor: to determine valid frame dimensions. For example, if maximumDimensionForSpatialScaleFactor: is 1920 and maximumPixelCountForSpatialScaleFactor: corresponds to 1920×1080, then 1920×1080, 1080×1920, and 1440×1440 are all valid, but 1920×1920 is not. Pass 1 for spatialScaleFactor when using the processor for temporal interpolation without spatial scaling. Returns 0 if an unsupported scale factor is provided.
maximumPixelCountopen class func maximumPixelCount(forSpatialScaleFactor spatialScaleFactor: Int) -> IntThe maximum total number of pixels in the source frame for a given spatial scale factor.
The product of frameWidth and frameHeight must be less than or equal to this value. Use in conjunction with maximumDimensionForSpatialScaleFactor: to determine valid frame dimensions. Pass 1 for spatialScaleFactor when using the processor for temporal interpolation without spatial scaling. Returns 0 if an unsupported scale factor is provided.
No APIs match your filter.