When controlling a fake GV camera, how can one achieve setting the content of the next frame?
According to the docs, it appears the arv_fake_camera_set_fill_pattern is meant for this, but I’m not clear how to use it. The API takes a callback that gets called for each frame, but the ArvBuffer provided to that callback has no function to obtain a writable buffer to the frame data. There does exist an arv_buffer_get_data function, but this returns a const void*.
Looking at the source code, it seems the default callback (arv_fake_camera_diagonal_ramp) only achieves this by accessing the ArvBuffer’s priv
member, which I cannot access from client code.
Maybe I’m going about this all wrong. Is there another way to do it?
Thanks!