diff --git a/docs/libs/gst-plugins-base-libs-sections.txt b/docs/libs/gst-plugins-base-libs-sections.txt index c553f4bd30..5670f2ab57 100644 --- a/docs/libs/gst-plugins-base-libs-sections.txt +++ b/docs/libs/gst-plugins-base-libs-sections.txt @@ -1639,6 +1639,13 @@ GST_TAG_CAPTURING_FOCAL_RATIO GST_TAG_CAPTURING_FOCAL_LENGTH GST_TAG_CAPTURING_DIGITAL_ZOOM_RATIO GST_TAG_CAPTURING_ISO_SPEED +GST_TAG_CAPTURING_EXPOSURE_PROGRAM +GST_TAG_CAPTURING_EXPOSURE_MODE +GST_TAG_CAPTURING_SCENE_CAPTURE_TYPE +GST_TAG_CAPTURING_GAIN_ADJUSTMENT +GST_TAG_CAPTURING_WHITE_BALANCE +GST_TAG_CAPTURING_CONTRAST +GST_TAG_CAPTURING_SATURATION gst_tag_register_musicbrainz_tags gst_tag_freeform_string_to_utf8 gst_tag_parse_extended_comment diff --git a/gst-libs/gst/tag/tag.h b/gst-libs/gst/tag/tag.h index 399bc4331c..08a024aee4 100644 --- a/gst-libs/gst/tag/tag.h +++ b/gst-libs/gst/tag/tag.h @@ -168,6 +168,118 @@ G_BEGIN_DECLS */ #define GST_TAG_CAPTURING_ISO_SPEED "capturing-iso-speed" +/** + * GST_TAG_CAPTURING_EXPOSURE_PROGRAM: + * + * Type of exposure control used when capturing an image. (string) + * + * The allowed values are: + * "undefined" + * "manual" + * "normal" - automatically controlled + * "aperture-priority" - user selects aperture value + * "shutter-priority" - user selects shutter speed + * "creative" - biased towards depth of field + * "action" - biased towards fast shutter speed + * "portrait" - closeup, leaving background out of focus + * "landscape" - landscape photos, background in focus + * + * Since: 0.10.31 + */ +#define GST_TAG_CAPTURING_EXPOSURE_PROGRAM "capturing-exposure-program" + +/** + * GST_TAG_CAPTURING_EXPOSURE_MODE: + * + * Exposure mode used when capturing an image. (string) + * + * The allowed values are: + * "auto-exposure" + * "manual-exposure" + * "auto-bracket" + * + * Since: 0.10.31 + */ +#define GST_TAG_CAPTURING_EXPOSURE_MODE "capturing-exposure-mode" + +/** + * GST_TAG_CAPTURING_SCENE_CAPTURE_TYPE: + * + * Scene mode used when capturing an image. (string) + * + * The allowed values are: + * "standard" + * "landscape" + * "portrait" + * "night-scene" + * + * Since: 0.10.31 + */ +#define GST_TAG_CAPTURING_SCENE_CAPTURE_TYPE "capturing-scene-capture-type" + +/** + * GST_TAG_CAPTURING_GAIN_ADJUSTMENT: + * + * Gain adjustment applied to an image. (string) + * + * The allowed values are: + * "none" + * "low-gain-up" + * "high-gain-up" + * "low-gain-down" + * "high-gain-down" + * + * Since: 0.10.31 + */ +#define GST_TAG_CAPTURING_GAIN_ADJUSTMENT "capturing-gain-adjustment" + +/** + * GST_TAG_CAPTURING_WHITE_BALANCE: + * + * White balance mode used when capturing an image. (string) + * + * The allowed values are: + * "auto" + * "manual" + * "daylight" + * "cloudy" + * "tungsten" + * "fluorescent" + * "fluorescent h" (newer daylight-calibrated fluorescents) + * "flash" + * + * Since: 0.10.31 + */ +#define GST_TAG_CAPTURING_WHITE_BALANCE "capturing-white-balance" + +/** + * GST_TAG_CAPTURING_CONTRAST: + * + * Direction of contrast processing applied when capturing an image. (string) + * + * The allowed values are: + * "normal" + * "soft" + * "hard" + * + * Since: 0.10.31 + */ +#define GST_TAG_CAPTURING_CONTRAST "capturing-contrast" + +/** + * GST_TAG_CAPTURING_SATURATION: + * + * Direction of saturation processing applied when capturing an image. (string) + * + * The allowed values are: + * "normal" + * "low-saturation" + * "high-saturation" + * + * Since: 0.10.31 + */ +#define GST_TAG_CAPTURING_SATURATION "capturing-saturation" + /* additional information for image tags */ diff --git a/gst-libs/gst/tag/tags.c b/gst-libs/gst/tag/tags.c index 493fcb3892..6b1a23d0d3 100644 --- a/gst-libs/gst/tag/tags.c +++ b/gst-libs/gst/tag/tags.c @@ -106,6 +106,36 @@ gst_tag_register_tags_internal (gpointer unused) G_TYPE_INT, _("capturing iso speed"), _("The ISO speed used when capturing an image"), NULL); + gst_tag_register (GST_TAG_CAPTURING_EXPOSURE_PROGRAM, GST_TAG_FLAG_META, + G_TYPE_STRING, _("capturing exposure program"), + _("The exposure program used when capturing an image"), NULL); + + gst_tag_register (GST_TAG_CAPTURING_EXPOSURE_MODE, GST_TAG_FLAG_META, + G_TYPE_STRING, _("capturing exposure mode"), + _("The exposure mode 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); + + gst_tag_register (GST_TAG_CAPTURING_GAIN_ADJUSTMENT, GST_TAG_FLAG_META, + G_TYPE_STRING, _("capturing gain adjustment"), + _("The overall gain adjustment applied on an image"), NULL); + + gst_tag_register (GST_TAG_CAPTURING_WHITE_BALANCE, GST_TAG_FLAG_META, + G_TYPE_STRING, _("capturing white balance"), + _("The white balance mode set when capturing an image"), NULL); + + gst_tag_register (GST_TAG_CAPTURING_CONTRAST, GST_TAG_FLAG_META, + G_TYPE_STRING, _("capturing contrast"), + _("The direction of contrast processing applied " + "when capturing an image"), NULL); + + gst_tag_register (GST_TAG_CAPTURING_SATURATION, GST_TAG_FLAG_META, + G_TYPE_STRING, _("capturing saturation"), + _("The direction of saturation processing applied when " + "capturing an image"), NULL); + return NULL; }