Include a Other Software section in Help file
[geeqie.git] / src / jpeg_parser.h
index 767b3e9..68181c0 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * Copyright (C) 2004 John Ellis
+ * Copyright (C) 2008 - 2016 The Geeqie Team
+ *
+ * Author: Vladimir Nadvornik
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
 #ifndef JPEG_PARSER_H
 #define JPEG_PARSER_H
 
        NNN.: the data in this segment
  */
 
-gboolean jpeg_segment_find(guchar *data, guint size,
+gboolean jpeg_segment_find(const guchar *data, guint size,
                            guchar app_marker, const gchar *magic, guint magic_len,
                            guint *seg_offset, guint *seg_length);
 
-#endif
\ No newline at end of file
+
+typedef struct _MPOData MPOData;
+typedef struct _MPOEntry MPOEntry;
+
+struct _MPOEntry {
+       guint type_code;
+       gboolean representative;
+       gboolean dependent_child;
+       gboolean dependent_parent;
+       guint offset;
+       guint length;
+       guint dep1;
+       guint dep2;
+
+       guint MPFVersion;
+       guint MPIndividualNum;
+       guint PanOrientation;
+       double PanOverlap_H;
+       double PanOverlap_V;
+       guint BaseViewpointNum;
+       double ConvergenceAngle;
+       double BaselineLength;
+       double VerticalDivergence;
+       double AxisDistance_X;
+       double AxisDistance_Y;
+       double AxisDistance_Z;
+       double YawAngle;
+       double PitchAngle;
+       double RollAngle;
+
+};
+
+
+struct _MPOData {
+        guint mpo_offset;
+
+       guint version;
+       guint num_images;
+       MPOEntry *images;
+};
+
+MPOData* jpeg_get_mpo_data(const guchar *data, guint size);
+void jpeg_mpo_data_free(MPOData *mpo);
+
+#endif
+
+/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */