summaryrefslogtreecommitdiff
path: root/src/ExifImageMetaData.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-10-28 00:03:29 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-10-28 00:03:29 +0200
commit3863aa643f604f17b79684093fd34e7a67b093fa (patch)
treed36f5f54973a32185d02b207f8b1b5ad5b8f49f1 /src/ExifImageMetaData.cxx
parent8e2ebc4de19e6956549413a599f6e27daa498303 (diff)
fix ImageMetaData classes
Diffstat (limited to 'src/ExifImageMetaData.cxx')
-rw-r--r--src/ExifImageMetaData.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/ExifImageMetaData.cxx b/src/ExifImageMetaData.cxx
index 05a43d5..1ba215e 100644
--- a/src/ExifImageMetaData.cxx
+++ b/src/ExifImageMetaData.cxx
@@ -47,13 +47,13 @@ ExifImageMetaData::load_image(char *name) {
if (p) {
while (fgets(buf, sizeof(buf), p) != NULL) {
- if (sscanf(buf, "%d\t%s", &id, val) != 2) {
+ if (sscanf(buf, "%x\t%s", &id, val) != 2) {
continue;
}
-
+
switch(id) {
case FOCAL_LENGTH_IN_35MM_FILM:
- focallength_sensor_ratio = atof(val) / 35;
+ focallength_sensor_ratio = atof(val) / 35.0;
break;
}
}
@@ -68,3 +68,8 @@ ExifImageMetaData::load_image(char *name) {
return 0;
}
+
+int
+ExifImageMetaData::save_image(char *name) {
+}
+