home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / app / pixel_processor.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-04-09  |  1.6 KB  |  41 lines

  1. /* The GIMP -- an image manipulation program
  2.  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  3.  *
  4.  * pixel_processor.h: Copyright (C) 1999 Jay Cox <jaycox@earthlink.net>
  5.  *
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; either version 2 of the License, or
  9.  * (at your option) any later version.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program; if not, write to the Free Software
  18.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  19.  */
  20.  
  21. #ifndef __PIXEL_PROCESSOR_H__
  22. #define __PIXEL_PROCESSOR_H__
  23.  
  24. typedef struct _PixelProcessor PixelProcessor;
  25.  
  26. typedef void (*p_func)(void);
  27. typedef int  (*ProgressReportFunc)(void *, int, int, int, int);
  28.  
  29. void  pixel_regions_process_parallel   (p_func f, void *data, int num_regions,
  30.                     ...);
  31. PixelProcessor *pixel_process_progress (p_func f, void *data,
  32.                     ProgressReportFunc progress_func,
  33.                     void *progress_data,
  34.                     int num_regions, ...);
  35.  
  36. void            pixel_processor_free (PixelProcessor *);
  37. void            pixel_processor_stop (PixelProcessor *);
  38. PixelProcessor *pixel_processor_cont (PixelProcessor *);
  39.  
  40. #endif /* __PIXEL_PROCESSOR_H__ */
  41.