tags: Add GST_TAG_IMAGE_HORIZONTAL/VERTICAL_PPI tags
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 7 Sep 2010 11:22:27 +0000 (08:22 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 7 Sep 2010 11:59:46 +0000 (08:59 -0300)
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

docs/libs/gst-plugins-base-libs-sections.txt
gst-libs/gst/tag/tag.h
gst-libs/gst/tag/tags.c

index d3c1d66..d55a43a 100644 (file)
@@ -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
index 17fac20..5130ff6 100644 (file)
@@ -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 */
 
 /**
index 6b4c7da..1a9abcd 100644 (file)
@@ -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;
 }