InputFrameRecorder Class

Description

输入帧录制器。

有一个输入帧输入端口和一个输入帧输出端口,用于将经过的输入帧保存到EIF文件中。参考 概览

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

input

输入端口。

C

void easyar_InputFrameRecorder_input(easyar_InputFrameRecorder * This, easyar_InputFrameSink * * Return)

C++

std::shared_ptr<InputFrameSink> input()

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_InputFrameRecorder_bufferRequirement(easyar_InputFrameRecorder * This)

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

output

输出端口。

C

void easyar_InputFrameRecorder_output(easyar_InputFrameRecorder * This, easyar_InputFrameSource * * Return)

C++

std::shared_ptr<InputFrameSource> output()

Java

public @Nonnull InputFrameSource output()

Kotlin

fun output(): InputFrameSource

Objective-C

- (easyar_InputFrameSource *)output

Swift

public func output() -> InputFrameSource

C#

public virtual InputFrameSource output()

create

创建。

C

void easyar_InputFrameRecorder_create(easyar_InputFrameRecorder * * Return)

C++

static std::shared_ptr<InputFrameRecorder> create()

Java

public static @Nonnull InputFrameRecorder create()

Kotlin

companion object fun create(): InputFrameRecorder

Objective-C

+ (easyar_InputFrameRecorder *)create

Swift

public static func create() -> InputFrameRecorder

C#

public static InputFrameRecorder create()

start

开始录制数据。initialScreenRotation为录制数据时的初始屏幕旋转方向,播放时以此方向为基准进行渲染。旋转方向的定义与 CameraParameters 中的一致。

C

bool easyar_InputFrameRecorder_start(easyar_InputFrameRecorder * This, easyar_String * filePath, int initialScreenRotation)

C++

bool start(std::string filePath, int initialScreenRotation)

Java

public boolean start(java.lang.@Nonnull String filePath, int initialScreenRotation)

Kotlin

fun start(filePath: String, initialScreenRotation: Int): Boolean

Objective-C

- (bool)start:(NSString *)filePath initialScreenRotation:(int)initialScreenRotation

Swift

public func start(_ filePath: String, _ initialScreenRotation: Int32) -> Bool

C#

public virtual bool start(string filePath, int initialScreenRotation)

stop

停止录制数据。这个方法只会停止录制,连接将不会受到影响。

C

void easyar_InputFrameRecorder_stop(easyar_InputFrameRecorder * This)

C++

void stop()

Java

public void stop()

Kotlin

fun stop(): Unit

Objective-C

- (void)stop

Swift

public func stop() -> Void

C#

public virtual void stop()