[gst-cvs] gst-plugins-bad: photography: Add image-preview-supported-caps interface property

Thiago Sousa Santos thiagoss at kemper.freedesktop.org
Mon Sep 20 17:35:42 PDT 2010


Module: gst-plugins-bad
Branch: master
Commit: 0817440ee12ac39c3b8bee746baa6ad02379b78c
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=0817440ee12ac39c3b8bee746baa6ad02379b78c

Author: Lasse Laukkanen <ext-lasse.2.laukkanen at nokia.com>
Date:   Thu Apr 29 13:24:18 2010 +0300

photography: Add image-preview-supported-caps interface property

Adds a readable property to gstphotography interface to query
what are the allowed preview caps supported.

Patch by Tommi Myöhänen <ext-tommi.1.myohanen at nokia.com>

---

 gst-libs/gst/interfaces/photography.c |    7 +++++++
 gst-libs/gst/interfaces/photography.h |    2 ++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/gst-libs/gst/interfaces/photography.c b/gst-libs/gst/interfaces/photography.c
index aa4bb6c..d33db8a 100644
--- a/gst-libs/gst/interfaces/photography.c
+++ b/gst-libs/gst/interfaces/photography.c
@@ -573,4 +573,11 @@ gst_photography_iface_class_init (gpointer g_class)
           "Image capture supported caps",
           "Caps describing supported image capture formats", GST_TYPE_CAPS,
           G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+
+  /* Image preview caps */
+  g_object_interface_install_property (g_class,
+      g_param_spec_boxed (GST_PHOTOGRAPHY_PROP_IMAGE_PREVIEW_SUPPORTED_CAPS,
+          "Image preview supported caps",
+          "Caps describing supported image preview formats", GST_TYPE_CAPS,
+          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 }
diff --git a/gst-libs/gst/interfaces/photography.h b/gst-libs/gst/interfaces/photography.h
index 66ec6ac..a1f145c 100644
--- a/gst-libs/gst/interfaces/photography.h
+++ b/gst-libs/gst/interfaces/photography.h
@@ -65,6 +65,8 @@ G_BEGIN_DECLS
 #define GST_PHOTOGRAPHY_PROP_EXPOSURE     "exposure"
 #define GST_PHOTOGRAPHY_PROP_IMAGE_CAPTURE_SUPPORTED_CAPS \
     "image-capture-supported-caps"
+#define GST_PHOTOGRAPHY_PROP_IMAGE_PREVIEW_SUPPORTED_CAPS \
+    "image-preview-supported-caps"
 #define GST_PHOTOGRAPHY_PROP_FLICKER_MODE "flicker-mode"
 #define GST_PHOTOGRAPHY_PROP_FOCUS_MODE   "focus-mode"
 





More information about the Gstreamer-commits mailing list