InputFrameToFeedbackFrameAdapter Class

Description

输入帧到反馈帧适配器。

有一个输入帧输入端口、一个历史输出帧输入端口和一个反馈帧输出端口,用于将输入帧和历史输出帧组合成反馈帧,传递给要求输入反馈帧的算法组件,例如 ImageTracker

每次输入帧输入时,会连带上一次输入的历史输出帧合成反馈帧。如果没有输入过历史输出帧,则反馈帧中的历史输出帧为空。

InputFrameToFeedbackFrameAdapter占用1个camera的buffer。应使用camera的setBufferCapacity设置不少于所有组件占用的camera的buffer数量。参考 概览 _ 。

本类的所有成员都是线程安全的。

input

输入端口。

C: void easyar_InputFrameToFeedbackFrameAdapter_input(easyar_InputFrameToFeedbackFrameAdapter * This, easyar_InputFrameSink * * Return)
C++17: std::shared_ptr<InputFrameSink> input()
Traditional C++: void input(InputFrameSink * * Return)
Java: public @Nonnull InputFrameSink input()
Kotlin: fun input(): InputFrameSink
Objective-C: - (easyar_InputFrameSink *)input
Swift: public func input() -> InputFrameSink
C#: public virtual InputFrameSink input()

bufferRequirement

当前组件占用camera buffer的数量。

C: int easyar_InputFrameToFeedbackFrameAdapter_bufferRequirement(easyar_InputFrameToFeedbackFrameAdapter * This)
C++17: int bufferRequirement()
Traditional C++: int bufferRequirement()
Java: public int bufferRequirement()
Kotlin: fun bufferRequirement(): Int
Objective-C: - (int)bufferRequirement
Swift: public func bufferRequirement() -> Int32
C#: public virtual int bufferRequirement()

sideInput

旁路输入端口,用于输入历史输出帧。

C: void easyar_InputFrameToFeedbackFrameAdapter_sideInput(easyar_InputFrameToFeedbackFrameAdapter * This, easyar_OutputFrameSink * * Return)
C++17: std::shared_ptr<OutputFrameSink> sideInput()
Traditional C++: void sideInput(OutputFrameSink * * Return)
Java: public @Nonnull OutputFrameSink sideInput()
Kotlin: fun sideInput(): OutputFrameSink
Objective-C: - (easyar_OutputFrameSink *)sideInput
Swift: public func sideInput() -> OutputFrameSink
C#: public virtual OutputFrameSink sideInput()

output

输出端口。

C: void easyar_InputFrameToFeedbackFrameAdapter_output(easyar_InputFrameToFeedbackFrameAdapter * This, easyar_FeedbackFrameSource * * Return)
C++17: std::shared_ptr<FeedbackFrameSource> output()
Traditional C++: void output(FeedbackFrameSource * * Return)
Java: public @Nonnull FeedbackFrameSource output()
Kotlin: fun output(): FeedbackFrameSource
Objective-C: - (easyar_FeedbackFrameSource *)output
Swift: public func output() -> FeedbackFrameSource
C#: public virtual FeedbackFrameSource output()

create

创建。

C: void easyar_InputFrameToFeedbackFrameAdapter_create(easyar_InputFrameToFeedbackFrameAdapter * * Return)
C++17: static std::shared_ptr<InputFrameToFeedbackFrameAdapter> create()
Traditional C++: static void create(InputFrameToFeedbackFrameAdapter * * Return)
Java: public static @Nonnull InputFrameToFeedbackFrameAdapter create()
Kotlin: companion object fun create(): InputFrameToFeedbackFrameAdapter
Objective-C: + (easyar_InputFrameToFeedbackFrameAdapter *)create
Swift: public static func create() -> InputFrameToFeedbackFrameAdapter
C#: public static InputFrameToFeedbackFrameAdapter create()