diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-03-15 20:21:40 +0100 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-04-01 16:04:48 +0300 |
commit | 9b2482aca9bed6dc512f52131b54b4db915f549c (patch) | |
tree | c53f4c4bf109ae8d146785e82a396ad8128b944a /core/metadata.h | |
parent | d9df8c3f474b128b1631f1ff58ec2026ab21272d (diff) | |
download | subsurface-9b2482aca9bed6dc512f52131b54b4db915f549c.tar.gz |
Dive pictures: Move metadata functions into own translation unit
Move all metadata function into new core/metadata.cpp file.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/metadata.h')
-rw-r--r-- | core/metadata.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/core/metadata.h b/core/metadata.h new file mode 100644 index 000000000..b5af39b30 --- /dev/null +++ b/core/metadata.h @@ -0,0 +1,31 @@ +#ifndef METADATA_H +#define METADATA_H + +#include "units.h" + +struct metadata { + timestamp_t timestamp; + degrees_t latitude; + degrees_t longitude; +}; + +enum mediatype_t { + MEDIATYPE_IO_ERROR, // Couldn't read file + MEDIATYPE_UNKNOWN, // Couldn't identify file + MEDIATYPE_PICTURE, + MEDIATYPE_VIDEO, +}; + +#ifdef __cplusplus +extern "C" { +#endif + +enum mediatype_t get_metadata(const char *filename, struct metadata *data); +timestamp_t picture_get_timestamp(const char *filename); +void picture_load_exif_data(struct picture *p); + +#ifdef __cplusplus +} +#endif + +#endif // METADATA_H |