objc2-video-toolbox 0.3.2

Bindings to the VideoToolbox framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
#[cfg(feature = "objc2")]
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-foundation")]
use objc2_foundation::*;

use crate::*;

#[cfg(feature = "objc2")]
extern_protocol!(
    /// The base protocol for input and output processing parameters for a Video Toolbox frame processor implementation.
    ///
    /// Pass an instance of a class corresponding to this protocol to `processFrameWithParameters` calls. In async versions of those APIs, the completion handler returns the same instance.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/vtframeprocessorparameters?language=objc)
    #[cfg(feature = "objc2")]
    pub unsafe trait VTFrameProcessorParameters: NSObjectProtocol {
        #[cfg(feature = "VTFrameProcessorFrame")]
        /// Use `VTFrameProcessorFrame` that contains the current source frame for all processing features; must be non-null.
        #[unsafe(method(sourceFrame))]
        #[unsafe(method_family = none)]
        unsafe fn sourceFrame(&self) -> Retained<VTFrameProcessorFrame>;

        #[cfg(feature = "VTFrameProcessorFrame")]
        /// Destination frame that contains the destination frame for processors which output a single processed frame.
        #[optional]
        #[unsafe(method(destinationFrame))]
        #[unsafe(method_family = none)]
        unsafe fn destinationFrame(&self) -> Retained<VTFrameProcessorFrame>;

        #[cfg(all(feature = "VTFrameProcessorFrame", feature = "objc2-foundation"))]
        /// Array of destination frames for processors which may output more than one processed frame.
        #[optional]
        #[unsafe(method(destinationFrames))]
        #[unsafe(method_family = none)]
        unsafe fn destinationFrames(&self) -> Retained<NSArray<VTFrameProcessorFrame>>;
    }
);