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

« back to all changes in this revision

Viewing changes to app/base/pixel-surround.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
 
/* The GIMP -- an image manipulation program
 
1
/* GIMP - The GNU Image Manipulation Program
2
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
24
24
 *  region around a pixel in a tile manager
25
25
 */
26
26
 
27
 
typedef struct _PixelSurround
28
 
{
29
 
  Tile        *tile;
30
 
  TileManager *mgr;
31
 
  guchar      *buff;
32
 
  gint         buff_size;
33
 
  gint         bpp;
34
 
  gint         w;
35
 
  gint         h;
36
 
  guchar       bg[MAX_CHANNELS];
37
 
  gint         row_stride;
38
 
} PixelSurround;
39
 
 
40
 
 
41
 
void     pixel_surround_init      (PixelSurround *ps,
42
 
                                   TileManager   *tm,
43
 
                                   gint           w,
44
 
                                   gint           h,
45
 
                                   guchar         bg[MAX_CHANNELS]);
 
27
 
 
28
PixelSurround * pixel_surround_new      (TileManager   *tiles,
 
29
                                         gint           width,
 
30
                                         gint           height,
 
31
                                         const guchar   bg[MAX_CHANNELS]);
46
32
 
47
33
/* return a pointer to a buffer which contains all the surrounding pixels
48
34
 * strategy: if we are in the middle of a tile, use the tile storage
49
35
 * otherwise just copy into our own malloced buffer and return that
50
36
 */
51
 
guchar * pixel_surround_lock      (PixelSurround *ps,
52
 
                                   gint           x,
53
 
                                   gint           y);
54
 
 
55
 
gint     pixel_surround_rowstride (PixelSurround *ps);
56
 
 
57
 
void     pixel_surround_release   (PixelSurround *ps);
58
 
 
59
 
void     pixel_surround_clear     (PixelSurround *ps);
 
37
const guchar  * pixel_surround_lock     (PixelSurround *surround,
 
38
                                         gint           x,
 
39
                                         gint           y,
 
40
                                         gint          *rowstride);
 
41
 
 
42
void            pixel_surround_release  (PixelSurround *surround);
 
43
 
 
44
void            pixel_surround_destroy  (PixelSurround *surround);
60
45
 
61
46
 
62
47
#endif /* __PIXEL_SURROUND_H__ */