Krolyxon
Commit 4ce3232

Branches

Refs →

nsxivexif.h

41 lines · 1.2 KB · Objective-C

1/* sxiv: exif.h
2 * Copyright (c) 2012 Bert Muennich <be.muennich at googlemail.com>
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19#ifndef EXIF_H
20#define EXIF_H
21
22#include "types.h"
23
24enum {
25 JPEG_MARKER_SOI = 0xFFD8,
26 JPEG_MARKER_APP1 = 0xFFE1
27};
28
29enum {
30 EXIF_MAX_LEN = 0x10000,
31 EXIF_HEAD = 0x45786966,
32 EXIF_BO_BIG_ENDIAN = 0x4D4D,
33 EXIF_BO_LITTLE_ENDIAN = 0x4949,
34 EXIF_TAG_MARK = 0x002A,
35 EXIF_TAG_ORIENTATION = 0x0112
36};
37
38int exif_orientation(const fileinfo_t*);
39void exif_auto_orientate(const fileinfo_t*); /* in image.c */
40
41#endif /* EXIF_H */