mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
3a14076b1d
commit
1604299a5b
5 changed files with 13 additions and 12 deletions
4
dive.h
4
dive.h
|
|
@ -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);
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue