~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to app/base/pixel-processor.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* The GIMP -- an image manipulation program
 
1
/* GIMP - The GNU Image Manipulation Program
2
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3
3
 *
4
 
 * pixel_processor.h: Copyright (C) 1999 Jay Cox <jaycox@earthlink.net>
 
4
 * pixel_processor.h: Copyright (C) 1999 Jay Cox <jaycox@gimp.org>
5
5
 *
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__
23
23
 
24
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);
 
25
#define GIMP_MAX_NUM_THREADS  16
 
26
 
 
27
 
 
28
typedef void (* PixelProcessorFunc)         (void);
 
29
typedef void (* PixelProcessorProgressFunc) (gpointer  progress_data,
 
30
                                             gdouble   fraction);
 
31
 
 
32
 
 
33
void  pixel_processor_init            (gint num_threads);
 
34
void  pixel_processor_set_num_threads (gint num_threads);
 
35
void  pixel_processor_exit            (void);
 
36
 
 
37
void  pixel_regions_process_parallel  (PixelProcessorFunc  func,
 
38
                                       gpointer            data,
 
39
                                       gint                num_regions,
 
40
                                       ...);
 
41
 
 
42
void  pixel_regions_process_parallel_progress
 
43
                                      (PixelProcessorFunc          func,
 
44
                                       gpointer                    data,
 
45
                                       PixelProcessorProgressFunc  progress_func,
 
46
                                       gpointer                    progress_data,
 
47
                                       gint                        num_regions,
 
48
                                       ...);
50
49
 
51
50
 
52
51
#endif /* __PIXEL_PROCESSOR_H__ */