Callbacks¶
|
|
|
Details¶
- Aravis.FakeCameraFillPattern(buffer, fill_pattern_data, exposure_time_us, gain, pixel_format)¶
- Aravis.StreamCallback(user_data, type, buffer)¶
- Parameters:
user_data (
object
orNone
) – a pointer to user data associated to this callbacktype (
Aravis.StreamCallbackType
) – reason of the callback callbuffer (
Aravis.Buffer
) – a [class`ArvBuffer`] object
This is the signature of the callback passed on an
Aravis.Stream
instantiation, which will be called on the stream receiving thread initialization and finalization, and on every received buffer, once when the buffer is pulled from the buffer queue, and one more when the buffer is done (successfully or not).buffer is assured to be a valid
Aravis.Buffer
object only when type isAravis.StreamCallbackType.START_BUFFER
orAravis.StreamCallbackType.BUFFER_DONE
.The callback is awaken from the stream receiving thread, which means it is forbidden to access to the camera instance, except if you take care to protect the instance access from concurrent access. It also means all the time spent in the callback is less time available for the incoming data handling. CPU intensive image processing should happen elsewhere.