Callbacks

FakeCameraFillPattern (buffer, fill_pattern_data, exposure_time_us, gain, pixel_format)

StreamCallback (user_data, type, buffer)

Details

Aravis.FakeCameraFillPattern(buffer, fill_pattern_data, exposure_time_us, gain, pixel_format)
Parameters:
Aravis.StreamCallback(user_data, type, buffer)
Parameters:

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 is Aravis.StreamCallbackType.START_BUFFER or Aravis.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.