Class OutputFrameBuffer
- Namespace
- easyar
Output frame buffer. Has an output frame input port and an output frame retrieval function, used to convert output frame retrieval from asynchronous to synchronous polling, suitable for frame-by-frame rendering. OutputFrameBuffer occupies 1 camera buffer. Use camera setBufferCapacity to set no fewer than the number of camera buffers occupied by all components. All members of this class are thread-safe.
OutputFrameBuffer
Methods
input
Input port.
void easyar_OutputFrameBuffer_input(easyar_OutputFrameBuffer * This, easyar_OutputFrameSink * * Return)
std::shared_ptr<OutputFrameSink> input()
public @Nonnull OutputFrameSink input()
fun input(): OutputFrameSink
- (easyar_OutputFrameSink *)input
public func input() -> OutputFrameSink
public virtual OutputFrameSink input()
Returns
| Type | Description |
|---|---|
| OutputFrameSink |
bufferRequirement
Number of camera buffers occupied by the current component.
int easyar_OutputFrameBuffer_bufferRequirement(easyar_OutputFrameBuffer * This)
int bufferRequirement()
public int bufferRequirement()
fun bufferRequirement(): Int
- (int)bufferRequirement
public func bufferRequirement() -> Int32
public virtual int bufferRequirement()
Returns
| Type | Description |
|---|---|
| Int32 |
signalOutput
Arrival signal output port. Can be used to connect signalInput.
void easyar_OutputFrameBuffer_signalOutput(easyar_OutputFrameBuffer * This, easyar_SignalSource * * Return)
std::shared_ptr<SignalSource> signalOutput()
public @Nonnull SignalSource signalOutput()
fun signalOutput(): SignalSource
- (easyar_SignalSource *)signalOutput
public func signalOutput() -> SignalSource
public virtual SignalSource signalOutput()
Returns
| Type | Description |
|---|---|
| SignalSource |
peek
Gets the latest OutputFrame.
void easyar_OutputFrameBuffer_peek(easyar_OutputFrameBuffer * This, easyar_OptionalOfOutputFrame * Return)
std::optional<std::shared_ptr<OutputFrame>> peek()
public @Nullable OutputFrame peek()
fun peek(): OutputFrame?
- (easyar_OutputFrame *)peek
public func peek() -> OutputFrame?
public virtual Optional<OutputFrame> peek()
Returns
| Type | Description |
|---|---|
| Optional<OutputFrame> |
create
Creates.
void easyar_OutputFrameBuffer_create(easyar_OutputFrameBuffer * * Return)
static std::shared_ptr<OutputFrameBuffer> create()
public static @Nonnull OutputFrameBuffer create()
companion object fun create(): OutputFrameBuffer
+ (easyar_OutputFrameBuffer *)create
public static func create() -> OutputFrameBuffer
public static OutputFrameBuffer create()
Returns
| Type | Description |
|---|---|
| OutputFrameBuffer |
pause
Pauses output of OutputFrame. After execution, results of peek are all empty. signalOutput is not affected.
void easyar_OutputFrameBuffer_pause(easyar_OutputFrameBuffer * This)
void pause()
public void pause()
fun pause(): Unit
- (void)pause
public func pause() -> Void
public virtual void pause()
Returns
| Type | Description |
|---|---|
| Void |
resume
Resumes output of OutputFrame.
void easyar_OutputFrameBuffer_resume(easyar_OutputFrameBuffer * This)
void resume()
public void resume()
fun resume(): Unit
- (void)resume
public func resume() -> Void
public virtual void resume()
Returns
| Type | Description |
|---|---|
| Void |