VTFrameProcessorConfiguration

Trait VTFrameProcessorConfiguration 

Source
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 { ... }
}
Available on crate features 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§

Source

unsafe fn processorSupported() -> u8
where Self: Sized + ClassType,

Returns a Boolean indicating whether the processor supported on the current config.

Source

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

Available on crate feature objc2-foundation only.

Returns a list of supported pixel formats for the current configuration

Source

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

Available on crate feature objc2-foundation only.

Returns a dictionary of CVPixelBuffer attributes which source and reference frames passed to the processor must conform to.

Source

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

Available on crate feature objc2-foundation only.

Returns a dictionary of CVPixelBuffer attributes which output frames passed to the processor must conform to.

Source

unsafe fn nextFrameCount(&self) -> NSInteger
where Self: Sized + Message,

returns the number of “next” frames that this processor requires for processing.

Source

unsafe fn previousFrameCount(&self) -> NSInteger
where Self: Sized + Message,

returns the number of “previous” frames that this processor requires for processing.

Source

unsafe fn maximumDimensions() -> CMVideoDimensions
where Self: Sized + ClassType,

Available on crate feature objc2-core-media only.

returns the maximum dimension for a sourceFrame for the processor

Source

unsafe fn minimumDimensions() -> CMVideoDimensions
where Self: Sized + ClassType,

Available on crate feature objc2-core-media only.

returns the minimum dimension for a sourceFrame for the processor

Trait Implementations§

Source§

impl ProtocolType for dyn VTFrameProcessorConfiguration

Source§

const NAME: &'static str = "VTFrameProcessorConfiguration"

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 VTFrameProcessorConfiguration

Implementations on Foreign Types§

Source§

impl<T> VTFrameProcessorConfiguration for ProtocolObject<T>

Implementors§

Source§

impl VTFrameProcessorConfiguration for VTFrameRateConversionConfiguration

Available on crate feature VTFrameProcessor_FrameRateConversion only.
Source§

impl VTFrameProcessorConfiguration for VTMotionBlurConfiguration

Available on crate feature VTFrameProcessor_MotionBlur only.
Source§

impl VTFrameProcessorConfiguration for VTOpticalFlowConfiguration

Available on crate feature VTFrameProcessor_OpticalFlow only.