[tracker/libtracker-extract-fixes: 8/10] libtracker-extract: get X/Y resolution from Exif.
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/libtracker-extract-fixes: 8/10] libtracker-extract: get X/Y resolution from Exif.
- Date: Tue, 13 Apr 2010 13:14:40 +0000 (UTC)
commit 9173c357f0c60322a00c162bd760d3405a4dd461
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Apr 8 13:56:34 2010 +0200
libtracker-extract: get X/Y resolution from Exif.
src/libtracker-extract/tracker-exif.c | 7 ++++++-
src/libtracker-extract/tracker-exif.h | 2 ++
2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-exif.c b/src/libtracker-extract/tracker-exif.c
index 9f10fd3..75d756a 100644
--- a/src/libtracker-extract/tracker-exif.c
+++ b/src/libtracker-extract/tracker-exif.c
@@ -366,7 +366,10 @@ parse_exif (const unsigned char *buffer,
data->copyright = get_value (exif, EXIF_TAG_COPYRIGHT);
if (!data->software)
data->software = get_value (exif, EXIF_TAG_SOFTWARE);
-
+ if (!data->x_resolution)
+ data->x_resolution = get_value (exif, EXIF_TAG_X_RESOLUTION);
+ if (!data->y_resolution)
+ data->y_resolution = get_value (exif, EXIF_TAG_Y_RESOLUTION);
exif_data_free (exif);
#endif /* HAVE_LIBEXIF */
@@ -478,6 +481,8 @@ tracker_exif_free (TrackerExifData *data,
g_free (data->white_balance);
g_free (data->copyright);
g_free (data->software);
+ g_free (data->x_resolution);
+ g_free (data->y_resolution);
}
g_free (data);
diff --git a/src/libtracker-extract/tracker-exif.h b/src/libtracker-extract/tracker-exif.h
index 6dfce3e..2495ae2 100644
--- a/src/libtracker-extract/tracker-exif.h
+++ b/src/libtracker-extract/tracker-exif.h
@@ -50,6 +50,8 @@ typedef struct {
gchar *white_balance;
gchar *copyright;
gchar *software;
+ gchar *x_resolution;
+ gchar *y_resolution;
} TrackerExifData;
#ifndef TRACKER_DISABLE_DEPRECATED
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]