Class InputFrameThrottler
- Namespace
- easyar
InputFrameThrottler. There is an input frame input port and an input frame output port, used to prevent new input frames from entering the algorithm component when the algorithm component has not finished processing the previous frame data. InputFrameThrottler occupies 1 camera's buffer. The camera's setBufferCapacity should be used to set a value not less than the total number of camera buffers occupied by all components. All members of this class are thread-safe. It should be noted that the connection and disconnection of its signalInput should not be performed while data is flowing in, otherwise it may fall into a state where output is not possible. (It is recommended to complete the data flow connection before the Camera starts.)
Methods
input
Input Port.
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()
Returns
bufferRequirement
Current number of camera buffers occupied by the 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()
Returns
- Int32
output
Output Port.
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()
Returns
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()
Returns
create
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()