objc2_video_toolbox/generated/VTFrameProcessorParameters.rs
1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4#[cfg(feature = "objc2")]
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-foundation")]
7use objc2_foundation::*;
8
9use crate::*;
10
11#[cfg(feature = "objc2")]
12extern_protocol!(
13 /// The base protocol for input and output processing parameters for a Video Toolbox frame processor implementation.
14 ///
15 /// 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.
16 ///
17 /// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/vtframeprocessorparameters?language=objc)
18 #[cfg(feature = "objc2")]
19 pub unsafe trait VTFrameProcessorParameters: NSObjectProtocol {
20 #[cfg(feature = "VTFrameProcessorFrame")]
21 /// Use `VTFrameProcessorFrame` that contains the current source frame for all processing features; must be non-null.
22 #[unsafe(method(sourceFrame))]
23 #[unsafe(method_family = none)]
24 unsafe fn sourceFrame(&self) -> Retained<VTFrameProcessorFrame>;
25
26 #[cfg(feature = "VTFrameProcessorFrame")]
27 /// Destination frame that contains the destination frame for processors which output a single processed frame.
28 #[optional]
29 #[unsafe(method(destinationFrame))]
30 #[unsafe(method_family = none)]
31 unsafe fn destinationFrame(&self) -> Retained<VTFrameProcessorFrame>;
32
33 #[cfg(all(feature = "VTFrameProcessorFrame", feature = "objc2-foundation"))]
34 /// Array of destination frames for processors which may output more than one processed frame.
35 #[optional]
36 #[unsafe(method(destinationFrames))]
37 #[unsafe(method_family = none)]
38 unsafe fn destinationFrames(&self) -> Retained<NSArray<VTFrameProcessorFrame>>;
39 }
40);