![]() |
Imaging Control 4 C Library
1.2.0
|
Contains function pointers used to specify the behavior of a queue sink. More...
Data Fields | |
void(* | release )(void *context) |
Notifies the user that the sink will not call any additional callback functions. More... | |
bool(* | sink_connected )(struct IC4_SINK *sink, void *context, const struct IC4_IMAGE_TYPE *image_type, size_t min_buffers_required) |
Called when the data stream to the sink is created. More... | |
void(* | sink_disconnected )(struct IC4_SINK *sink, void *context) |
Called when the data stream to the sink is stopped. More... | |
void(* | frames_queued )(struct IC4_SINK *sink, void *context) |
Called when new images were added to the sink's queue of filled buffers. More... | |
Contains function pointers used to specify the behavior of a queue sink.
void(* frames_queued(struct IC4_SINK *sink, void *context) |
Called when new images were added to the sink's queue of filled buffers.
This callback usually calls ic4_queuesink_pop_output_buffer() to access the image buffers.
[in] | sink | The sink object |
[in] | context | The context parameter that was passed to ic4_queuesink_create() when the sink was created |
frames_queued
callback performs an operation that unconditionally requires activity on the thread that called ic4_grabber_stream_stop
. void(* release(void *context) |
Notifies the user that the sink will not call any additional callback functions.
Any resources attached to the context
parameter can be released.
[in] | context | The context parameter that was passed to ic4_queuesink_create() when the sink was created |
release
callback function is executed on the thread that destroys the sink using the final call to ic4_sink_unref(). bool(* sink_connected(struct IC4_SINK *sink, void *context, const struct IC4_IMAGE_TYPE *image_type, size_t min_buffers_required) |
Called when the data stream to the sink is created.
[in] | sink | The sink object |
[in] | context | The context parameter that was passed to ic4_queuesink_create() when the sink was created |
[in] | image_type | The negotiated image type that the sink will receive |
[in] | min_buffers_required | The minimum number of buffers required by the device to start a stream |
true
, if the data stream should be created. If false
is returned the call to ic4_grabber_stream_setup() will fail.void(* sink_disconnected(struct IC4_SINK *sink, void *context) |
Called when the data stream to the sink is stopped.
[in] | sink | The sink object |
[in] | context | The context parameter that was passed to ic4_queuesink_create() when the sink was created |