mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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
This commit is contained in:
parent
3ffde851d1
commit
7d4bdbf5ce
3 changed files with 28 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue