diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-06-08 17:17:49 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-08 17:17:49 -0700 |
commit | 1604299a5b4ed183187d7cb13df445d306eda60e (patch) | |
tree | 35d61548a77ed5f0a2ded4e603ca9ba50d6788e8 /dive.h | |
parent | 3a14076b1d1cbf78587305cc83802a1a9ae4c38c (diff) | |
download | subsurface-1604299a5b4ed183187d7cb13df445d306eda60e.tar.gz |
Picture handling: change data structure to store offset instead timestamp
It makes no sense to store a 64bit time stamp with every picture. Even the
32bit offset (in seconds) from the dive start is WAY overkill. But
switching to that makes the code much more simple in a number of spots.
And makes what is saved to the XML file easier to read, too.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -289,7 +289,7 @@ struct dive { /* picture list and methods related to dive picture handling */ struct picture { char *filename; - time_t timestamp; + int32_t offset; degrees_t latitude; degrees_t longitude; struct picture *next; @@ -305,7 +305,7 @@ extern void dive_create_picture(struct dive *d, char *filename, int shift_time); extern void dive_add_picture(struct dive *d, struct picture *newpic); extern void dive_remove_picture(struct dive *d, struct picture *pic); extern unsigned int dive_get_picture_count(struct dive *d); -extern void picture_load_exif_data(struct picture *p); +extern void picture_load_exif_data(struct picture *p, timestamp_t *timestamp); extern void dive_set_geodata_from_picture(struct dive *d, struct picture *pic); |