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

« back to all changes in this revision

Viewing changes to app/base/pixel-processor.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
/* 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
 
 
25
typedef struct _PixelProcessor PixelProcessor;
 
26
 
 
27
 
 
28
typedef void (* p_func)             (void);
 
29
typedef gint (* ProgressReportFunc) (gpointer ,
 
30
                                     gint     ,
 
31
                                     gint     ,
 
32
                                     gint     ,
 
33
                                     gint     );
 
34
 
 
35
 
 
36
void             pixel_regions_process_parallel (p_func             f,
 
37
                                                 gpointer           data,
 
38
                                                 gint               num_regions,
 
39
                                                 ...);
 
40
PixelProcessor * pixel_process_progress         (p_func             f,
 
41
                                                 gpointer           data,
 
42
                                                 ProgressReportFunc progress_func,
 
43
                                                 gpointer           progress_data,
 
44
                                                 gint               num_regions,
 
45
                                                 ...);
 
46
 
 
47
void             pixel_processor_free           (PixelProcessor    *pp);
 
48
void             pixel_processor_stop           (PixelProcessor    *pp);
 
49
PixelProcessor * pixel_processor_cont           (PixelProcessor    *pp);
 
50
 
 
51
 
 
52
#endif /* __PIXEL_PROCESSOR_H__ */