~ubuntu-branches/ubuntu/hoary/gimp/hoary

« back to all changes in this revision

Viewing changes to plug-ins/rcm/rcm_misc.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-04-04 14:51:23 UTC
  • Revision ID: james.westby@ubuntu.com-20050404145123-9py049eeelfymur8
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
 
3
 *
 
4
 * This is a plug-in for the GIMP.
 
5
 *
 
6
 * Colormap-Rotation plug-in. Exchanges two color ranges.
 
7
 *
 
8
 * Copyright (C) 1999 Sven Anders (anderss@fmi.uni-passau.de)
 
9
 *                    Based on code from Pavel Grinfeld (pavel@ml.com)
 
10
 *
 
11
 *
 
12
 * This program is free software; you can redistribute it and/or modify
 
13
 * it under the terms of the GNU General Public License as published by
 
14
 * the Free Software Foundation; either version 2 of the License, or
 
15
 * (at your option) any later version.
 
16
 *
 
17
 * This program is distributed in the hope that it will be useful,
 
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
20
 * GNU General Public License for more details.
 
21
 *
 
22
 * You should have received a copy of the GNU General Public License
 
23
 * along with this program; if not, write to the Free Software
 
24
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
25
 */
 
26
 
 
27
/*----------------------------------------------------------------------------
 
28
 * Change log:
 
29
 *
 
30
 * Version 2.0, 04 April 1999.
 
31
 *  Nearly complete rewrite, made plug-in stable.
 
32
 *  (Works with GIMP 1.1 and GTK+ 1.2)
 
33
 *
 
34
 * Version 1.0, 27 March 1997.
 
35
 *  Initial (unstable) release by Pavel Grinfeld
 
36
 *
 
37
 *----------------------------------------------------------------------------*/
 
38
 
 
39
 
 
40
/* Global defines */
 
41
 
 
42
#define SWAP(X,Y) {float t=X; X=Y; Y=t;}
 
43
 
 
44
 
 
45
/* used in 'rcm_callback.c' and 'rcm_dialog.c' */
 
46
 
 
47
float         arctg              (gfloat        y,
 
48
                                  gfloat        x);
 
49
float         min_prox           (gfloat        alpha,
 
50
                                  gfloat        beta,
 
51
                                  gfloat        angle);
 
52
float        *closest            (gfloat       *alpha,
 
53
                                  gfloat       *beta,
 
54
                                  gfloat        angle);
 
55
float         angle_mod_2PI      (gfloat        angle);
 
56
ReducedImage *rcm_reduce_image   (GimpDrawable *,
 
57
                                  GimpDrawable *,
 
58
                                  gint          ,
 
59
                                  gint          );
 
60
void          rcm_render_preview (GtkWidget    *,
 
61
                                  gint);
 
62
void          rcm_render_circle  (GtkWidget    *preview,
 
63
                                  gint          sum,
 
64
                                  gint          margin);
 
65
 
 
66
 
 
67
/* only used in 'rcm.c' (or local) */
 
68
 
 
69
float rcm_angle_inside_slice (float     angle,
 
70
                              RcmAngle *slice);
 
71
gint  rcm_is_gray            (float     s);
 
72
float rcm_linear             (float,
 
73
                              float,
 
74
                              float,
 
75
                              float,
 
76
                              float);
 
77
float rcm_left_end           (RcmAngle *angle);
 
78
float rcm_right_end          (RcmAngle *angle);