Top |
ArvDevice is an abstract base class for the control of cameras. It provides an easy access to the camera settings, and to its genicam interface for more advanced uses.
ArvStream * arv_device_create_stream (ArvDevice *device
,ArvStreamCallback callback
,void *user_data
);
Creates a new ArvStream for video stream handling. See
ArvStreamCallback
for details regarding the callback function.
device |
||
callback |
a frame processing callback. |
[scope call] |
user_data |
user data for |
[allow-none][closure] |
Since: 0.2.0
ArvChunkParser *
arv_device_create_chunk_parser (ArvDevice *device
);
Create a ArvChunkParser object, to be used for chunk data extraction from ArvBuffer.
Since: 0.4.0
gboolean arv_device_read_memory (ArvDevice *device
,guint64 address
,guint32 size
,void *buffer
,GError **error
);
Reads size
bytes from the device memory.
Since: 0.2.0
gboolean arv_device_write_memory (ArvDevice *device
,guint64 address
,guint32 size
,void *buffer
,GError **error
);
Writes size
bytes to the device memory.
Since: 0.2.0
gboolean arv_device_read_register (ArvDevice *device
,guint64 address
,guint32 *value
,GError **error
);
Reads the value of a device register.
Since: 0.2.0
gboolean arv_device_write_register (ArvDevice *device
,guint64 address
,guint32 value
,GError **error
);
Writes value
to a device register.
Since: 0.2.0
const char * arv_device_get_genicam_xml (ArvDevice *device
,size_t *size
);
Gets the Genicam XML data stored in the device memory.
device |
||
size |
placeholder for the returned data size (bytes) // BUG: (skip) seems ignored. |
[out][allow-none] |
Since: 0.2.0
ArvGc *
arv_device_get_genicam (ArvDevice *device
);
Retrieves the genicam interface of the given device.
Since: 0.2.0
ArvGcNode * arv_device_get_feature (ArvDevice *device
,const char *feature
);
Since: 0.2.0
void arv_device_execute_command (ArvDevice *device
,const char *feature
);
Execute a genicam command. If an error occur, this function change the device status.
Since: 0.2.0
gboolean arv_device_get_boolean_feature_value (ArvDevice *device
,const char *feature
);
the feature value.
If this operation fails, the device status returned by arv_device_get_status()
will be changed.
Since: 0.6.0
void arv_device_set_boolean_feature_value (ArvDevice *device
,const char *feature
,gboolean value
);
Set the value of a boolean feature.
If this operation fails, the device status returned by arv_device_get_status()
will be changed.
Since: 0.6.0
void arv_device_set_string_feature_value (ArvDevice *device
,const char *feature
,const char *value
);
const char * arv_device_get_string_feature_value (ArvDevice *device
,const char *feature
);
void arv_device_set_integer_feature_value (ArvDevice *device
,const char *feature
,gint64 value
);
gint64 arv_device_get_integer_feature_value (ArvDevice *device
,const char *feature
);
void arv_device_get_integer_feature_bounds (ArvDevice *device
,const char *feature
,gint64 *min
,gint64 *max
);
void arv_device_set_float_feature_value (ArvDevice *device
,const char *feature
,double value
);
double arv_device_get_float_feature_value (ArvDevice *device
,const char *feature
);
void arv_device_get_float_feature_bounds (ArvDevice *device
,const char *feature
,double *min
,double *max
);
gint64 * arv_device_get_available_enumeration_feature_values (ArvDevice *device
,const char *feature
,guint *n_values
);
const char ** arv_device_get_available_enumeration_feature_values_as_strings (ArvDevice *device
,const char *feature
,guint *n_values
);
Get all the available values of feature
, as strings.
device |
an ArvDevice |
|
feature |
feature name |
|
n_values |
placeholder for the number of returned values |
a newly created array of const strings, which must freed after use using g_free.
[array length=n_values][transfer container]
Since: 0.2.0