GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_exif.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2/*
3 * Copyright (C) 2009-2014 Cyril Hrubis <metan@ucw.cz>
4 */
5
6 /*
7
8 EXIF parser.
9
10 */
11
12#ifndef LOADERS_GP_EXIF_H
13#define LOADERS_GP_EXIF_H
14
15#include <loaders/gp_data_storage.h>
16#include <loaders/gp_loader.h>
17
18/*
19 * Reads EXIF from an readable I/O stream and stores the values into storage.
20 */
21int gp_read_exif(gp_io *io, gp_storage *storage);
22
23/*
24 * Looks for EXIF file signature. Returns non-zero if found.
25 */
26int gp_match_exif(const void *buf);
27
28/*
29 * Defines position to 0,0 coordinate.
30 */
31enum GP_EXIF_ORIENTATION {
32 GP_EXIF_UPPER_LEFT = 1,
33 GP_EXIF_LOWER_RIGHT = 3,
34 GP_EXIF_UPPER_RIGHT = 6,
35 GP_EXIF_LOWER_LEFT = 8,
36};
37
38#endif /* LOADERS_GP_EXIF_H */