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
This commit is contained in:
Aurélien Zanelli 2015-08-21 10:39:36 +02:00 committed by Thiago Santos
parent 8d6e315b01
commit c5a4a83828
2 changed files with 15 additions and 0 deletions

View file

@ -151,6 +151,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:
*

View 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);