OutputFrameSource Class

Description

输出帧输出端口。

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

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

setHandler

设置数据处理器。

C

void easyar_OutputFrameSource_setHandler(easyar_OutputFrameSource * This, easyar_OptionalOfFunctorOfVoidFromOutputFrame handler)

C++17

void setHandler(std::optional<std::function<void(std::shared_ptr<OutputFrame>)>> handler)

C++03(Deprecated)

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)

C++17

void connect(std::shared_ptr<OutputFrameSink> sink)

C++03(Deprecated)

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()

C++03(Deprecated)

void disconnect()

Java

public void disconnect()

Kotlin

fun disconnect(): Unit

Objective-C

- (void)disconnect

Swift

public func disconnect() -> Void

C#

public virtual void disconnect()