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 472110b..e9877ed 100644 --- a/gst-libs/gst/tag/tag.h +++ b/gst-libs/gst/tag/tag.h @@ -203,6 +203,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: * * Scene mode used when capturing an image. (string) diff --git a/gst-libs/gst/tag/tags.c b/gst-libs/gst/tag/tags.c index 9521821..a8e867c 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); -- 2.7.4