1
/* The GIMP -- an image manipulation program
1
/* GIMP - The GNU Image Manipulation Program
2
2
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
4
* pixel_processor.h: Copyright (C) 1999 Jay Cox <jaycox@earthlink.net>
4
* pixel_processor.h: Copyright (C) 1999 Jay Cox <jaycox@gimp.org>
6
6
* This program is free software; you can redistribute it and/or modify
7
7
* it under the terms of the GNU General Public License as published by
22
22
#define __PIXEL_PROCESSOR_H__
25
typedef struct _PixelProcessor PixelProcessor;
28
typedef void (* p_func) (void);
29
typedef gint (* ProgressReportFunc) (gpointer ,
36
void pixel_regions_process_parallel (p_func f,
40
PixelProcessor * pixel_process_progress (p_func f,
42
ProgressReportFunc progress_func,
43
gpointer progress_data,
47
void pixel_processor_free (PixelProcessor *pp);
48
void pixel_processor_stop (PixelProcessor *pp);
49
PixelProcessor * pixel_processor_cont (PixelProcessor *pp);
25
#define GIMP_MAX_NUM_THREADS 16
28
typedef void (* PixelProcessorFunc) (void);
29
typedef void (* PixelProcessorProgressFunc) (gpointer progress_data,
33
void pixel_processor_init (gint num_threads);
34
void pixel_processor_set_num_threads (gint num_threads);
35
void pixel_processor_exit (void);
37
void pixel_regions_process_parallel (PixelProcessorFunc func,
42
void pixel_regions_process_parallel_progress
43
(PixelProcessorFunc func,
45
PixelProcessorProgressFunc progress_func,
46
gpointer progress_data,
52
51
#endif /* __PIXEL_PROCESSOR_H__ */