kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder
A Boolean value indicating whether hardware-accelerated video encoding is allowed, if available.
Declaration
let kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder: CFStringDiscussion
This key is set in the encoderSpecification passed in to VTCompressionSessionCreate(allocator:width:height:codecType:encoderSpecification:imageBufferAttributes:compressedDataAllocator:outputCallback:refcon:compressionSessionOut:). Set it to kCFBooleanTrue to allow hardware-accelerated encoding. To specifically prevent hardware encoding, set this property to kCFBooleanFalse.
This setting is useful for clients doing realtime encoding operations because it allows VideoToolbox to choose the optimal encoding path.
See Also
Encoder Selection
kVTCompressionPropertyKey_EncoderIDkVTVideoEncoderSpecification_EnableLowLatencyRateControlkVTVideoEncoderSpecification_EncoderIDkVTVideoEncoderSpecification_PreferredEncoderGPURegistryIDkVTVideoEncoderSpecification_RequiredEncoderGPURegistryIDkVTVideoEncoderSpecification_RequireHardwareAcceleratedVideoEncoder