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-2024 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
16#include <loaders/gp_data_storage.h>
17#include <loaders/gp_loader.h>
18
26int gp_read_exif(gp_io *io, gp_storage *storage, gp_correction_desc *corr_desc);
27
28/*
29 * Looks for EXIF file signature. Returns non-zero if found.
30 */
31int gp_match_exif(const void *buf);
32
33/*
34 * Defines position to 0,0 coordinate.
35 */
36enum GP_EXIF_ORIENTATION {
37 GP_EXIF_UPPER_LEFT = 1,
38 GP_EXIF_LOWER_RIGHT = 3,
39 GP_EXIF_UPPER_RIGHT = 6,
40 GP_EXIF_LOWER_LEFT = 8,
41};
42
46enum gp_exif_color_space {
48 GP_EXIF_COLOR_SPACE_SRGB = 1,
50 GP_EXIF_COLOR_SPACE_UNDEFINED = 0xffff,
51};
52
53#endif /* LOADERS_GP_EXIF_H */
Gamma and sRGB corrections.
A correction description.