summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>2010-03-10 10:50:32 -0300
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>2010-03-11 18:29:53 -0300
commit6d1f406a7740c72e74df947241759615f7b8e7b1 (patch)
tree59dbe1c2a4dbfe559bae92f66da1b1fb53878fe2
parent6404e94ae70d81e2e51b9cb9941900e59e84b1cc (diff)
tags: Add new mapping to XMP helpers
Adds geotagging mappings to XMP helpers Fixes #609539
-rw-r--r--gst-libs/gst/tag/gstxmptag.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gst-libs/gst/tag/gstxmptag.c b/gst-libs/gst/tag/gstxmptag.c
index d5e76b489..07ab7fe03 100644
--- a/gst-libs/gst/tag/gstxmptag.c
+++ b/gst-libs/gst/tag/gstxmptag.c
@@ -57,6 +57,13 @@ static const GstTagEntryMatch tag_matches[] = {
{GST_TAG_TITLE, "dc:title"},
/* FIXME: we probably want GST_TAG_{,AUDIO_,VIDEO_}MIME_TYPE */
{GST_TAG_VIDEO_CODEC, "dc:format"},
+
+ /* photoshop schema */
+ {GST_TAG_GEO_LOCATION_COUNTRY, "photoshop:Country"},
+ {GST_TAG_GEO_LOCATION_CITY, "photoshop:City"},
+
+ /* iptc4xmpcore schema */
+ {GST_TAG_GEO_LOCATION_SUBLOCATION, "Iptc4xmpCore:Location"},
/* */
{NULL, NULL}
};
@@ -73,6 +80,8 @@ static const GstXmpNamespaceMatch ns_match[] = {
{"exif", "http://ns.adobe.com/exif/1.0/"},
{"tiff", "http://ns.adobe.com/tiff/1.0/"},
{"xap", "http://ns.adobe.com/xap/1.0/"},
+ {"photoshop", "http://ns.adobe.com/photoshop/1.0/"},
+ {"Iptc4xmpCore", "http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/"},
{NULL, NULL}
};
@@ -87,6 +96,8 @@ static GstXmpNamespaceMap ns_map[] = {
{"exif", NULL},
{"tiff", NULL},
{"xap", NULL},
+ {"photoshop", NULL},
+ {"Iptc4xmpCore", NULL},
{NULL, NULL}
};