~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * The GIMP -- an image manipulation program
 
2
 * GIMP - The GNU Image Manipulation Program
3
3
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or modify
17
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
18
 */
19
19
 
 
20
#define LOAD_PROC "file-bmp-load"
 
21
#define SAVE_PROC "file-bmp-save"
 
22
 
20
23
#define MAXCOLORS   256
21
24
 
22
25
#define BitSet(byte, bit)        (((byte) & (bit)) == (bit))
30
33
                              gint32       image,
31
34
                              gint32       drawable_ID);
32
35
 
33
 
extern       gboolean  interactive_bmp;
 
36
extern       gboolean  interactive;
 
37
extern       gboolean  lastvals;
34
38
extern const gchar    *filename;
35
39
 
36
40
extern struct Bitmap_File_Head_Struct
37
41
{
38
 
  gchar    zzMagic[2];  /* 00 "BM" */
 
42
  gchar    zzMagic[2];  /* 00 "BM" */
39
43
  gulong   bfSize;      /* 02 */
40
 
  gushort  zzHotX;      /* 06 */
41
 
  gushort  zzHotY;      /* 08 */
 
44
  gushort  zzHotX;      /* 06 */
 
45
  gushort  zzHotY;      /* 08 */
42
46
  gulong   bfOffs;      /* 0A */
43
47
  gulong   biSize;      /* 0E */
44
48
} Bitmap_File_Head;
55
59
  gulong   biYPels;     /* 2A */
56
60
  gulong   biClrUsed;   /* 2E */
57
61
  gulong   biClrImp;    /* 32 */
58
 
                        /* 36 */
 
62
  guint32  masks[4];    /* 36 */
59
63
} Bitmap_Head;
60
64
 
61
65
typedef struct _Bitmap_Channel
62
66
{
63
67
  guint32 mask;
64
68
  guint32 shiftin;
65
 
  guint32 shiftout;
 
69
  gfloat  max_value;
66
70
} Bitmap_Channel;