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@nokia.com>
This commit is contained in:
Lasse Laukkanen 2010-04-29 13:24:18 +03:00 committed by Thiago Santos
parent 356daf25a5
commit 0817440ee1
2 changed files with 9 additions and 0 deletions

View 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));
}

View 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"