tag: xmp: Adds xmp mappings for device tags
Adds xmp mappings for GST_TAG_DEVICE_MANUFACTURER and GST_TAG_DEVICE_MODEL. Also adds tests for it.
This commit is contained in:
parent
00f7fbe750
commit
a20aa39fa3
@ -474,6 +474,11 @@ _init_xmp_tag_map ()
|
|||||||
_xmp_tag_add_simple_mapping (GST_TAG_USER_RATING, "xmp:Rating", NULL,
|
_xmp_tag_add_simple_mapping (GST_TAG_USER_RATING, "xmp:Rating", NULL,
|
||||||
deserialize_xmp_rating);
|
deserialize_xmp_rating);
|
||||||
|
|
||||||
|
/* tiff */
|
||||||
|
_xmp_tag_add_simple_mapping (GST_TAG_DEVICE_MANUFACTURER, "tiff:Make", NULL,
|
||||||
|
NULL);
|
||||||
|
_xmp_tag_add_simple_mapping (GST_TAG_DEVICE_MODEL, "tiff:Model", NULL, NULL);
|
||||||
|
|
||||||
/* exif schema */
|
/* exif schema */
|
||||||
_xmp_tag_add_simple_mapping (GST_TAG_GEO_LOCATION_LATITUDE,
|
_xmp_tag_add_simple_mapping (GST_TAG_GEO_LOCATION_LATITUDE,
|
||||||
"exif:GPSLatitude", serialize_exif_latitude, deserialize_exif_latitude);
|
"exif:GPSLatitude", serialize_exif_latitude, deserialize_exif_latitude);
|
||||||
|
@ -936,6 +936,9 @@ GST_START_TEST (test_xmp_tags_serialization_deserialization)
|
|||||||
do_xmp_tag_serialization_deserialization (GST_TAG_GEO_LOCATION_CITY, &value);
|
do_xmp_tag_serialization_deserialization (GST_TAG_GEO_LOCATION_CITY, &value);
|
||||||
do_xmp_tag_serialization_deserialization (GST_TAG_GEO_LOCATION_SUBLOCATION,
|
do_xmp_tag_serialization_deserialization (GST_TAG_GEO_LOCATION_SUBLOCATION,
|
||||||
&value);
|
&value);
|
||||||
|
do_xmp_tag_serialization_deserialization (GST_TAG_DEVICE_MANUFACTURER,
|
||||||
|
&value);
|
||||||
|
do_xmp_tag_serialization_deserialization (GST_TAG_DEVICE_MODEL, &value);
|
||||||
|
|
||||||
g_value_unset (&value);
|
g_value_unset (&value);
|
||||||
g_value_init (&value, G_TYPE_DOUBLE);
|
g_value_init (&value, G_TYPE_DOUBLE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user