pub unsafe trait VTFrameProcessorConfiguration: NSObjectProtocol {
// Provided methods
unsafe fn processorSupported() -> u8
where Self: Sized + ClassType { ... }
unsafe fn frameSupportedPixelFormats(&self) -> Retained<NSArray<NSNumber>>
where Self: Sized + Message { ... }
unsafe fn sourcePixelBufferAttributes(&self) -> Retained<NSDictionary>
where Self: Sized + Message { ... }
unsafe fn destinationPixelBufferAttributes(&self) -> Retained<NSDictionary>
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 VTFrameProcessorConfiguration protocol describes the configuration of a processor to be used during a video processing session.
VTFrameProcessorConfiguration protocol conformance is used to start an frame processing session. These properties can be queried on an implementation conforming to VTFrameProcessorConfiguration without starting a session.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn processorSupported() -> u8
unsafe fn processorSupported() -> u8
Returns a Boolean indicating whether the processor supported on the current config.
Sourceunsafe fn frameSupportedPixelFormats(&self) -> Retained<NSArray<NSNumber>>
Available on crate feature objc2-foundation only.
unsafe fn frameSupportedPixelFormats(&self) -> Retained<NSArray<NSNumber>>
objc2-foundation only.Returns a list of supported pixel formats for the current configuration
Sourceunsafe fn sourcePixelBufferAttributes(&self) -> Retained<NSDictionary>
Available on crate feature objc2-foundation only.
unsafe fn sourcePixelBufferAttributes(&self) -> Retained<NSDictionary>
objc2-foundation only.Returns a dictionary of CVPixelBuffer attributes which source and reference frames passed to the processor must conform to.
Sourceunsafe fn destinationPixelBufferAttributes(&self) -> Retained<NSDictionary>
Available on crate feature objc2-foundation only.
unsafe fn destinationPixelBufferAttributes(&self) -> Retained<NSDictionary>
objc2-foundation only.Returns a dictionary of CVPixelBuffer attributes which output frames passed to the processor must conform to.
Sourceunsafe fn nextFrameCount(&self) -> NSInteger
unsafe fn nextFrameCount(&self) -> NSInteger
returns the number of “next” frames that this processor requires for processing.
Sourceunsafe fn previousFrameCount(&self) -> NSInteger
unsafe fn previousFrameCount(&self) -> NSInteger
returns the number of “previous” frames that this processor requires for processing.
Sourceunsafe fn maximumDimensions() -> CMVideoDimensions
Available on crate feature objc2-core-media only.
unsafe fn maximumDimensions() -> CMVideoDimensions
objc2-core-media only.returns the maximum dimension 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 dimension 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 VTMotionBlurConfiguration
VTFrameProcessor_MotionBlur only.impl VTFrameProcessorConfiguration for VTOpticalFlowConfiguration
VTFrameProcessor_OpticalFlow only.