photography: Add image-preview-supported-caps interface property
authorLasse Laukkanen <ext-lasse.2.laukkanen@nokia.com>
Thu, 29 Apr 2010 10:24:18 +0000 (13:24 +0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 20 Sep 2010 21:26:47 +0000 (18:26 -0300)
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@nokia.com>

gst-libs/gst/interfaces/photography.c
gst-libs/gst/interfaces/photography.h

index aa4bb6c72bc5c0d2d5e8034cde36ff9bebb47d6e..d33db8aac3f0783b852dd953ad64f7d011f180dd 100644 (file)
@@ -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));
 }
index 66ec6ac3a1409d5444408e7194f03b04031c905f..a1f145c3f5605989cd46a197f91b0aed7154f03a 100644 (file)
@@ -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"