2 * Copyright (C) 2004 John Ellis
3 * Copyright (C) 2008 - 2016 The Geeqie Team
5 * Author: Vladimir Nadvornik
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27 #define JPEG_MARKER 0xFF
28 #define JPEG_MARKER_SOI 0xD8
29 #define JPEG_MARKER_EOI 0xD9
30 #define JPEG_MARKER_APP1 0xE1
31 #define JPEG_MARKER_APP2 0xE2
33 /* jpeg container format:
34 all data markers start with 0XFF
35 2 byte long file start and end markers: 0xFFD8(SOI) and 0XFFD9(EOI)
36 4 byte long data segment markers in format: 0xFFTTSSSSNNN...
37 FF: 1 byte standard marker identifier
39 SSSS: 2 bytes in Motorola byte alignment for length of the data.
40 This value includes these 2 bytes in the count, making actual
41 length of NN... == SSSS - 2.
42 NNN.: the data in this segment
45 gboolean jpeg_segment_find(const guchar *data, guint size,
46 guchar app_marker, const gchar *magic, guint magic_len,
47 guint *seg_offset, guint *seg_length);
52 gboolean representative;
53 gboolean dependent_child;
54 gboolean dependent_parent;
61 guint MPIndividualNum;
65 guint BaseViewpointNum;
66 double ConvergenceAngle;
67 double BaselineLength;
68 double VerticalDivergence;
69 double AxisDistance_X;
70 double AxisDistance_Y;
71 double AxisDistance_Z;
86 MPOData* jpeg_get_mpo_data(const guchar *data, guint size);
87 void jpeg_mpo_data_free(MPOData *mpo);
91 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */