Function VTHDRPerFrameMetadataGenerationSessionAttachMetadata

Source
pub unsafe extern "C-unwind" fn VTHDRPerFrameMetadataGenerationSessionAttachMetadata(
    hdr_per_frame_metadata_generation_session: &VTHDRPerFrameMetadataGenerationSession,
    pixel_buffer: &CVPixelBuffer,
    scene_change: bool,
) -> i32
Available on crate features VTHDRPerFrameMetadataGenerationSession and objc2-core-video only.
Expand description

Attaches the Per Frame Metadata to the CVPixelBuffer and the backing IOSurface

Call this to analyze and attach HDR Metadata. This call will change CVPixelBuffer attachments and backing IOSurface attachments.

Parameter hdrPerFrameMetadataGenerationSession: Parameter pixelBuffer: Parameter sceneChange: If this frame changes significantly in brightness from the previous frame, for example going from an indoor scene to an outdoor scene or from a night scene to a daytime scene, set this to true.