1
/* GIMP - The GNU Image Manipulation Program
2
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
#define LOAD_PROC "file-jpeg-load"
20
#define LOAD_THUMB_PROC "file-jpeg-load-thumb"
21
#define SAVE_PROC "file-jpeg-save"
22
#define PLUG_IN_BINARY "jpeg"
24
/* headers used in some APPn markers */
25
#define JPEG_APP_HEADER_EXIF "Exif\0\0"
26
#define JPEG_APP_HEADER_XMP "http://ns.adobe.com/xap/1.0/"
28
typedef struct my_error_mgr
30
struct jpeg_error_mgr pub; /* "public" fields */
33
/* Ugh, the jmp_buf field needs to be 16-byte aligned on ia64 and some
34
* glibc/icc combinations don't guarantee this. So we pad. See bug #138357
40
jmp_buf setjmp_buffer; /* for return to caller */
44
extern gint32 volatile preview_image_ID;
45
extern gint32 preview_layer_ID;
46
extern GimpDrawable *drawable_global;
47
extern gboolean undo_touched;
48
extern gboolean load_interactive;
49
extern gint32 display_ID;
50
extern gchar *image_comment;
51
extern gboolean has_metadata;
52
extern gint orig_quality;
53
extern gint orig_subsmp;
54
extern gint num_quant_tables;
56
gint32 load_image (const gchar *filename,
60
void destroy_preview (void);
62
void my_error_exit (j_common_ptr cinfo);
63
void my_emit_message (j_common_ptr cinfo,
65
void my_output_message (j_common_ptr cinfo);
69
extern ExifData *exif_data;
71
gint32 load_thumbnail_image (const gchar *filename,
75
ExifData * jpeg_exif_data_new_from_file (const gchar *filename,
78
gint jpeg_exif_get_orientation (ExifData *exif_data);
80
void jpeg_setup_exif_for_save (ExifData *exif_data,
81
const gint32 image_ID);
83
void jpeg_exif_rotate (gint32 image_ID,
85
#endif /* HAVE_EXIF */