home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / plug-ins / rcm / rcm_misc.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-24  |  2.8 KB  |  78 lines

  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.  
  43. #define SWAP(X,Y) {float t=X; X=Y; Y=t;}
  44.  
  45. /*-----------------------------------------------------------------------------------*/
  46. /* used in 'rcm_callback.c' and 'rcm_dialog.c' */
  47. /*-----------------------------------------------------------------------------------*/
  48.  
  49. float arctg(float y, float x);
  50.  
  51. float min_prox(float alpha, float beta, float angle);
  52.  
  53. float *closest(float *alpha, float *beta, float  angle);
  54.  
  55. float angle_mod_2PI(float angle);
  56.  
  57. ReducedImage *rcm_reduce_image(GimpDrawable *, GimpDrawable *, gint, gint);
  58.  
  59. void rcm_render_preview(GtkWidget *, gint);
  60.  
  61. void rcm_render_circle(GtkWidget *preview, int sum, int margin);
  62.  
  63. /*-----------------------------------------------------------------------------------*/
  64. /* only used in 'rcm.c' (or local) */
  65. /*-----------------------------------------------------------------------------------*/
  66.  
  67. float rcm_angle_inside_slice(float angle, RcmAngle *slice);
  68.  
  69. gint rcm_is_gray(float s);
  70.  
  71. float rcm_linear(float, float, float, float, float);
  72.  
  73. float rcm_left_end(RcmAngle *angle);
  74.  
  75. float rcm_right_end(RcmAngle *angle);
  76.  
  77. /*-----------------------------------------------------------------------------------*/
  78.