Commit 7d4bdbf5 authored by Thiago Santos's avatar Thiago Santos
Browse files

tags: Add GST_TAG_IMAGE_HORIZONTAL/VERTICAL_PPI tags

Adds new tags for representing the intended PPI of images/videos

API: GST_TAG_IMAGE_HORIZONTAL_PPI
API: GST_TAG_IMAGE_VERTICAL_PPI

Fixes #626570
parent 3ffde851
......@@ -1648,6 +1648,8 @@ GST_TAG_CAPTURING_CONTRAST
GST_TAG_CAPTURING_SATURATION
GST_TAG_CAPTURING_FLASH_FIRED
GST_TAG_CAPTURING_FLASH_MODE
GST_TAG_IMAGE_HORIZONTAL_PPI
GST_TAG_IMAGE_VERTICAL_PPI
gst_tag_register_musicbrainz_tags
gst_tag_freeform_string_to_utf8
gst_tag_parse_extended_comment
......
......@@ -306,6 +306,24 @@ G_BEGIN_DECLS
*/
#define GST_TAG_CAPTURING_FLASH_MODE "capturing-flash-mode"
/**
* GST_TAG_IMAGE_HORIZONTAL_PPI:
*
* Media (image/video) intended horizontal pixel density in ppi. (double)
*
* Since: 0.10.31
*/
#define GST_TAG_IMAGE_HORIZONTAL_PPI "image-horizontal-ppi"
/**
* GST_TAG_IMAGE_VERTICAL_PPI:
*
* Media (image/video) intended vertical pixel density in ppi. (double)
*
* Since: 0.10.31
*/
#define GST_TAG_IMAGE_VERTICAL_PPI "image-vertical-ppi"
/* additional information for image tags */
/**
......
......@@ -144,6 +144,14 @@ gst_tag_register_tags_internal (gpointer unused)
G_TYPE_STRING, _("capturing flash mode"),
_("The selected flash mode while capturing and image"), NULL);
gst_tag_register (GST_TAG_IMAGE_HORIZONTAL_PPI, GST_TAG_FLAG_META,
G_TYPE_DOUBLE, _("image horizontal ppi"),
_("Media (image/video) intended horizontal pixel density in ppi"), NULL);
gst_tag_register (GST_TAG_IMAGE_VERTICAL_PPI, GST_TAG_FLAG_META,
G_TYPE_DOUBLE, _("image vertical ppi"),
_("Media (image/video) intended vertical pixel density in ppi"), NULL);
return NULL;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment