pub unsafe trait VTFrameProcessorConfiguration:
NSObjectProtocol
+ Send
+ Sync {
// Provided methods
unsafe fn isSupported() -> bool
where Self: Sized + ClassType { ... }
unsafe fn frameSupportedPixelFormats(&self) -> Retained<NSArray<NSNumber>>
where Self: Sized + Message { ... }
unsafe fn sourcePixelBufferAttributes(
&self,
) -> Retained<NSDictionary<NSString, AnyObject>>
where Self: Sized + Message { ... }
unsafe fn destinationPixelBufferAttributes(
&self,
) -> Retained<NSDictionary<NSString, AnyObject>>
where Self: Sized + Message { ... }
unsafe fn nextFrameCount(&self) -> NSInteger
where Self: Sized + Message { ... }
unsafe fn previousFrameCount(&self) -> NSInteger
where Self: Sized + Message { ... }
unsafe fn maximumDimensions() -> CMVideoDimensions
where Self: Sized + ClassType { ... }
unsafe fn minimumDimensions() -> CMVideoDimensions
where Self: Sized + ClassType { ... }
}VTFrameProcessorConfiguration and objc2 only.Expand description
The protocol that describes the configuration of a processor for a video frame processing session.
Use VTFrameProcessorConfiguration protocol conformance to start a frame processing session. You can query these
properties on an implementation conforming to VTFrameProcessorConfiguration without starting a session.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn isSupported() -> bool
unsafe fn isSupported() -> bool
Returns a Boolean indicating whether the system supports this processor on the current configuration.
Sourceunsafe fn frameSupportedPixelFormats(&self) -> Retained<NSArray<NSNumber>>
Available on crate feature objc2-foundation only.
unsafe fn frameSupportedPixelFormats(&self) -> Retained<NSArray<NSNumber>>
objc2-foundation only.List of supported pixel formats for source frames for the current configuration.
This property is not atomic.
§Safety
This might not be thread-safe.
Sourceunsafe fn sourcePixelBufferAttributes(
&self,
) -> Retained<NSDictionary<NSString, AnyObject>>
Available on crate feature objc2-foundation only.
unsafe fn sourcePixelBufferAttributes( &self, ) -> Retained<NSDictionary<NSString, AnyObject>>
objc2-foundation only.Pixel buffer attributes dictionary that describes requirements for pixel buffers which represent source frames and reference frames.
Use CVPixelBufferCreateResolvedAttributesDictionary to combine this dictionary with your pixel buffer attributes dictionary.
This property is not atomic.
§Safety
This might not be thread-safe.
Sourceunsafe fn destinationPixelBufferAttributes(
&self,
) -> Retained<NSDictionary<NSString, AnyObject>>
Available on crate feature objc2-foundation only.
unsafe fn destinationPixelBufferAttributes( &self, ) -> Retained<NSDictionary<NSString, AnyObject>>
objc2-foundation only.Pixel buffer attributes dictionary that describes requirements for pixel buffers which represent destination frames.
Use CVPixelBufferCreateResolvedAttributesDictionary to combine this dictionary with your pixel buffer attributes dictionary.
This property is not atomic.
§Safety
This might not be thread-safe.
Sourceunsafe fn nextFrameCount(&self) -> NSInteger
unsafe fn nextFrameCount(&self) -> NSInteger
Returns the number of “next” frames that this processor requires for processing.
This property is not atomic.
§Safety
This might not be thread-safe.
Sourceunsafe fn previousFrameCount(&self) -> NSInteger
unsafe fn previousFrameCount(&self) -> NSInteger
Returns the number of “previous” frames that this processor requires for processing.
This property is not atomic.
§Safety
This might not be thread-safe.
Sourceunsafe fn maximumDimensions() -> CMVideoDimensions
Available on crate feature objc2-core-media only.
unsafe fn maximumDimensions() -> CMVideoDimensions
objc2-core-media only.Returns the maximum dimensions for a sourceFrame for the processor.
Sourceunsafe fn minimumDimensions() -> CMVideoDimensions
Available on crate feature objc2-core-media only.
unsafe fn minimumDimensions() -> CMVideoDimensions
objc2-core-media only.Returns the minimum dimensions for a sourceFrame for the processor.
Trait Implementations§
Source§impl ProtocolType for dyn VTFrameProcessorConfiguration
impl ProtocolType for dyn VTFrameProcessorConfiguration
impl<T> ImplementedBy<T> for dyn VTFrameProcessorConfiguration
Implementations on Foreign Types§
impl<T> VTFrameProcessorConfiguration for ProtocolObject<T>where
T: ?Sized + VTFrameProcessorConfiguration,
Implementors§
impl VTFrameProcessorConfiguration for VTFrameRateConversionConfiguration
VTFrameProcessor_FrameRateConversion only.impl VTFrameProcessorConfiguration for VTLowLatencyFrameInterpolationConfiguration
VTFrameProcessor_LowLatencyFrameInterpolation only.impl VTFrameProcessorConfiguration for VTLowLatencySuperResolutionScalerConfiguration
VTFrameProcessor_LowLatencySuperResolutionScaler only.impl VTFrameProcessorConfiguration for VTMotionBlurConfiguration
VTFrameProcessor_MotionBlur only.impl VTFrameProcessorConfiguration for VTOpticalFlowConfiguration
VTFrameProcessor_OpticalFlow only.impl VTFrameProcessorConfiguration for VTSuperResolutionScalerConfiguration
VTFrameProcessor_SuperResolutionScaler only.impl VTFrameProcessorConfiguration for VTTemporalNoiseFilterConfiguration
VTFrameProcessor_TemporalNoiseFilter only.