Top |
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.
ArvFakeCamera * arv_fake_camera_new_full (const char *serial_number
,const char *genicam_filename
);
gboolean arv_fake_camera_read_memory (ArvFakeCamera *camera
,guint32 address
,guint32 size
,void *buffer
);
gboolean arv_fake_camera_write_memory (ArvFakeCamera *camera
,guint32 address
,guint32 size
,const void *buffer
);
gboolean arv_fake_camera_read_register (ArvFakeCamera *camera
,guint32 address
,guint32 *value
);
gboolean arv_fake_camera_write_register (ArvFakeCamera *camera
,guint32 address
,guint32 value
);
void
arv_fake_camera_wait_for_next_frame (ArvFakeCamera *camera
);
guint64 arv_fake_camera_get_sleep_time_for_next_frame (ArvFakeCamera *camera
,guint64 *next_timestamp_us
);
void arv_fake_camera_fill_buffer (ArvFakeCamera *camera
,ArvBuffer *buffer
,guint32 *packet_size
);
Fill a buffer with data from the fake camera.
void arv_fake_camera_set_inet_address (ArvFakeCamera *camera
,GInetAddress *address
);
guint32
arv_fake_camera_get_acquisition_status
(ArvFakeCamera *camera
);
guint32
arv_fake_camera_get_control_channel_privilege
(ArvFakeCamera *camera
);
guint32
arv_fake_camera_get_heartbeat_timeout (ArvFakeCamera *camera
);
GSocketAddress *
arv_fake_camera_get_stream_address (ArvFakeCamera *camera
);
void arv_fake_camera_set_control_channel_privilege (ArvFakeCamera *camera
,guint32 privilege
);
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.
void arv_fake_camera_set_trigger_frequency (ArvFakeCamera *camera
,double frequency
);
const char * arv_fake_camera_get_genicam_xml (ArvFakeCamera *camera
,size_t *size
);