[PATCH 1/2] tracker: add support for some picture keys



From: Lionel Landwerlin <lionel g landwerlin linux intel com>

Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>
---
 src/media/tracker/grl-tracker-utils.c |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/src/media/tracker/grl-tracker-utils.c b/src/media/tracker/grl-tracker-utils.c
index 9f520cb..b0e3b67 100644
--- a/src/media/tracker/grl-tracker-utils.c
+++ b/src/media/tracker/grl-tracker-utils.c
@@ -146,6 +146,34 @@ grl_tracker_setup_key_mappings (void)
   insert_key_mapping (GRL_METADATA_KEY_WIDTH,
                       "nfo:width(?urn)",
                       "video");
+
+  insert_key_mapping (GRL_METADATA_KEY_CREATION_DATE,
+                      "nie:contentCreated(?urn)",
+                      "image");
+
+  insert_key_mapping (GRL_METADATA_KEY_CAMERA_MODEL,
+                      "nfo:model(nfo:equipment(?urn))",
+                      "image");
+
+  insert_key_mapping (GRL_METADATA_KEY_FLASH_USED,
+                      "nmm:flash(?urn)",
+                      "image");
+
+  insert_key_mapping (GRL_METADATA_KEY_EXPOSURE_TIME,
+                      "nmm:exposureTime(?urn)",
+                      "image");
+
+  insert_key_mapping (GRL_METADATA_KEY_ISO_SPEED,
+                      "nmm:isoSpeed(?urn)",
+                      "image");
+
+  insert_key_mapping (GRL_METADATA_KEY_ORIGINAL_WIDTH,
+                      "nfo:horizontalResolution(?urn)",
+                      "image");
+
+  insert_key_mapping (GRL_METADATA_KEY_ORIGINAL_HEIGHT,
+                      "nfo:verticalResolution(?urn)",
+                      "image");
 }
 
 tracker_grl_sparql_t *
-- 
1.7.4.1



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]