[cheese/libcheese: 5/5] cheese-camera: Added gobject-instrospection annotation
- From: Luciana Fujii Pontello <lufujii src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/libcheese: 5/5] cheese-camera: Added gobject-instrospection annotation
- Date: Fri, 28 Jan 2011 22:49:34 +0000 (UTC)
commit ff107bb4c2fbe35050b6b3ccb7990d5a033b16ee
Author: Luciana Fujii Pontello <luciana fujii eti br>
Date: Fri Jan 28 18:16:47 2011 -0200
cheese-camera: Added gobject-instrospection annotation
libcheese/cheese-camera.c | 114 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 114 insertions(+), 0 deletions(-)
---
diff --git a/libcheese/cheese-camera.c b/libcheese/cheese-camera.c
index fe4f06e..dd80af6 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -675,6 +675,13 @@ cheese_camera_get_num_camera_devices (CheeseCamera *camera)
return priv->num_camera_devices;
}
+/**
+ * cheese_camera_get_selected_device:
+ * @camera: a #CheeseCamera
+ *
+ * Returns: (transfer none): a #CheeseCameraDevice or NULL
+ */
+
CheeseCameraDevice *
cheese_camera_get_selected_device (CheeseCamera *camera)
{
@@ -725,6 +732,11 @@ cheese_camera_switch_camera_device (CheeseCamera *camera)
* } */
}
+/**
+ * cheese_camera_play:
+ * @camera: a #CheeseCamera
+ */
+
void
cheese_camera_play (CheeseCamera *camera)
{
@@ -755,6 +767,11 @@ cheese_camera_play (CheeseCamera *camera)
priv->pipeline_is_playing = TRUE;
}
+/**
+ * cheese_camera_stop:
+ * @camera: a #CheeseCamera
+ */
+
void
cheese_camera_stop (CheeseCamera *camera)
{
@@ -822,6 +839,12 @@ cheese_camera_element_from_effect (CheeseCamera *camera, CheeseEffect *effect)
return effect_filter;
}
+/**
+ * cheese_camera_set_effect:
+ * @camera: a #CheeseCamera
+ * @effect: a #CheeseEffect
+ */
+
void
cheese_camera_set_effect (CheeseCamera *camera, CheeseEffect *effect)
{
@@ -832,6 +855,12 @@ cheese_camera_set_effect (CheeseCamera *camera, CheeseEffect *effect)
cheese_camera_change_effect_filter (camera, effect_filter);
}
+/**
+ * cheese_camera_toggle_effects_pipeline:
+ * @camera: a #CheeseCamera
+ * @active: TRUE is effects pipeline is active, FALSE otherwise
+ */
+
void
cheese_camera_toggle_effects_pipeline (CheeseCamera *camera, gboolean active)
{
@@ -849,6 +878,13 @@ cheese_camera_toggle_effects_pipeline (CheeseCamera *camera, gboolean active)
}
}
+/**
+ * cheese_camera_connect_effect_texture:
+ * @camera: a #CheeseCamera
+ * @effect: a #CheeseEffect
+ * @texture: a #ClutterTexture
+ */
+
void
cheese_camera_connect_effect_texture (CheeseCamera *camera, CheeseEffect *effect, ClutterTexture *texture)
{
@@ -888,6 +924,12 @@ cheese_camera_connect_effect_texture (CheeseCamera *camera, CheeseEffect *effect
g_object_set (G_OBJECT (priv->effects_valve), "drop", FALSE, NULL);
}
+/**
+ * cheese_camera_start_video_recording:
+ * @camera: a #CheeseCamera
+ * @filename: the name of the video file that should be recorded
+ */
+
void
cheese_camera_start_video_recording (CheeseCamera *camera, const char *filename)
{
@@ -918,6 +960,11 @@ cheese_camera_force_stop_video_recording (gpointer data)
return FALSE;
}
+/**
+ * cheese_camera_stop_video_recording:
+ * @camera: a #CheeseCamera
+ */
+
void
cheese_camera_stop_video_recording (CheeseCamera *camera)
{
@@ -940,6 +987,14 @@ cheese_camera_stop_video_recording (CheeseCamera *camera)
}
}
+/**
+ * cheese_camera_take_photo:
+ * @camera: a #CheeseCamera
+ * @filename: name of the file to save photo to
+ *
+ * Returns: TRUE on success, FALSE if an error occurred
+ */
+
gboolean
cheese_camera_take_photo (CheeseCamera *camera, const char *filename)
{
@@ -962,6 +1017,11 @@ cheese_camera_take_photo (CheeseCamera *camera, const char *filename)
return TRUE;
}
+/**
+ * cheese_camera_take_photo_pixbuf:
+ * @camera: a #CheeseCamera
+ */
+
gboolean
cheese_camera_take_photo_pixbuf (CheeseCamera *camera)
{
@@ -1168,6 +1228,11 @@ cheese_camera_new (ClutterTexture *video_texture, char *camera_device_name,
return camera;
}
+/**
+ * cheese_camera_set_device_by_dev_file:
+ * camera: a #CheeseCamera
+ * @file: the filename
+ */
void
cheese_camera_set_device_by_dev_file (CheeseCamera *camera, const gchar *file)
@@ -1197,6 +1262,14 @@ cheese_camera_set_device_by_dev_udi (CheeseCamera *camera, const gchar *udi)
}
}
}
+
+/**
+ * cheese_camera_setup:
+ * @camera: a #CheeseCamera
+ * @id: the device id
+ * @error: return location for a GError or NULL
+ */
+
void
cheese_camera_setup (CheeseCamera *camera, const char *id, GError **error)
{
@@ -1248,6 +1321,13 @@ cheese_camera_setup (CheeseCamera *camera, const char *id, GError **error)
g_error ("Unable link pipeline for photo");
}
+/**
+ * cheese_camera_get_camera_devices:
+ * @camera: a #CheeseCamera
+ *
+ * Returns: (element-type CheeseCamera.Device) (transfer container): Array of #CheeseCameraDevice
+ */
+
GPtrArray *
cheese_camera_get_camera_devices (CheeseCamera *camera)
{
@@ -1259,6 +1339,12 @@ cheese_camera_get_camera_devices (CheeseCamera *camera)
return g_ptr_array_ref (priv->camera_devices);
}
+/**
+ * cheese_camera_get_video_formats:
+ * @camera: a #CheeseCamera
+ *
+ * Returns: (element-type Cheese.VideoFormat) (transfer container): List of #CheeseVideoFormat
+ */
GList *
cheese_camera_get_video_formats (CheeseCamera *camera)
@@ -1285,6 +1371,12 @@ cheese_camera_is_playing (CheeseCamera *camera)
return priv->pipeline_is_playing;
}
+/**
+ * cheese_camera_set_video_format:
+ * @camera: a #CheeseCamera
+ * format: a #CheeseVideoFormat
+ */
+
void
cheese_camera_set_video_format (CheeseCamera *camera, CheeseVideoFormat *format)
{
@@ -1305,6 +1397,13 @@ cheese_camera_set_video_format (CheeseCamera *camera, CheeseVideoFormat *format)
}
}
+/**
+ * cheese_camera_get_current_video_format:
+ * @camera: a #CheeseCamera
+ *
+ * Returns: (transfer none): a #CheeseVideoFormat
+ */
+
const CheeseVideoFormat *
cheese_camera_get_current_video_format (CheeseCamera *camera)
{
@@ -1315,6 +1414,14 @@ cheese_camera_get_current_video_format (CheeseCamera *camera)
return priv->current_format;
}
+/**
+ * @camera: a #CheeseCamera
+ * @property: name of the balance property
+ * @min: (out): minimun value
+ * @max: (out): maximum value
+ * @def: (out): default value
+ */
+
gboolean
cheese_camera_get_balance_property_range (CheeseCamera *camera,
const gchar *property,
@@ -1344,6 +1451,13 @@ cheese_camera_get_balance_property_range (CheeseCamera *camera,
return TRUE;
}
+/**
+ * cheese_camera_set_balance_property:
+ * @camera: A #CheeseCamera
+ * @property: name of the balance property
+ * @value: value to be set
+ */
+
void
cheese_camera_set_balance_property (CheeseCamera *camera, const gchar *property, gdouble value)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]