[gst-cvs] gstreamer: tag: Adds GST_TAG_APPLICATION_DATA
Thiago Sousa Santos
thiagoss at kemper.freedesktop.org
Wed Aug 25 05:15:53 PDT 2010
Module: gstreamer
Branch: master
Commit: 0bd40a439789fdfb92bb945ccdb0b9b2b34611eb
URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=0bd40a439789fdfb92bb945ccdb0b9b2b34611eb
Author: Thiago Santos <thiago.sousa.santos at collabora.co.uk>
Date: Mon Aug 16 14:12:35 2010 -0300
tag: Adds GST_TAG_APPLICATION_DATA
Adds GST_TAG_APPLICATION_DATA for representing arbitrary private
data that applications might want to store into tags. Exif/id3,
for example, have tags for this.
API: GST_TAG_APPLICATION_DATA
Fixes #626651
---
docs/gst/gstreamer-sections.txt | 1 +
gst/gsttaglist.c | 3 +++
gst/gsttaglist.h | 11 +++++++++++
3 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt
index 1c0f1fb..32e275c 100644
--- a/docs/gst/gstreamer-sections.txt
+++ b/docs/gst/gstreamer-sections.txt
@@ -2214,6 +2214,7 @@ GST_TAG_USER_RATING
GST_TAG_DEVICE_MANUFACTURER
GST_TAG_DEVICE_MODEL
GST_TAG_APPLICATION_NAME
+GST_TAG_APPLICATION_DATA
GST_TAG_IMAGE_ORIENTATION
gst_tag_register
diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c
index fb554e2..8ec69e6 100644
--- a/gst/gsttaglist.c
+++ b/gst/gsttaglist.c
@@ -355,6 +355,9 @@ _gst_tag_initialize (void)
_("Model of the device used to create this media"), NULL);
gst_tag_register (GST_TAG_APPLICATION_NAME, GST_TAG_FLAG_META, G_TYPE_STRING,
_("application name"), _("Application used to create the media"), NULL);
+ gst_tag_register (GST_TAG_APPLICATION_DATA, GST_TAG_FLAG_META,
+ GST_TYPE_BUFFER, _("application data"),
+ _("Arbitrary application data to be serialized into the media"), NULL);
gst_tag_register (GST_TAG_IMAGE_ORIENTATION, GST_TAG_FLAG_META, G_TYPE_STRING,
_("image orientation"),
_("How the image should be rotated or flipped before display"), NULL);
diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h
index 4a7311b..127ff6c 100644
--- a/gst/gsttaglist.h
+++ b/gst/gsttaglist.h
@@ -968,6 +968,17 @@ gboolean gst_tag_list_get_buffer_index (const GstTagList * list,
*/
#define GST_TAG_APPLICATION_NAME "application-name"
/**
+ * GST_TAG_APPLICATION_DATA:
+ *
+ * Arbitrary application data (buffer)
+ *
+ * Some formats allow application's to add their own arbitrary data
+ * into files. This data is application's dependent.
+ *
+ * Since: 0.10.31
+ */
+#define GST_TAG_APPLICATION_DATA "application-data"
+/**
* GST_TAG_IMAGE_ORIENTATION:
*
* Represents the 'Orientation' tag from EXIF. Defines how the image
More information about the Gstreamer-commits
mailing list