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