OutputFrameSource Class¶
Description¶
输出帧输出端口。
用于暴露一个组件的输出端口。
本类的所有成员都是线程安全的。
setHandler¶
设置数据处理器。
- C: void easyar_OutputFrameSource_setHandler(easyar_OutputFrameSource * This, easyar_OptionalOfFunctorOfVoidFromOutputFrame handler)¶
- Traditional C++: void setHandler(OptionalOfFunctorOfVoidFromOutputFrame handler)¶
- Java: public void setHandler(@Nullable FunctorOfVoidFromOutputFrame handler)¶
- Kotlin: fun setHandler(handler: FunctorOfVoidFromOutputFrame?): Unit¶
- Objective-C: - (void)setHandler:(void (^)(easyar_OutputFrame *))handler¶
- Swift: public func setHandler(_ handler: ((OutputFrame) -> Void)?) -> Void¶
- C#: public virtual void setHandler(Optional<Action<OutputFrame>> handler)¶
connect¶
连接输入端口。
- C: void easyar_OutputFrameSource_connect(easyar_OutputFrameSource * This, easyar_OutputFrameSink * sink)¶
- Traditional C++: void connect(OutputFrameSink * sink)¶
- Java: public void connect(@Nonnull OutputFrameSink sink)¶
- Kotlin: fun connect(sink: OutputFrameSink): Unit¶
- Objective-C: - (void)connect:(easyar_OutputFrameSink *)sink¶
- Swift: public func connect(_ sink: OutputFrameSink) -> Void¶
- C#: public virtual void connect(OutputFrameSink sink)¶
disconnect¶
断开连接。
- C: void easyar_OutputFrameSource_disconnect(easyar_OutputFrameSource * 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()¶