Get in touch with us today and our team of imaging professionals will be pleased to assist you.
This topic describes the Input class and the FrameInput class derived from it in the eSDK Pro Plugin API:
Input class — Represents a generic input port that receives data from another task within the plugin pipeline.FrameInput class — Specialized input port for receiving image frames, supporting both synchronous and asynchronous frame access.
Input ClassNamespace: eSdkPro::Plugin
Header: eSdkPro/plugin/port.h
An input port used to receive data from a task.
GetName()std::string eSdkPro::Plugin::Input::GetName() const
Returns: The name of the input.
GetType()PortType eSdkPro::Plugin::Input::GetType() const
Returns: The type of the input.
GetPlatform()HWPlatform eSdkPro::Plugin::Input::GetPlatform() const
Returns: The hardware platform of the input.
FrameInput ClassNamespace: eSdkPro::Plugin
Header: eSdkPro/plugin/port.h
An input port for frames.
GetFrame()Frame eSdkPro::Plugin::FrameInput::GetFrame()
Returns the input frame. The frame's data becomes invalid and must not be used after Process() returns.
Returns: The input frame.
GetFrameAsync()Frame eSdkPro::Plugin::FrameInput::GetFrameAsync()
Returns the input frame. The frame's data stays valid after Process() returns until a matching call to ReleaseAsyncFrame().
Returns: The input frame.
ReleaseAsyncFrame()void eSdkPro::Plugin::FrameInput::ReleaseAsyncFrame(const Frame& frame)
Releases the frame returned by GetFrameAsync(). Must be called to release the frame or the frame will be leaked.
Parameter: frame — The frame that has been previously returned by GetFrameAsync().
Get in touch with us today and our team of imaging professionals will be pleased to assist you.