xmp: exif: Adds GST_TAG_APPLICATION_NAME mappings

adds xmp and exif helper library mappings for GST_TAG_APPLICATION_NAME
tag.
This commit is contained in:
Thiago Santos 2010-08-09 18:04:08 -03:00
parent 43e1f0474f
commit 61e11b0fc4
3 changed files with 8 additions and 0 deletions
gst-libs/gst/tag
tests/check/libs

View file

@ -181,6 +181,7 @@ static const GstExifTagMatch tag_map_ifd0[] = {
{GST_TAG_DEVICE_MODEL, 0x110, EXIF_TYPE_ASCII, 0, NULL, NULL}, {GST_TAG_DEVICE_MODEL, 0x110, EXIF_TYPE_ASCII, 0, NULL, NULL},
{GST_TAG_IMAGE_ORIENTATION, 0x112, EXIF_TYPE_SHORT, 0, serialize_orientation, {GST_TAG_IMAGE_ORIENTATION, 0x112, EXIF_TYPE_SHORT, 0, serialize_orientation,
deserialize_orientation}, deserialize_orientation},
{GST_TAG_APPLICATION_NAME, 0x131, EXIF_TYPE_ASCII, 0, NULL, NULL},
{GST_TAG_ARTIST, 0x13B, EXIF_TYPE_ASCII, 0, NULL, NULL}, {GST_TAG_ARTIST, 0x13B, EXIF_TYPE_ASCII, 0, NULL, NULL},
{GST_TAG_COPYRIGHT, 0x8298, EXIF_TYPE_ASCII, 0, NULL, NULL}, {GST_TAG_COPYRIGHT, 0x8298, EXIF_TYPE_ASCII, 0, NULL, NULL},
{NULL, EXIF_IFD_TAG, EXIF_TYPE_LONG, 0, NULL, NULL}, {NULL, EXIF_IFD_TAG, EXIF_TYPE_LONG, 0, NULL, NULL},

View file

@ -827,6 +827,8 @@ _init_xmp_tag_map ()
NULL); NULL);
_gst_xmp_schema_add_simple_mapping (schema, GST_TAG_DEVICE_MODEL, _gst_xmp_schema_add_simple_mapping (schema, GST_TAG_DEVICE_MODEL,
"tiff:Model", GST_XMP_TAG_TYPE_SIMPLE, NULL, NULL); "tiff:Model", GST_XMP_TAG_TYPE_SIMPLE, NULL, NULL);
_gst_xmp_schema_add_simple_mapping (schema, GST_TAG_APPLICATION_NAME,
"tiff:Software", GST_XMP_TAG_TYPE_SIMPLE, NULL, NULL);
_gst_xmp_schema_add_simple_mapping (schema, GST_TAG_IMAGE_ORIENTATION, _gst_xmp_schema_add_simple_mapping (schema, GST_TAG_IMAGE_ORIENTATION,
"tiff:Orientation", GST_XMP_TAG_TYPE_SIMPLE, serialize_tiff_orientation, "tiff:Orientation", GST_XMP_TAG_TYPE_SIMPLE, serialize_tiff_orientation,
deserialize_tiff_orientation); deserialize_tiff_orientation);

View file

@ -964,6 +964,8 @@ GST_START_TEST (test_xmp_tags_serialization_deserialization)
&value); &value);
do_simple_xmp_tag_serialization_deserialization (GST_TAG_DEVICE_MODEL, do_simple_xmp_tag_serialization_deserialization (GST_TAG_DEVICE_MODEL,
&value); &value);
do_simple_xmp_tag_serialization_deserialization (GST_TAG_APPLICATION_NAME,
&value);
g_value_set_static_string (&value, "rotate-0"); g_value_set_static_string (&value, "rotate-0");
do_simple_xmp_tag_serialization_deserialization (GST_TAG_IMAGE_ORIENTATION, do_simple_xmp_tag_serialization_deserialization (GST_TAG_IMAGE_ORIENTATION,
@ -1247,6 +1249,9 @@ GST_START_TEST (test_exif_tags_serialization_deserialization)
do_simple_exif_tag_serialization_deserialization (GST_TAG_COPYRIGHT, &value); do_simple_exif_tag_serialization_deserialization (GST_TAG_COPYRIGHT, &value);
g_value_set_static_string (&value, "ty"); g_value_set_static_string (&value, "ty");
do_simple_exif_tag_serialization_deserialization (GST_TAG_ARTIST, &value); do_simple_exif_tag_serialization_deserialization (GST_TAG_ARTIST, &value);
g_value_set_static_string (&value, "Company Software 1.2b (info)");
do_simple_exif_tag_serialization_deserialization (GST_TAG_APPLICATION_NAME,
&value);
/* image orientation tests */ /* image orientation tests */
g_value_set_static_string (&value, "rotate-0"); g_value_set_static_string (&value, "rotate-0");