mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
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:
parent
356daf25a5
commit
0817440ee1
2 changed files with 9 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue