mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
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:
parent
8d6e315b01
commit
c5a4a83828
2 changed files with 15 additions and 0 deletions
|
@ -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:
|
||||
*
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue