summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmytro Poplavskiy <dmytro.poplavskiy@nokia.com>2012-02-09 11:55:51 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-09 05:31:28 +0100
commit7b3d3ae4539185d5fa155f13c2e6f7fc7b4be0e2 (patch)
treeebbb2b2a24a6cb7e54854ccbc6d99c41980716da
parent61048053fdcb8f8834e412c26f5228639de3b286 (diff)
Added location specific metadata keys.
Tags names and meaning matches the exif specification, except of latitude and longitude following Qt Location format. Change-Id: I2acc0194f129ccc737b0fd00ca4ebfb6b62ebdca Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
-rw-r--r--src/multimedia/qtmedianamespace.cpp59
-rw-r--r--src/multimedia/qtmedianamespace.h17
2 files changed, 76 insertions, 0 deletions
diff --git a/src/multimedia/qtmedianamespace.cpp b/src/multimedia/qtmedianamespace.cpp
index 839ed4362..3b58db573 100644
--- a/src/multimedia/qtmedianamespace.cpp
+++ b/src/multimedia/qtmedianamespace.cpp
@@ -166,6 +166,23 @@ Q_DEFINE_METADATA(Saturation);
Q_DEFINE_METADATA(Sharpness);
Q_DEFINE_METADATA(DeviceSettingDescription);
+// Location
+Q_DEFINE_METADATA(GPSLatitude);
+Q_DEFINE_METADATA(GPSLongitude);
+Q_DEFINE_METADATA(GPSAltitude);
+Q_DEFINE_METADATA(GPSTimeStamp);
+Q_DEFINE_METADATA(GPSSatellites);
+Q_DEFINE_METADATA(GPSStatus);
+Q_DEFINE_METADATA(GPSDOP);
+Q_DEFINE_METADATA(GPSSpeed);
+Q_DEFINE_METADATA(GPSTrack);
+Q_DEFINE_METADATA(GPSTrackRef);
+Q_DEFINE_METADATA(GPSImgDirection);
+Q_DEFINE_METADATA(GPSImgDirectionRef);
+Q_DEFINE_METADATA(GPSMapDatum);
+Q_DEFINE_METADATA(GPSProcessingMethod);
+Q_DEFINE_METADATA(GPSAreaInformation);
+
Q_DEFINE_METADATA(PosterImage);
Q_DEFINE_METADATA(CoverArtImage);
Q_DEFINE_METADATA(ThumbnailImage);
@@ -292,6 +309,48 @@ Q_DEFINE_METADATA(ThumbnailImage);
\value DeviceSettingDescription
Exif tag, indicates information on the picture-taking conditions of a particular camera model. QString
+ \value GPSLatitude
+ Latitude value of the geographical position (decimal degrees).
+ A positive latitude indicates the Northern Hemisphere,
+ and a negative latitude indicates the Southern Hemisphere. double.
+ \value GPSLongitude
+ Longitude value of the geographical position (decimal degrees).
+ A positive longitude indicates the Eastern Hemisphere,
+ and a negative longitude indicates the Western Hemisphere. double.
+ \value GPSAltitude
+ The value of altitude in meters above sea level. double.
+ \value GPSTimeStamp
+ Time stamp of GPS data. QDateTime.
+ \value GPSSatellites
+ GPS satellites used for measurements. QString.
+ \value GPSStatus
+ Status of GPS receiver at image creation time. QString.
+ \value GPSDOP
+ Degree of precision for GPS data. qreal.
+ \value GPSSpeed
+ Speed of GPS receiver movement in kilometers per hour. qreal.
+ \value GPSTrack
+ Direction of GPS receiver movement. qreal.
+ The range of values is [0.0, 360),
+ with 0 direction pointing on either true or magnetic north,
+ depending on GPSTrackRef.
+ \value GPSTrackRef
+ Reference for movement direction. QChar.
+ 'T' means true direction and 'M' is magnetic direction.
+ \value GPSImgDirection
+ Direction of image when captured. qreal.
+ The range of values is [0.0, 360).
+ \value GPSImgDirectionRef
+ Reference for image direction. QChar.
+ 'T' means true direction and 'M' is magnetic direction.
+ \value GPSMapDatum
+ Geodetic survey data used by the GPS receiver. QString.
+ \value GPSProcessingMethod
+ The name of the method used for location finding. QString.
+ \value GPSAreaInformation
+ The name of the GPS area. QString
+
+
\value ThumbnailImage An embedded thumbnail image. QImage.
*/
diff --git a/src/multimedia/qtmedianamespace.h b/src/multimedia/qtmedianamespace.h
index 1e7581490..259a0e4c2 100644
--- a/src/multimedia/qtmedianamespace.h
+++ b/src/multimedia/qtmedianamespace.h
@@ -150,6 +150,23 @@ namespace QtMultimedia
Q_DECLARE_METADATA(Sharpness);
Q_DECLARE_METADATA(DeviceSettingDescription);
+ // Location
+ Q_DECLARE_METADATA(GPSLatitude);
+ Q_DECLARE_METADATA(GPSLongitude);
+ Q_DECLARE_METADATA(GPSAltitude);
+ Q_DECLARE_METADATA(GPSTimeStamp);
+ Q_DECLARE_METADATA(GPSSatellites);
+ Q_DECLARE_METADATA(GPSStatus);
+ Q_DECLARE_METADATA(GPSDOP);
+ Q_DECLARE_METADATA(GPSSpeed);
+ Q_DECLARE_METADATA(GPSTrack);
+ Q_DECLARE_METADATA(GPSTrackRef);
+ Q_DECLARE_METADATA(GPSImgDirection);
+ Q_DECLARE_METADATA(GPSImgDirectionRef);
+ Q_DECLARE_METADATA(GPSMapDatum);
+ Q_DECLARE_METADATA(GPSProcessingMethod);
+ Q_DECLARE_METADATA(GPSAreaInformation);
+
Q_DECLARE_METADATA(PosterImage);
Q_DECLARE_METADATA(CoverArtImage);
Q_DECLARE_METADATA(ThumbnailImage);