What's New / Media, Audio & Capture

What's new in VideoToolbox

+5 NewiOS · macOS · tvOS

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.

New

5
let

kVTCompressionPreset_ConsistentQuality

NewiOSmacOStvOS
public let kVTCompressionPreset_ConsistentQuality: CFString
let

kVTCompressionPropertyKey_ConstantQualityFactor

NewiOSmacOStvOS
public let kVTCompressionPropertyKey_ConstantQualityFactor: CFString
let

kVTProjectionKind_AppleImmersiveVideo

NewiOSmacOS
public let kVTProjectionKind_AppleImmersiveVideo: CFString
func

maximumDimension

NewiOSmacOStvOS
open class func maximumDimension(forSpatialScaleFactor spatialScaleFactor: Int) -> Int

The 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.

func

maximumPixelCount

NewiOSmacOStvOS
open class func maximumPixelCount(forSpatialScaleFactor spatialScaleFactor: Int) -> Int

The 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.

← More in Media, Audio & Capture