HDRFormat
public typealias RawValue = Swift.Int
VTRAWProcessingSession
public typealias T = VideoToolbox.VTRAWProcessingSession
typedef struct OpaqueVTRAWProcessingSession *VTRAWProcessingSessionRef
typedef void (^VTRAWProcessingParameterChangeHandler)(CFArrayRef _Nullable)
typedef void (^VTRAWProcessingOutputHandler)(OSStatus, CVPixelBufferRef _Nullable)
typedef CFStringRef VTHDRPerFrameMetadataGenerationHDRFormatType
typedef struct OpaqueVTHDRPerFrameMetadataGenerationSession *VTHDRPerFrameMetadataGenerationSessionRef
typedef CFStringRef VTExtensionPropertiesKey
VTRAWProcessingSession
public func parameters() -> any _Concurrency.AsyncSequence<[VideoToolbox.VTRAWProcessingSession.Parameter], Swift.Never>
VTRAWProcessingSession
public func process(frame: CoreVideo.CVPixelBuffer) async throws -> CoreVideo.CVPixelBuffer
VTRAWProcessingSession
public func updateParameter(values: [Swift.String : Any]) throws
public func VTRAWProcessorExtensionProperties(_ formatDesc: CoreMedia.CMFormatDescription) throws -> [VideoToolbox.VTExtensionPropertiesKey : Any]
public func VTVideoDecoderExtensionProperties(_ formatDesc: CoreMedia.CMFormatDescription) throws -> [VideoToolbox.VTExtensionPropertiesKey : Any]
extern OSStatus VTRAWProcessingSessionCreate(CFAllocatorRef _Nullable allocator, CMVideoFormatDescriptionRef _Nonnull formatDescription, CFDictionaryRef _Nullable outputPixelBufferAttributes, CFDictionaryRef _Nullable processingSessionOptions, VTRAWProcessingSessionRef _Nullable * _Nonnull processingSessionOut)
extern void VTRAWProcessingSessionInvalidate(VTRAWProcessingSessionRef _Nonnull session)
extern CFTypeID VTRAWProcessingSessionGetTypeID(void)
extern OSStatus VTRAWProcessingSessionSetParameterChangedHander(VTRAWProcessingSessionRef _Nonnull session, VTRAWProcessingParameterChangeHandler _Nullable parameterChangeHandler)
extern OSStatus VTRAWProcessingSessionProcessFrame(VTRAWProcessingSessionRef _Nonnull session, CVPixelBufferRef _Nonnull inputPixelBuffer, CFDictionaryRef _Nullable frameOptions, VTRAWProcessingOutputHandler _Nonnull outputHandler)
extern OSStatus VTRAWProcessingSessionCompleteFrames(VTRAWProcessingSessionRef _Nonnull session)
extern OSStatus VTRAWProcessingSessionCopyProcessingParameters(VTRAWProcessingSessionRef _Nonnull session, CFArrayRef _Nullable * _Nonnull outParameterArray)
extern OSStatus VTRAWProcessingSessionSetProcessingParameters(VTRAWProcessingSessionRef _Nonnull session, CFDictionaryRef _Nonnull processingParameters)
extern OSStatus VTDecompressionSessionDecodeFrameWithOptions(VTDecompressionSessionRef _Nonnull session, CMSampleBufferRef _Nonnull sampleBuffer, VTDecodeFrameFlags decodeFlags, CFDictionaryRef _Nullable frameOptions, void * _Nullable sourceFrameRefCon, VTDecodeInfoFlags * _Nullable infoFlagsOut)
extern OSStatus VTDecompressionSessionDecodeFrameWithOptionsAndOutputHandler(VTDecompressionSessionRef _Nonnull session, CMSampleBufferRef _Nonnull sampleBuffer, VTDecodeFrameFlags decodeFlags, CFDictionaryRef _Nullable frameOptions, VTDecodeInfoFlags * _Nullable infoFlagsOut, VTDecompressionOutputHandler _Nonnull outputHandler)
extern CFTypeID VTHDRPerFrameMetadataGenerationSessionGetTypeID(void)
extern OSStatus VTHDRPerFrameMetadataGenerationSessionCreate(CFAllocatorRef _Nullable allocator, float framesPerSecond, CFDictionaryRef _Nullable options, VTHDRPerFrameMetadataGenerationSessionRef _Nullable * _Nonnull hdrPerFrameMetadataGenerationSessionOut)
extern OSStatus VTHDRPerFrameMetadataGenerationSessionAttachMetadata(VTHDRPerFrameMetadataGenerationSessionRef _Nonnull hdrPerFrameMetadataGenerationSession, CVPixelBufferRef _Nonnull pixelBuffer, Boolean sceneChange)
extern OSStatus VTCopyVideoDecoderExtensionProperties(CMFormatDescriptionRef _Nonnull formatDesc, CFDictionaryRef _Nullable * _Nonnull mediaExtensionPropertiesOut)
extern OSStatus VTCopyRAWProcessorExtensionProperties(CMFormatDescriptionRef _Nonnull formatDesc, CFDictionaryRef _Nullable * _Nonnull mediaExtensionPropertiesOut)
VTRAWProcessingSession
public var metalDevice: (any Metal.MTLDevice)?
VTRAWProcessingSession
public var processingParameters: [VideoToolbox.VTRAWProcessingSession.Parameter]
extern API_UNAVAILABLE(watchos) const CFStringRef kVTDecompressionPropertyKey_AllowBitstreamToChangeFrameDimensions
extern ) const CFStringRef kVTDecompressionPropertyKey_DecoderProducesRAWOutput
extern ) const CFStringRef kVTDecompressionPropertyKey_RequestRAWOutput
extern const CFStringRef kVTRAWProcessingPropertyKey_MetalDeviceRegistryID
extern const CFStringRef kVTRAWProcessingPropertyKey_OutputColorAttachments
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameter_Key
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameter_Name
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameter_Description
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameter_Enabled
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameter_ValueType
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameterValueType_Boolean
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameterValueType_Integer
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameterValueType_Float
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameterValueType_List
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameterValueType_SubGroup
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameter_ListArray
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameterListElement_Label
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameterListElement_Description
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameterListElement_ListElementID
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameter_SubGroup
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameter_MaximumValue
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameter_MinimumValue
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameter_InitialValue
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameter_NeutralValue
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameter_CameraValue
extern CF_REFINED_FOR_SWIFT const CFStringRef kVTRAWProcessingParameter_CurrentValue
extern API_UNAVAILABLE(watchos) const VTHDRPerFrameMetadataGenerationHDRFormatType kVTHDRPerFrameMetadataGenerationHDRFormatType_DolbyVision
extern API_UNAVAILABLE(watchos) const CFStringRef kVTHDRPerFrameMetadataGenerationOptionsKey_HDRFormats
extern ) const VTExtensionPropertiesKey kVTExtensionProperties_ExtensionIdentifierKey
extern ) const VTExtensionPropertiesKey kVTExtensionProperties_ExtensionNameKey
extern ) const VTExtensionPropertiesKey kVTExtensionProperties_ContainingBundleNameKey
extern ) const VTExtensionPropertiesKey kVTExtensionProperties_ExtensionURLKey
extern ) const VTExtensionPropertiesKey kVTExtensionProperties_ContainingBundleURLKey
extern ) const VTExtensionPropertiesKey kVTExtensionProperties_CodecNameKey
extern API_UNAVAILABLE(watchos) const CFStringRef kVTCompressionPropertyKey_MaximumRealTimeFrameRate
extern const CFStringRef _Nonnull kVTCompressionPropertyKey_ProjectionKind
extern const CFStringRef _Nonnull kVTCompressionPropertyKey_ViewPackingKind
extern ) const CFStringRef kVTCompressionPropertyKey_SuggestedLookAheadFrameCount
extern ) const CFStringRef kVTCompressionPropertyKey_SpatialAdaptiveQPLevel