Imaging Control 4 C++ Library 1.2.0
|
Abstract base class for sinks. More...
Public Types | |
enum class | SinkMode { Run = c_interface::IC4_SINK_MODE_RUN , Pause = c_interface::IC4_SINK_MODE_PAUSE } |
Defines the possible sink modes. More... | |
Public Member Functions | |
bool | setSinkMode (SinkMode mode, Error &err=Error::Default()) noexcept |
Sets the sink mode for a sink. | |
SinkMode | sinkMode () const noexcept |
Gets the current sink mode of a sink. | |
bool | isAttached () const noexcept |
Checks whether a sink is currently attached to a Grabber as part of a data stream. | |
virtual SinkType | sinkType () const noexcept=0 |
Returns the type of this sink. | |
Abstract base class for sinks.
Sink objects provide programmatic access to the image data acquired from video capture devices.
There are multiple sink types available:
To create a sink object, use its creation function, e.g. QueueSink::create() or SnapSink::create().
A sink is connected to a video capture device using the Grabber::streamSetup() function.
|
strong |
|
inlinenoexcept |
|
inlinenoexcept |
Sets the sink mode for a sink.
[in] | mode | The new sink mode |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inlinenoexcept |
Gets the current sink mode of a sink.