mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
5c1abde2a5
This adds an entry to the dive list context menu to load images. The user can select image files and set a time offset to align camera and dive computer clocks. Using the exif time stamp the images are tried to match to the times of the selected dives (with a grace period of an hour before and after the dive). Upon success an event of type 123 is created per image with the string value being the path to the image. Those images are displayed as thumbnails in the profile. If the matching dive does not yet have a geo location specified but the image provides one it is copied to the dive (making the camera a poor man's companion app). This patch includes easyexif https://code.google.com/p/easyexif/ which is originally under a New BSD License to parse the image meta data. This commit includes a new test dive dives/test31.xml with a matching image wreck.jpg to try out the functionallity. Obvious to do's: Have images on the map Have the images clickable Have a proper picture viewer Give visual reference for image time shifting. Use the new profile Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
23 lines
919 B
XML
23 lines
919 B
XML
<divelog program='subsurface' version='2'>
|
|
<settings>
|
|
<divecomputerid model='Suunto Vyper' deviceid='7fffffff' serial='00522075' firmware='0.0.33'/>
|
|
<divecomputerid model='Suunto Vyper' deviceid='e9237b0a' nickname='Suunto Vyper (e9237b0a)'/>
|
|
<autogroup state='1' />
|
|
</settings>
|
|
<dives>
|
|
<trip date='2012-01-08' time='15:30:03'>
|
|
<dive number='1' date='2012-01-08' time='15:30:03' duration='46:06 min'>
|
|
<cylinder size='24.0 l' workpressure='232.0 bar' description='D12 232 bar' />
|
|
<divecomputer model='manually added dive' date='2014-01-09' time='14:22:03'>
|
|
<depth max='15.0 m' mean='13.671 m' />
|
|
<sample time='0:00 min' depth='0.0 m' />
|
|
<sample time='1:00 min' depth='15.0 m' />
|
|
<sample time='40:00 min' depth='15.0 m' />
|
|
<sample time='42:00 min' depth='5.0 m' />
|
|
<sample time='45:00 min' depth='5.0 m' />
|
|
<sample time='46:06 min' depth='0.0 m' />
|
|
</divecomputer>
|
|
</dive>
|
|
</trip>
|
|
</dives>
|
|
</divelog>
|