Filling fake camera buffer with user image

Hi -

It isn’t clear to me how to use the arv_fake_camera_set_fill_pattern to supply a user defined image to the fake camera. It seems to me that the buffer in the callback comes from the camera once it is created. How would one go about reading image data and then filling that buffer - should that be done inside the callback? Is there a way to create an ArvBuffer outside the camera and tell it to use that?

Thank you!


You can use the fill_pattern_data associated to the callback to pass any data you want. But you still have to copy this data to the buffer handled to the callback, as it will change at every call.

Thanks - I got this figured out now and can basically point a fake camera at a directory of images I captured and have it loop through them.