From 0817440ee12ac39c3b8bee746baa6ad02379b78c Mon Sep 17 00:00:00 2001 From: Lasse Laukkanen Date: Thu, 29 Apr 2010 13:24:18 +0300 Subject: [PATCH] photography: Add image-preview-supported-caps interface property MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a readable property to gstphotography interface to query what are the allowed preview caps supported. Patch by Tommi Myöhänen --- gst-libs/gst/interfaces/photography.c | 7 +++++++ gst-libs/gst/interfaces/photography.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/gst-libs/gst/interfaces/photography.c b/gst-libs/gst/interfaces/photography.c index aa4bb6c72b..d33db8aac3 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 66ec6ac3a1..a1f145c3f5 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"