FrameStreamer Class¶
Description¶
FrameStreamer 是提供frame数据的基类。它从camera或其他设备或文件生成frame并提供给 filter。
如果你在寻找可以使用自己的视频源的自定义的frame生成器,它在最新的EasyAR SDK中无法使用。在今后的发布版中,这个功能将以FrameStreamer 的子类实现。
peek¶
获取streamer最新的frame。
- C: void easyar_FrameStreamer_peek(easyar_FrameStreamer * This, easyar_Frame * * Return)¶
- Traditional C++: void peek(Frame * * Return)¶
- Java: public native Frame peek()¶
- Objective-C: - (easyar_Frame *)peek¶
- Swift (since EasyAR SDK 2.1.0): public func peek() -> Frame¶
start¶
开始streaming frames。
- C: bool easyar_FrameStreamer_start(easyar_FrameStreamer * This)¶
- C++11: bool start()¶
- Traditional C++: bool start()¶
- Java: public native boolean start()¶
- Objective-C: - (bool)start¶
- Swift (since EasyAR SDK 2.1.0): public func start() -> Bool¶
stop¶
停止streaming。
- C: bool easyar_FrameStreamer_stop(easyar_FrameStreamer * This)¶
- C++11: bool stop()¶
- Traditional C++: bool stop()¶
- Java: public native boolean stop()¶
- Objective-C: - (bool)stop¶
- Swift (since EasyAR SDK 2.1.0): public func stop() -> Bool¶