VTFrameProcessorParameters

Trait VTFrameProcessorParameters 

Source
pub unsafe trait VTFrameProcessorParameters: NSObjectProtocol {
    // Provided methods
    unsafe fn sourceFrame(&self) -> Retained<VTFrameProcessorFrame>
       where Self: Sized + Message { ... }
    unsafe fn destinationFrame(&self) -> Retained<VTFrameProcessorFrame>
       where Self: Sized + Message { ... }
    unsafe fn destinationFrames(
        &self,
    ) -> Retained<NSArray<VTFrameProcessorFrame>>
       where Self: Sized + Message { ... }
}
Available on crate features VTFrameProcessorParameters and objc2 only.
Expand description

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

Provided Methods§

Source

unsafe fn sourceFrame(&self) -> Retained<VTFrameProcessorFrame>
where Self: Sized + Message,

Available on crate feature VTFrameProcessorFrame only.

Use VTFrameProcessorFrame that contains the current source frame for all processing features; must be non-null.

Source

unsafe fn destinationFrame(&self) -> Retained<VTFrameProcessorFrame>
where Self: Sized + Message,

Available on crate feature VTFrameProcessorFrame only.

Destination frame that contains the destination frame for processors which output a single processed frame.

Source

unsafe fn destinationFrames(&self) -> Retained<NSArray<VTFrameProcessorFrame>>
where Self: Sized + Message,

Available on crate features VTFrameProcessorFrame and objc2-foundation only.

Array of destination frames for processors which may output more than one processed frame.

Trait Implementations§

Source§

impl ProtocolType for dyn VTFrameProcessorParameters

Source§

const NAME: &'static str = "VTFrameProcessorParameters"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn VTFrameProcessorParameters

Implementations on Foreign Types§

Source§

impl<T> VTFrameProcessorParameters for ProtocolObject<T>

Implementors§

Source§

impl VTFrameProcessorParameters for VTFrameRateConversionParameters

Available on crate feature VTFrameProcessor_FrameRateConversion only.
Source§

impl VTFrameProcessorParameters for VTLowLatencyFrameInterpolationParameters

Available on crate feature VTFrameProcessor_LowLatencyFrameInterpolation only.
Source§

impl VTFrameProcessorParameters for VTLowLatencySuperResolutionScalerParameters

Available on crate feature VTFrameProcessor_LowLatencySuperResolutionScaler only.
Source§

impl VTFrameProcessorParameters for VTMotionBlurParameters

Available on crate feature VTFrameProcessor_MotionBlur only.
Source§

impl VTFrameProcessorParameters for VTOpticalFlowParameters

Available on crate feature VTFrameProcessor_OpticalFlow only.
Source§

impl VTFrameProcessorParameters for VTSuperResolutionScalerParameters

Available on crate feature VTFrameProcessor_SuperResolutionScaler only.
Source§

impl VTFrameProcessorParameters for VTTemporalNoiseFilterParameters

Available on crate feature VTFrameProcessor_TemporalNoiseFilter only.