tag: add GST_TAG_CAPTURING_FOCAL_LENGTH_35_MM tag
authorAurélien Zanelli <aurelien.zanelli@darkosphere.fr>
Fri, 21 Aug 2015 08:39:36 +0000 (10:39 +0200)
committerThiago Santos <thiagoss@osg.samsung.com>
Thu, 28 Apr 2016 15:13:15 +0000 (12:13 -0300)
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
gst-libs/gst/tag/tags.c

index 48631d3..7ca444f 100644 (file)
@@ -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)
index 1931d18..5a0214d 100644 (file)
@@ -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);