InputFrameSource Class

Description

输入帧输出端口。

用于暴露一个组件的输出端口。

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

setHandler

设置数据处理器。

C: void easyar_InputFrameSource_setHandler(easyar_InputFrameSource * This, easyar_OptionalOfFunctorOfVoidFromInputFrame handler)
C++17: void setHandler(std::optional<std::function<void(std::shared_ptr<InputFrame>)>> handler)
Traditional C++: void setHandler(OptionalOfFunctorOfVoidFromInputFrame handler)
Java: public void setHandler(@Nullable FunctorOfVoidFromInputFrame handler)
Kotlin: fun setHandler(handler: FunctorOfVoidFromInputFrame?): Unit
Objective-C: - (void)setHandler:(void (^)(easyar_InputFrame *))handler
Swift: public func setHandler(_ handler: ((InputFrame) -> Void)?) -> Void
C#: public virtual void setHandler(Optional<Action<InputFrame>> handler)

connect

连接输入端口。

C: void easyar_InputFrameSource_connect(easyar_InputFrameSource * This, easyar_InputFrameSink * sink)
C++17: void connect(std::shared_ptr<InputFrameSink> sink)
Traditional C++: void connect(InputFrameSink * sink)
Java: public void connect(@Nonnull InputFrameSink sink)
Kotlin: fun connect(sink: InputFrameSink): Unit
Objective-C: - (void)connect:(easyar_InputFrameSink *)sink
Swift: public func connect(_ sink: InputFrameSink) -> Void
C#: public virtual void connect(InputFrameSink sink)

disconnect

断开连接。

C: void easyar_InputFrameSource_disconnect(easyar_InputFrameSource * This)
C++17: void disconnect()
Traditional C++: void disconnect()
Java: public void disconnect()
Kotlin: fun disconnect(): Unit
Objective-C: - (void)disconnect
Swift: public func disconnect() -> Void
C#: public virtual void disconnect()