From c5a4a8382886e3cabc70f0e8afd4040745ffa34f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aur=C3=A9lien=20Zanelli?= Date: Fri, 21 Aug 2015 10:39:36 +0200 Subject: [PATCH] tag: add GST_TAG_CAPTURING_FOCAL_LENGTH_35_MM tag It is the 35 mm equivalent focal length of the lens, mainly used in photography. Tag value is stored in a double value to be consistent with GST_TAG_CAPTURING_FOCAL_LENGTH. https://bugzilla.gnome.org/show_bug.cgi?id=753930 --- gst-libs/gst/tag/tag.h | 9 +++++++++ gst-libs/gst/tag/tags.c | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/gst-libs/gst/tag/tag.h b/gst-libs/gst/tag/tag.h index 48631d3..7ca444f 100644 --- a/gst-libs/gst/tag/tag.h +++ b/gst-libs/gst/tag/tag.h @@ -152,6 +152,15 @@ G_BEGIN_DECLS #define GST_TAG_CAPTURING_FOCAL_LENGTH "capturing-focal-length" /** + * GST_TAG_CAPTURING_FOCAL_LENGTH_35_MM: + * + * 35 mm equivalent focal length used when capturing an image, in mm. (double) + * + * Since: 1.10 + */ +#define GST_TAG_CAPTURING_FOCAL_LENGTH_35_MM "capturing-focal-length-35mm" + +/** * GST_TAG_CAPTURING_DIGITAL_ZOOM_RATIO: * * Digital zoom ratio used when capturing an image. (double) diff --git a/gst-libs/gst/tag/tags.c b/gst-libs/gst/tag/tags.c index 1931d18..5a0214d 100644 --- a/gst-libs/gst/tag/tags.c +++ b/gst-libs/gst/tag/tags.c @@ -118,6 +118,12 @@ gst_tag_register_tags_internal (gpointer unused) G_TYPE_DOUBLE, _("capturing focal length"), _("Focal length of the lens used capturing the image, in mm"), NULL); + gst_tag_register_static (GST_TAG_CAPTURING_FOCAL_LENGTH_35_MM, + GST_TAG_FLAG_META, G_TYPE_DOUBLE, + _("capturing 35 mm equivalent focal length"), + _("35 mm equivalent focal length of the lens used capturing the image, " + "in mm"), NULL); + gst_tag_register_static (GST_TAG_CAPTURING_DIGITAL_ZOOM_RATIO, GST_TAG_FLAG_META, G_TYPE_DOUBLE, _("capturing digital zoom ratio"), _("Digital zoom ratio used when capturing an image"), NULL); -- 2.7.4