From 4d4aade47b44efd4f721e2caec9cdb389c81f66b Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Wed, 13 Apr 2011 23:13:59 -0300 Subject: [PATCH] tag: Adds GST_TAG_CAPTURING_EXPOSURE_COMPENSATION Adds a new tag for indicating the used exposure compensation level in EV used when capturing an image. API: GST_TAG_CAPTURING_EXPOSURE_COMPENSATION --- gst-libs/gst/tag/tag.h | 9 +++++++++ gst-libs/gst/tag/tags.c | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/gst-libs/gst/tag/tag.h b/gst-libs/gst/tag/tag.h index 472110b2ab..e9877ed853 100644 --- a/gst-libs/gst/tag/tag.h +++ b/gst-libs/gst/tag/tag.h @@ -202,6 +202,15 @@ G_BEGIN_DECLS */ #define GST_TAG_CAPTURING_EXPOSURE_MODE "capturing-exposure-mode" +/** + * GST_TAG_CAPTURING_EXPOSURE_COMPENSATION: + * + * Exposure compensation using when capturing an image in EV. (double) + * + * Since: 0.10.33 + */ +#define GST_TAG_CAPTURING_EXPOSURE_COMPENSATION "capturing-exposure-compensation" + /** * GST_TAG_CAPTURING_SCENE_CAPTURE_TYPE: * diff --git a/gst-libs/gst/tag/tags.c b/gst-libs/gst/tag/tags.c index 9521821117..a8e867c0e0 100644 --- a/gst-libs/gst/tag/tags.c +++ b/gst-libs/gst/tag/tags.c @@ -133,6 +133,10 @@ gst_tag_register_tags_internal (gpointer unused) G_TYPE_STRING, _("capturing exposure mode"), _("The exposure mode used when capturing an image"), NULL); + gst_tag_register (GST_TAG_CAPTURING_EXPOSURE_COMPENSATION, GST_TAG_FLAG_META, + G_TYPE_DOUBLE, _("capturing exposure compensation"), + _("The exposure compensation used when capturing an image"), NULL); + gst_tag_register (GST_TAG_CAPTURING_SCENE_CAPTURE_TYPE, GST_TAG_FLAG_META, G_TYPE_STRING, _("capturing scene capture type"), _("The scene capture mode used when capturing an image"), NULL);