Class
AravisStream
Description [src]
abstract class Aravis.Stream : GObject.Object {
parent_instance: GObject
}
ArvStream
provides an abstract base class for the implementation of video
stream reception threads. The interface between the reception thread and the
main thread is done using asynchronous queues, containing ArvBuffer
objects.
Instance methods
arv_stream_pop_buffer
Pops a buffer from the output queue of stream
. The retrieved buffer
may contain an invalid image. Caller should check the buffer status before using it.
This function blocks until a buffer is available.
Available since: 0.2.0
arv_stream_push_buffer
Pushes a ArvBuffer
to the stream
thread. The stream
takes ownership of buffer
,
and will free all the buffers still in its queues when destroyed.
Available since: 0.2.0
arv_stream_set_emit_signals
Make stream
emit signals. This option is
by default disabled because signal emission is expensive and unneeded when
the application prefers to operate in pull mode.
Available since: 0.2.0
arv_stream_start_thread
Start the stream receiving thread. The thread is automatically started when
the ArvStream
object is instantiated, so this function is only useful if
the thread was stopped using arv_stream_stop_thread
.
Available since: 0.6.2
arv_stream_stop_thread
Stop the stream receiving thread, and optionally delete all the ArvBuffer
stored in the stream object queues. Main use of this function is to be able
to quickly change an acquisition parameter that changes the payload size,
without deleting/recreating the stream object.
Available since: 0.6.2
arv_stream_timeout_pop_buffer
Pops a buffer from the output queue of stream
, waiting no more than timeout
. The retrieved buffer
may contain an invalid image. Caller should check the buffer status before using it.
Available since: 0.2.0
arv_stream_try_pop_buffer
Pops a buffer from the output queue of stream
. The retrieved buffer
may contain an invalid image. Caller should check the buffer status before using it.
This is the non blocking version of pop_buffer.
Available since: 0.2.0
Properties
Aravis.Stream:callback
Aravis.Stream:callback-data
Aravis.Stream:destroy-notify
Aravis.Stream:device
Aravis.Stream:emit-signals
Class structure
struct AravisStreamClass {
GObjectClass parent_class;
void (* start_thread) (
ArvStream* stream
);
void (* stop_thread) (
ArvStream* stream
);
void (* new_buffer) (
ArvStream* stream
);
}
Class members
parent_class |
|
No description available. | |
start_thread |
|
No description available. | |
stop_thread |
|
No description available. | |
new_buffer |
|
No description available. |
Virtual methods
Aravis.StreamClass.new_buffer
Aravis.StreamClass.start_thread
Start the stream receiving thread. The thread is automatically started when
the ArvStream
object is instantiated, so this function is only useful if
the thread was stopped using arv_stream_stop_thread
.
Available since: 0.6.2