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§
Sourceunsafe fn sourceFrame(&self) -> Retained<VTFrameProcessorFrame>
Available on crate feature VTFrameProcessorFrame only.
unsafe fn sourceFrame(&self) -> Retained<VTFrameProcessorFrame>
VTFrameProcessorFrame only.Use VTFrameProcessorFrame that contains the current source frame for all processing features; must be non-null.
Sourceunsafe fn destinationFrame(&self) -> Retained<VTFrameProcessorFrame>
Available on crate feature VTFrameProcessorFrame only.
unsafe fn destinationFrame(&self) -> Retained<VTFrameProcessorFrame>
VTFrameProcessorFrame only.Destination frame that contains the destination frame for processors which output a single processed frame.
Sourceunsafe fn destinationFrames(&self) -> Retained<NSArray<VTFrameProcessorFrame>>
Available on crate features VTFrameProcessorFrame and objc2-foundation only.
unsafe fn destinationFrames(&self) -> Retained<NSArray<VTFrameProcessorFrame>>
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
impl ProtocolType for dyn VTFrameProcessorParameters
impl<T> ImplementedBy<T> for dyn VTFrameProcessorParameters
Implementations on Foreign Types§
impl<T> VTFrameProcessorParameters for ProtocolObject<T>where
T: ?Sized + VTFrameProcessorParameters,
Implementors§
impl VTFrameProcessorParameters for VTFrameRateConversionParameters
Available on crate feature
VTFrameProcessor_FrameRateConversion only.impl VTFrameProcessorParameters for VTLowLatencyFrameInterpolationParameters
Available on crate feature
VTFrameProcessor_LowLatencyFrameInterpolation only.impl VTFrameProcessorParameters for VTLowLatencySuperResolutionScalerParameters
Available on crate feature
VTFrameProcessor_LowLatencySuperResolutionScaler only.impl VTFrameProcessorParameters for VTMotionBlurParameters
Available on crate feature
VTFrameProcessor_MotionBlur only.impl VTFrameProcessorParameters for VTOpticalFlowParameters
Available on crate feature
VTFrameProcessor_OpticalFlow only.impl VTFrameProcessorParameters for VTSuperResolutionScalerParameters
Available on crate feature
VTFrameProcessor_SuperResolutionScaler only.impl VTFrameProcessorParameters for VTTemporalNoiseFilterParameters
Available on crate feature
VTFrameProcessor_TemporalNoiseFilter only.