Table of Contents

Class InputFrameThrottler

네임스페이스
easyar

Input frame throttler. It has one input frame input port and one input frame output port, used to prevent new input frames from entering an algorithm component while the component has not finished processing the previous frame. InputFrameThrottler occupies one camera buffer. Use camera setBufferCapacity to set no fewer camera buffers than the total number occupied by all components. All members of this class are thread-safe. Note that connecting and disconnecting signalInput should not be performed while data is flowing in, otherwise it may enter a state where it cannot output. It is recommended to complete data-flow connections before starting the Camera.

InputFrameThrottler

메서드

input

입력 포트입니다.

void easyar_InputFrameThrottler_input(easyar_InputFrameThrottler * This, easyar_InputFrameSink * * Return)
std::shared_ptr<InputFrameSink> input()
public @Nonnull InputFrameSink input()
fun input(): InputFrameSink
- (easyar_InputFrameSink *)input
public func input() -> InputFrameSink
public virtual InputFrameSink input()

반환 값

형식 설명
InputFrameSink

bufferRequirement

The number of camera buffers occupied by the current component.

int easyar_InputFrameThrottler_bufferRequirement(easyar_InputFrameThrottler * This)
int bufferRequirement()
public int bufferRequirement()
fun bufferRequirement(): Int
- (int)bufferRequirement
public func bufferRequirement() -> Int32
public virtual int bufferRequirement()

반환 값

형식 설명
Int32

output

출력 포트입니다.

void easyar_InputFrameThrottler_output(easyar_InputFrameThrottler * This, easyar_InputFrameSource * * Return)
std::shared_ptr<InputFrameSource> output()
public @Nonnull InputFrameSource output()
fun output(): InputFrameSource
- (easyar_InputFrameSource *)output
public func output() -> InputFrameSource
public virtual InputFrameSource output()

반환 값

형식 설명
InputFrameSource

signalInput

Release signal input port.

void easyar_InputFrameThrottler_signalInput(easyar_InputFrameThrottler * This, easyar_SignalSink * * Return)
std::shared_ptr<SignalSink> signalInput()
public @Nonnull SignalSink signalInput()
fun signalInput(): SignalSink
- (easyar_SignalSink *)signalInput
public func signalInput() -> SignalSink
public virtual SignalSink signalInput()

반환 값

형식 설명
SignalSink

create

만듭니다.

void easyar_InputFrameThrottler_create(easyar_InputFrameThrottler * * Return)
static std::shared_ptr<InputFrameThrottler> create()
public static @Nonnull InputFrameThrottler create()
companion object fun create(): InputFrameThrottler
+ (easyar_InputFrameThrottler *)create
public static func create() -> InputFrameThrottler
public static InputFrameThrottler create()

반환 값

형식 설명
InputFrameThrottler