[aravis] Add arv_camera_set_pixel_format_from_string.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] Add arv_camera_set_pixel_format_from_string.
- Date: Mon, 9 Jul 2012 08:54:45 +0000 (UTC)
commit 3d7b098285a258e2b28144688f684cb2e684ac95
Author: Jure Varlec <jure varlec ad-vega si>
Date: Sun Jul 1 18:41:54 2012 +0200
Add arv_camera_set_pixel_format_from_string.
src/arvcamera.c | 16 ++++++++++++++++
src/arvcamera.h | 1 +
2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/src/arvcamera.c b/src/arvcamera.c
index 66838c2..cecb927 100644
--- a/src/arvcamera.c
+++ b/src/arvcamera.c
@@ -328,6 +328,22 @@ arv_camera_set_pixel_format (ArvCamera *camera, ArvPixelFormat format)
}
/**
+ * arv_camera_set_pixel_format_from_string:
+ * @camera: a #ArvCamera
+ * @format: pixel format
+ *
+ * Defines pixel format described by a string.
+ */
+
+void
+arv_camera_set_pixel_format_from_string (ArvCamera *camera, const char * format)
+{
+ g_return_if_fail (ARV_IS_CAMERA (camera));
+
+ arv_device_set_string_feature_value (camera->priv->device, "PixelFormat", format);
+}
+
+/**
* arv_camera_get_pixel_format:
* @camera: a #ArvCamera
*
diff --git a/src/arvcamera.h b/src/arvcamera.h
index 18b209a..7e0b9e8 100644
--- a/src/arvcamera.h
+++ b/src/arvcamera.h
@@ -72,6 +72,7 @@ void arv_camera_set_binning (ArvCamera *camera, gint dx, gint dy);
void arv_camera_get_binning (ArvCamera *camera, gint *dx, gint *dy);
void arv_camera_set_pixel_format (ArvCamera *camera, ArvPixelFormat format);
+void arv_camera_set_pixel_format_from_string (ArvCamera *camera, const char * format);
ArvPixelFormat arv_camera_get_pixel_format (ArvCamera *camera);
const char * arv_camera_get_pixel_format_as_string (ArvCamera *camera);
gint64 * arv_camera_get_available_pixel_formats (ArvCamera *camera, guint *n_pixel_formats);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]