ArvFakeCamera

ArvFakeCamera — Fake camera internals

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── ArvFakeCamera

Description

ArvFakeCamera is a class that simulate a real camera, which provides methods for the implementation of ArvFakeDevice and ArvFakeStream.

arv-fake-gv-camera is a GV camera simulator based on this class.

Functions

arv_fake_camera_new ()

ArvFakeCamera *
arv_fake_camera_new (const char *serial_number);

arv_fake_camera_read_memory ()

gboolean
arv_fake_camera_read_memory (ArvFakeCamera *camera,
                             guint32 address,
                             guint32 size,
                             void *buffer);

arv_fake_camera_write_memory ()

gboolean
arv_fake_camera_write_memory (ArvFakeCamera *camera,
                              guint32 address,
                              guint32 size,
                              const void *buffer);

arv_fake_camera_read_register ()

gboolean
arv_fake_camera_read_register (ArvFakeCamera *camera,
                               guint32 address,
                               guint32 *value);

arv_fake_camera_write_register ()

gboolean
arv_fake_camera_write_register (ArvFakeCamera *camera,
                                guint32 address,
                                guint32 value);

arv_fake_camera_wait_for_next_frame ()

void
arv_fake_camera_wait_for_next_frame (ArvFakeCamera *camera);

arv_fake_camera_fill_buffer ()

void
arv_fake_camera_fill_buffer (ArvFakeCamera *camera,
                             ArvBuffer *buffer,
                             guint32 *packet_size);

arv_fake_camera_set_inet_address ()

void
arv_fake_camera_set_inet_address (ArvFakeCamera *camera,
                                  GInetAddress *address);

arv_fake_camera_get_acquisition_status ()

guint32
arv_fake_camera_get_acquisition_status
                               (ArvFakeCamera *camera);

arv_fake_camera_get_control_channel_privilege ()

guint32
arv_fake_camera_get_control_channel_privilege
                               (ArvFakeCamera *camera);

arv_fake_camera_get_heartbeat_timeout ()

guint32
arv_fake_camera_get_heartbeat_timeout (ArvFakeCamera *camera);

arv_fake_camera_get_payload ()

size_t
arv_fake_camera_get_payload (ArvFakeCamera *camera);

arv_fake_camera_get_stream_address ()

GSocketAddress *
arv_fake_camera_get_stream_address (ArvFakeCamera *camera);

Parameters

camera

a ArvFakeCamera

 

Returns

the data stream GSocketAddress for this camera.

[transfer full]


arv_fake_camera_set_control_channel_privilege ()

void
arv_fake_camera_set_control_channel_privilege
                               (ArvFakeCamera *camera,
                                guint32 privilege);

arv_fake_camera_set_fill_pattern ()

void
arv_fake_camera_set_fill_pattern (ArvFakeCamera *camera,
                                  ArvFakeCameraFillPattern fill_pattern_callback,
                                  void *fill_pattern_data);

Sets the fill pattern callback for custom test images.

Parameters

camera

a ArvFakeCamera

 

fill_pattern_callback

callback for image filling.

[scope call]

fill_pattern_data

image filling user data.

[closure]

arv_fake_camera_set_trigger_frequency ()

void
arv_fake_camera_set_trigger_frequency (ArvFakeCamera *camera,
                                       double frequency);

arv_fake_device_get_fake_camera ()

ArvFakeCamera *
arv_fake_device_get_fake_camera (ArvFakeDevice *device);

Parameters

device

a fake device

 

Returns

the ArvFakeCamera used by this device instance.

[transfer none]


arv_set_fake_camera_genicam_filename ()

void
arv_set_fake_camera_genicam_filename (const char *filename);

arv_get_fake_camera_genicam_xml ()

const char *
arv_get_fake_camera_genicam_xml (size_t *size);

Types and Values

ArvFakeCamera

typedef struct _ArvFakeCamera ArvFakeCamera;