~ubuntu-branches/ubuntu/karmic/gimp/karmic-security

« back to all changes in this revision

Viewing changes to plug-ins/jpeg/jpeg.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2008-10-06 13:30:41 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20081006133041-axco233xt49jobn7
Tags: 2.6.0-1ubuntu1
* Sync on debian and new version (lp: #276839)
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch:
  - updated some strings for ubuntu
* debian/rules:
  - updated translation templates

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* GIMP - The GNU Image Manipulation Program
2
 
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3
 
 *
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.
8
 
 *
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.
13
 
 *
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.
17
 
 */
18
 
 
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"
23
 
 
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/"
27
 
 
28
 
typedef struct my_error_mgr
29
 
{
30
 
  struct jpeg_error_mgr pub;            /* "public" fields */
31
 
 
32
 
#ifdef __ia64__
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
35
 
   * for details.
36
 
   */
37
 
  long double           dummy;
38
 
#endif
39
 
 
40
 
  jmp_buf               setjmp_buffer;  /* for return to caller */
41
 
} *my_error_ptr;
42
 
 
43
 
 
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;
55
 
 
56
 
gint32    load_image                    (const gchar   *filename,
57
 
                                         GimpRunMode    runmode,
58
 
                                         gboolean       preview);
59
 
 
60
 
void      destroy_preview               (void);
61
 
 
62
 
void      my_error_exit                 (j_common_ptr   cinfo);
63
 
void      my_emit_message               (j_common_ptr   cinfo,
64
 
                                         int            msg_level);
65
 
void      my_output_message             (j_common_ptr   cinfo);
66
 
 
67
 
#ifdef HAVE_EXIF
68
 
 
69
 
extern ExifData *exif_data;
70
 
 
71
 
gint32    load_thumbnail_image          (const gchar   *filename,
72
 
                                         gint          *width,
73
 
                                         gint          *height);
74
 
 
75
 
ExifData * jpeg_exif_data_new_from_file (const gchar   *filename,
76
 
                                         GError       **error);
77
 
 
78
 
gint      jpeg_exif_get_orientation     (ExifData      *exif_data);
79
 
 
80
 
void      jpeg_setup_exif_for_save      (ExifData      *exif_data,
81
 
                                         const gint32   image_ID);
82
 
 
83
 
void      jpeg_exif_rotate              (gint32         image_ID,
84
 
                                         gint           orientation);
85
 
#endif /* HAVE_EXIF */
86