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

« back to all changes in this revision

Viewing changes to plug-ins/ifscompose/ifscompose.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
 * IfsCompose is a interface for creating IFS fractals by
79
79
 
80
80
 
81
81
/* manipulation of affine transforms */
82
 
void aff2_translate       (Aff2 *naff, gdouble x, gdouble y);
83
 
void aff2_rotate          (Aff2 *naff, gdouble theta);
84
 
void aff2_scale           (Aff2 *naff, gdouble s, gint flip);
85
 
void aff2_distort         (Aff2 *naff, gdouble asym, gdouble shear);
86
 
void aff2_compute_stretch (Aff2 *naff,
87
 
                           gdouble xo, gdouble yo,
88
 
                           gdouble xn, gdouble yn);
89
 
void aff2_compute_distort (Aff2 *naff,
90
 
                           gdouble xo, gdouble yo,
91
 
                           gdouble xn, gdouble yn);
92
 
void aff2_compose         (Aff2 *naff, Aff2 *aff1, Aff2 *aff2);
93
 
void aff2_invert          (Aff2 *naff, Aff2 *aff);
94
 
void aff2_apply           (Aff2 *aff, gdouble x,  gdouble y, 
95
 
                           gdouble *xf, gdouble *yf);
96
 
void aff2_fixed_point     (Aff2 *aff, gdouble *xf, gdouble *yf);
97
 
void aff3_apply           (Aff3 *t, gdouble x, gdouble y, gdouble z,
98
 
                           gdouble *xf, gdouble *yf, gdouble *zf);
 
82
void aff2_translate       (Aff2    *naff,
 
83
                           gdouble  x,
 
84
                           gdouble  y);
 
85
void aff2_rotate          (Aff2    *naff,
 
86
                           gdouble  theta);
 
87
void aff2_scale           (Aff2    *naff,
 
88
                           gdouble  s,
 
89
                           gint     flip);
 
90
void aff2_distort         (Aff2    *naff,
 
91
                           gdouble  asym,
 
92
                           gdouble  shear);
 
93
void aff2_compute_stretch (Aff2    *naff,
 
94
                           gdouble  xo,
 
95
                           gdouble  yo,
 
96
                           gdouble  xn,
 
97
                           gdouble  yn);
 
98
void aff2_compute_distort (Aff2    *naff,
 
99
                           gdouble  xo,
 
100
                           gdouble  yo,
 
101
                           gdouble  xn,
 
102
                           gdouble  yn);
 
103
void aff2_compose         (Aff2    *naff,
 
104
                           Aff2    *aff1,
 
105
                           Aff2    *aff2);
 
106
void aff2_invert          (Aff2    *naff,
 
107
                           Aff2    *aff);
 
108
void aff2_apply           (Aff2    *aff,
 
109
                           gdouble  x,
 
110
                           gdouble  y,
 
111
                           gdouble *xf,
 
112
                           gdouble *yf);
 
113
void aff2_fixed_point     (Aff2    *aff,
 
114
                           gdouble *xf,
 
115
                           gdouble *yf);
 
116
void aff3_apply           (Aff3    *t,
 
117
                           gdouble  x,
 
118
                           gdouble  y,
 
119
                           gdouble  z,
 
120
                           gdouble *xf,
 
121
                           gdouble *yf,
 
122
                           gdouble *zf);
99
123
 
100
124
 
101
125
/* manipulation of polygons */
102
126
IPolygon *ipolygon_convex_hull (IPolygon *poly);
103
 
gint      ipolygon_contains    (IPolygon *poly, gint xt, gint yt);
 
127
gint      ipolygon_contains    (IPolygon *poly,
 
128
                                gint      xt,
 
129
                                gint      yt);
104
130
 
105
131
 
106
132
/* manipulation of composite transforms */
107
 
AffElement *aff_element_new                  (gdouble x, gdouble y, GimpRGB *color, gint count);
108
 
void        aff_element_free                 (AffElement *elem);
109
 
void        aff_element_compute_trans        (AffElement *elem, gdouble width,
110
 
                                              gdouble height,
111
 
                                              gdouble center_x, gdouble center_y);
112
 
void        aff_element_compute_color_trans  (AffElement *elem);
113
 
void        aff_element_decompose_trans      (AffElement *elem, Aff2 *aff, 
114
 
                                              gdouble width, gdouble height,
115
 
                                              gdouble center_x, gdouble center_y);
116
 
void        aff_element_compute_boundary     (AffElement *elem, gint width,
117
 
                                              gint height,
118
 
                                              AffElement **elements, 
119
 
                                              int num_elements);
 
133
AffElement *aff_element_new                  (gdouble      x,
 
134
                                              gdouble      y,
 
135
                                              GimpRGB     *color,
 
136
                                              gint         count);
 
137
void        aff_element_free                 (AffElement  *elem);
 
138
void        aff_element_compute_trans        (AffElement  *elem,
 
139
                                              gdouble      width,
 
140
                                              gdouble      height,
 
141
                                              gdouble      center_x,
 
142
                                              gdouble      center_y);
 
143
void        aff_element_compute_color_trans  (AffElement  *elem);
 
144
void        aff_element_decompose_trans      (AffElement  *elem,
 
145
                                              Aff2        *aff,
 
146
                                              gdouble      width,
 
147
                                              gdouble      height,
 
148
                                              gdouble      center_x,
 
149
                                              gdouble      center_y);
 
150
void        aff_element_compute_boundary     (AffElement  *elem,
 
151
                                              gint         width,
 
152
                                              gint         height,
 
153
                                              AffElement **elements,
 
154
                                              gint         num_elements);
120
155
void        aff_element_draw                 (AffElement  *elem,
121
156
                                              gint         selected,
122
157
                                              gint         width,
127
162
                                              PangoLayout *layout);
128
163
 
129
164
 
130
 
void ifs_render (AffElement **elements, gint num_elements,
131
 
                 gint width, gint height, gint nsteps,
132
 
                 IfsComposeVals *vals, gint band_y, gint band_height,
133
 
                 guchar *data, guchar *mask, guchar *nhits, gint preview);
 
165
void       ifs_render (AffElement     **elements,
 
166
                       gint             num_elements,
 
167
                       gint             width,
 
168
                       gint             height,
 
169
                       gint             nsteps,
 
170
                       IfsComposeVals  *vals,
 
171
                       gint             band_y,
 
172
                       gint             band_height,
 
173
                       guchar          *data,
 
174
                       guchar          *mask,
 
175
                       guchar          *nhits,
 
176
                       gboolean         preview);
134
177
 
135
178
gchar    * ifsvals_stringify    (IfsComposeVals   *vals,
136
179
                                 AffElement      **elements);