1999-04-09 14:00:11 +08:00
|
|
|
/* The GIMP -- an image manipulation program
|
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* pixel_processor.c: Copyright (C) 1999 Jay Cox <jaycox@earthlink.net>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
Win32 portability changes:
* config.h.win32, README.win32: Small changes.
* tools/pdbgen/pdb/*.pdb: Include <string.h>.
* app/*_cmds.c: Autogenerated files reflect above changes.
* libgimp/makefile.msc app/makefile.msc: Various updates,
including new object files. Gtk+ directory now should be called
gtk+ (not gtk-plus). Use win32-specific gdk subdir. Glib directory
now should be called just glib.
* libgimp/gimp.def: Updates.
* libgimp/gimpfeatures.h.win32: Made current with
gimpfeatures.h.in.
* libgimp/gimpfileselection.c: Define S_ISDIR and S_ISREG if
necessary.
* tools/pdbgen/pdb/fileops.pdb: Must have a
statement (even an empty one) after a label.
* app/fileops_cmds.c: Autogenerated file reflects above changes.
* app/crop.c: Include <string.h>.
* app/{app_procs,batch,fileops,datafiles,errorconsole,general,
plug_in,temp_buf,tile_swap}.c: Test NATIVE_WIN32, not
_MSC_VER. (NATIVE_WIN32 means we are using the Microsoft C
runtime, even if we might be compiling with gcc.)
* app/fileops.c: Don't include <process.h> here.
* app/fileops.h: Do include <process.h> here.
* app/gimpparasite.c: Include config.h, guard inclusion of
<unistd.h>. (Is the inclusion of unistd.h in source files all over
the place really necessary?)
* app/ink.c: MSC doesn't handle conversion from unsigned __int64
to double, so cast to signed.
* app/lut_funcs.c: Include config.h, and define rint() if necessary.
* app/pixel_processor.c: Include config.h without "..", like in
all the other places. Include <string.h>
* app/text_tool.c: Guard the "POINTS" identifier that clashes with
<windows.h>, sigh.
1999-05-05 05:32:17 +08:00
|
|
|
#include "config.h"
|
|
|
|
|
1999-04-09 14:00:11 +08:00
|
|
|
#ifdef ENABLE_MP
|
2005-02-11 23:24:02 +08:00
|
|
|
#include <string.h>
|
2003-01-15 21:40:44 +08:00
|
|
|
#endif
|
1999-04-09 14:00:11 +08:00
|
|
|
|
2001-12-08 00:10:53 +08:00
|
|
|
#include <glib-object.h>
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2001-05-15 19:25:25 +08:00
|
|
|
#include "base-types.h"
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2002-11-19 04:50:31 +08:00
|
|
|
#include "config/gimpbaseconfig.h"
|
|
|
|
|
2001-05-15 19:25:25 +08:00
|
|
|
#include "pixel-processor.h"
|
|
|
|
#include "pixel-region.h"
|
1999-04-09 14:00:11 +08:00
|
|
|
|
2001-01-12 07:36:59 +08:00
|
|
|
#ifdef ENABLE_MP
|
|
|
|
#include "tile.h"
|
|
|
|
#endif
|
|
|
|
|
2005-02-13 23:47:36 +08:00
|
|
|
static gint num_threads = 0;
|
2003-01-15 21:40:44 +08:00
|
|
|
|
1999-04-09 14:00:11 +08:00
|
|
|
|
2005-02-12 01:03:56 +08:00
|
|
|
typedef void (* p1_func) (gpointer data,
|
2005-02-13 00:07:00 +08:00
|
|
|
PixelRegion *region1);
|
2005-02-12 01:03:56 +08:00
|
|
|
typedef void (* p2_func) (gpointer data,
|
2005-02-13 00:07:00 +08:00
|
|
|
PixelRegion *region1,
|
|
|
|
PixelRegion *region2);
|
2005-02-12 01:03:56 +08:00
|
|
|
typedef void (* p3_func) (gpointer data,
|
2005-02-13 00:07:00 +08:00
|
|
|
PixelRegion *region1,
|
|
|
|
PixelRegion *region2,
|
|
|
|
PixelRegion *region3);
|
2005-02-12 01:03:56 +08:00
|
|
|
typedef void (* p4_func) (gpointer data,
|
2005-02-13 00:07:00 +08:00
|
|
|
PixelRegion *region1,
|
|
|
|
PixelRegion *region2,
|
|
|
|
PixelRegion *region3,
|
|
|
|
PixelRegion *region4);
|
1999-04-09 14:00:11 +08:00
|
|
|
|
2001-05-15 19:25:25 +08:00
|
|
|
|
2005-02-12 01:03:56 +08:00
|
|
|
typedef struct _PixelProcessor PixelProcessor;
|
|
|
|
|
1999-04-09 14:00:11 +08:00
|
|
|
struct _PixelProcessor
|
|
|
|
{
|
2000-12-29 23:22:01 +08:00
|
|
|
gpointer data;
|
2005-02-13 00:07:00 +08:00
|
|
|
PixelProcessorFunc func;
|
1999-04-09 14:00:11 +08:00
|
|
|
PixelRegionIterator *PRI;
|
2003-01-15 21:40:44 +08:00
|
|
|
|
|
|
|
#ifdef ENABLE_MP
|
2005-02-13 23:08:08 +08:00
|
|
|
GMutex *mutex;
|
|
|
|
gint num_threads;
|
2003-01-15 21:40:44 +08:00
|
|
|
#endif
|
|
|
|
|
2005-02-13 00:07:00 +08:00
|
|
|
gint num_regions;
|
|
|
|
PixelRegion *regions[4];
|
1999-04-09 14:00:11 +08:00
|
|
|
};
|
|
|
|
|
2001-05-15 19:25:25 +08:00
|
|
|
|
2003-01-15 21:40:44 +08:00
|
|
|
#ifdef ENABLE_MP
|
2005-02-13 23:08:08 +08:00
|
|
|
static void
|
2005-02-12 01:03:56 +08:00
|
|
|
do_parallel_regions (PixelProcessor *processor)
|
1999-04-09 14:00:11 +08:00
|
|
|
{
|
|
|
|
PixelRegion tr[4];
|
2001-05-26 05:17:07 +08:00
|
|
|
gint n_tiles = 0;
|
2001-05-15 19:25:25 +08:00
|
|
|
gint i;
|
1999-04-09 14:00:11 +08:00
|
|
|
|
2005-02-13 23:08:08 +08:00
|
|
|
g_mutex_lock (processor->mutex);
|
2000-10-18 02:32:43 +08:00
|
|
|
|
2005-02-13 23:08:08 +08:00
|
|
|
if (processor->num_threads != 0 && processor->PRI)
|
2005-02-12 01:03:56 +08:00
|
|
|
processor->PRI = pixel_regions_process (processor->PRI);
|
2000-10-18 02:32:43 +08:00
|
|
|
|
2005-02-12 01:03:56 +08:00
|
|
|
if (processor->PRI == NULL)
|
2000-10-18 02:32:43 +08:00
|
|
|
{
|
2005-02-13 23:08:08 +08:00
|
|
|
g_mutex_unlock (processor->mutex);
|
|
|
|
return;
|
2000-10-18 02:32:43 +08:00
|
|
|
}
|
|
|
|
|
2005-02-13 23:08:08 +08:00
|
|
|
processor->num_threads++;
|
1999-04-09 14:00:11 +08:00
|
|
|
|
|
|
|
do
|
|
|
|
{
|
2005-02-13 00:07:00 +08:00
|
|
|
for (i = 0; i < processor->num_regions; i++)
|
|
|
|
if (processor->regions[i])
|
1999-07-27 16:47:31 +08:00
|
|
|
{
|
2005-02-13 00:07:00 +08:00
|
|
|
memcpy (&tr[i], processor->regions[i], sizeof (PixelRegion));
|
1999-07-27 16:47:31 +08:00
|
|
|
if (tr[i].tiles)
|
2005-02-13 00:07:00 +08:00
|
|
|
tile_lock (tr[i].curtile);
|
1999-07-27 16:47:31 +08:00
|
|
|
}
|
2000-10-18 02:32:43 +08:00
|
|
|
|
2005-02-13 23:08:08 +08:00
|
|
|
g_mutex_unlock (processor->mutex);
|
2001-05-26 05:17:07 +08:00
|
|
|
n_tiles++;
|
2000-10-18 02:32:43 +08:00
|
|
|
|
2005-02-13 00:07:00 +08:00
|
|
|
switch(processor->num_regions)
|
2000-10-18 02:32:43 +08:00
|
|
|
{
|
|
|
|
case 1:
|
2005-02-13 00:07:00 +08:00
|
|
|
((p1_func) processor->func) (processor->data,
|
|
|
|
processor->regions[0] ? &tr[0] : NULL);
|
2000-10-18 02:32:43 +08:00
|
|
|
break;
|
|
|
|
|
|
|
|
case 2:
|
2005-02-13 00:07:00 +08:00
|
|
|
((p2_func) processor->func) (processor->data,
|
|
|
|
processor->regions[0] ? &tr[0] : NULL,
|
|
|
|
processor->regions[1] ? &tr[1] : NULL);
|
2000-10-18 02:32:43 +08:00
|
|
|
break;
|
|
|
|
|
|
|
|
case 3:
|
2005-02-13 00:07:00 +08:00
|
|
|
((p3_func) processor->func) (processor->data,
|
|
|
|
processor->regions[0] ? &tr[0] : NULL,
|
|
|
|
processor->regions[1] ? &tr[1] : NULL,
|
|
|
|
processor->regions[2] ? &tr[2] : NULL);
|
2000-10-18 02:32:43 +08:00
|
|
|
break;
|
|
|
|
|
|
|
|
case 4:
|
2005-02-13 00:07:00 +08:00
|
|
|
((p4_func) processor->func) (processor->data,
|
|
|
|
processor->regions[0] ? &tr[0] : NULL,
|
|
|
|
processor->regions[1] ? &tr[1] : NULL,
|
|
|
|
processor->regions[2] ? &tr[2] : NULL,
|
|
|
|
processor->regions[3] ? &tr[3] : NULL);
|
2000-10-18 02:32:43 +08:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2003-01-15 21:40:44 +08:00
|
|
|
g_warning ("do_parallel_regions: Bad number of regions %d\n",
|
2005-02-13 00:07:00 +08:00
|
|
|
processor->num_regions);
|
2003-01-15 21:40:44 +08:00
|
|
|
break;
|
2000-10-18 02:32:43 +08:00
|
|
|
}
|
|
|
|
|
2005-02-13 23:08:08 +08:00
|
|
|
g_mutex_lock (processor->mutex);
|
2000-10-18 02:32:43 +08:00
|
|
|
|
2005-02-13 00:07:00 +08:00
|
|
|
for (i = 0; i < processor->num_regions; i++)
|
|
|
|
if (processor->regions[i])
|
2000-10-18 02:32:43 +08:00
|
|
|
{
|
|
|
|
if (tr[i].tiles)
|
2003-01-15 21:40:44 +08:00
|
|
|
tile_release (tr[i].curtile, tr[i].dirty);
|
2000-10-18 02:32:43 +08:00
|
|
|
}
|
2005-02-11 23:24:02 +08:00
|
|
|
}
|
2003-01-15 21:40:44 +08:00
|
|
|
|
2005-02-12 01:03:56 +08:00
|
|
|
while (processor->PRI &&
|
|
|
|
(processor->PRI = pixel_regions_process (processor->PRI)));
|
2000-10-18 02:32:43 +08:00
|
|
|
|
2005-02-13 23:08:08 +08:00
|
|
|
processor->num_threads--;
|
2001-01-23 22:21:37 +08:00
|
|
|
|
2005-02-13 23:08:08 +08:00
|
|
|
g_mutex_unlock (processor->mutex);
|
1999-04-09 14:00:11 +08:00
|
|
|
}
|
2003-01-15 21:40:44 +08:00
|
|
|
#endif
|
2000-05-05 09:15:39 +08:00
|
|
|
|
2005-02-11 23:24:02 +08:00
|
|
|
/* do_parallel_regions_single is just like do_parallel_regions
|
2000-05-05 09:15:39 +08:00
|
|
|
* except that all the mutex and tile locks have been removed
|
|
|
|
*
|
2005-02-13 23:08:08 +08:00
|
|
|
* If we are processing with only a single thread we don't need to do
|
|
|
|
* the mutex locks etc. and aditional tile locks even if we were
|
2000-05-05 09:15:39 +08:00
|
|
|
* configured --with-mp
|
|
|
|
*/
|
|
|
|
|
2001-01-23 22:21:37 +08:00
|
|
|
static gpointer
|
2005-02-12 01:03:56 +08:00
|
|
|
do_parallel_regions_single (PixelProcessor *processor)
|
2000-05-05 09:15:39 +08:00
|
|
|
{
|
|
|
|
do
|
|
|
|
{
|
2005-02-13 00:07:00 +08:00
|
|
|
switch (processor->num_regions)
|
2003-01-15 21:40:44 +08:00
|
|
|
{
|
|
|
|
case 1:
|
2005-02-13 00:07:00 +08:00
|
|
|
((p1_func) processor->func) (processor->data,
|
|
|
|
processor->regions[0]);
|
2003-01-15 21:40:44 +08:00
|
|
|
break;
|
2005-02-11 23:24:02 +08:00
|
|
|
|
2003-01-15 21:40:44 +08:00
|
|
|
case 2:
|
2005-02-13 00:07:00 +08:00
|
|
|
((p2_func) processor->func) (processor->data,
|
|
|
|
processor->regions[0],
|
|
|
|
processor->regions[1]);
|
2003-01-15 21:40:44 +08:00
|
|
|
break;
|
|
|
|
|
|
|
|
case 3:
|
2005-02-13 00:07:00 +08:00
|
|
|
((p3_func) processor->func) (processor->data,
|
|
|
|
processor->regions[0],
|
|
|
|
processor->regions[1],
|
|
|
|
processor->regions[2]);
|
2003-01-15 21:40:44 +08:00
|
|
|
break;
|
2005-02-11 23:24:02 +08:00
|
|
|
|
2003-01-15 21:40:44 +08:00
|
|
|
case 4:
|
2005-02-13 00:07:00 +08:00
|
|
|
((p4_func) processor->func) (processor->data,
|
|
|
|
processor->regions[0],
|
|
|
|
processor->regions[1],
|
|
|
|
processor->regions[2],
|
|
|
|
processor->regions[3]);
|
2003-01-15 21:40:44 +08:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
g_warning ("do_parallel_regions_single: Bad number of regions %d\n",
|
2005-02-13 00:07:00 +08:00
|
|
|
processor->num_regions);
|
2003-01-15 21:40:44 +08:00
|
|
|
}
|
2000-05-05 09:15:39 +08:00
|
|
|
}
|
2001-01-23 22:21:37 +08:00
|
|
|
|
2005-02-12 01:03:56 +08:00
|
|
|
while (processor->PRI &&
|
|
|
|
(processor->PRI = pixel_regions_process (processor->PRI)));
|
2001-01-23 22:21:37 +08:00
|
|
|
|
2000-05-05 09:15:39 +08:00
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2005-02-13 23:08:08 +08:00
|
|
|
#define MAX_THREADS 16
|
1999-04-09 14:00:11 +08:00
|
|
|
|
|
|
|
static void
|
2005-02-12 01:03:56 +08:00
|
|
|
pixel_regions_do_parallel (PixelProcessor *processor)
|
1999-04-09 14:00:11 +08:00
|
|
|
{
|
2003-01-15 21:40:44 +08:00
|
|
|
#ifdef ENABLE_MP
|
2005-02-13 23:47:36 +08:00
|
|
|
gint nthreads = MIN (num_threads, MAX_THREADS);
|
2000-05-05 09:15:39 +08:00
|
|
|
|
2001-01-23 22:21:37 +08:00
|
|
|
/* make sure we have at least one tile per thread */
|
|
|
|
nthreads = MIN (nthreads,
|
2005-02-12 01:03:56 +08:00
|
|
|
(processor->PRI->region_width *
|
|
|
|
processor->PRI->region_height) / (TILE_WIDTH * TILE_HEIGHT));
|
2000-05-05 09:15:39 +08:00
|
|
|
|
2001-01-23 22:21:37 +08:00
|
|
|
if (nthreads > 1)
|
1999-04-09 14:00:11 +08:00
|
|
|
{
|
2005-02-13 23:08:08 +08:00
|
|
|
GThread *threads[MAX_THREADS];
|
|
|
|
gint i;
|
2001-01-23 22:21:37 +08:00
|
|
|
|
1999-04-09 14:00:11 +08:00
|
|
|
for (i = 0; i < nthreads; i++)
|
2001-01-23 22:21:37 +08:00
|
|
|
{
|
2005-02-13 23:08:08 +08:00
|
|
|
GError *error = NULL;
|
|
|
|
|
|
|
|
threads[i] = g_thread_create ((GThreadFunc) do_parallel_regions,
|
|
|
|
processor,
|
|
|
|
TRUE, &error);
|
|
|
|
if (! threads[i])
|
|
|
|
{
|
|
|
|
g_warning ("cannot create thread: %s\n", error->message);
|
|
|
|
g_clear_error (&error);
|
|
|
|
}
|
|
|
|
}
|
2005-02-12 01:03:56 +08:00
|
|
|
|
1999-04-09 14:00:11 +08:00
|
|
|
for (i = 0; i < nthreads; i++)
|
2001-01-23 22:21:37 +08:00
|
|
|
{
|
2005-02-13 23:08:08 +08:00
|
|
|
g_thread_join (threads[i]);
|
2001-01-23 22:21:37 +08:00
|
|
|
}
|
2003-01-15 21:40:44 +08:00
|
|
|
|
2005-02-13 23:08:08 +08:00
|
|
|
if (processor->num_threads != 0)
|
2001-01-23 22:21:37 +08:00
|
|
|
g_printerr ("pixel_regions_do_prarallel: we lost a thread\n");
|
1999-04-09 14:00:11 +08:00
|
|
|
}
|
2001-01-23 22:21:37 +08:00
|
|
|
else
|
2003-01-15 21:40:44 +08:00
|
|
|
#endif
|
2005-02-11 23:24:02 +08:00
|
|
|
{
|
2005-02-12 01:03:56 +08:00
|
|
|
do_parallel_regions_single (processor);
|
2005-02-11 23:24:02 +08:00
|
|
|
}
|
1999-04-09 14:00:11 +08:00
|
|
|
}
|
|
|
|
|
2005-02-13 00:07:00 +08:00
|
|
|
static void
|
|
|
|
pixel_regions_process_parallel_valist (PixelProcessorFunc func,
|
2005-02-12 01:03:56 +08:00
|
|
|
gpointer data,
|
|
|
|
gint num_regions,
|
|
|
|
va_list ap)
|
1999-04-09 14:00:11 +08:00
|
|
|
{
|
2005-02-13 00:07:00 +08:00
|
|
|
PixelProcessor processor = { NULL, };
|
2001-01-23 22:21:37 +08:00
|
|
|
gint i;
|
1999-04-09 14:00:11 +08:00
|
|
|
|
|
|
|
for (i = 0; i < num_regions; i++)
|
2005-02-13 00:07:00 +08:00
|
|
|
processor.regions[i] = va_arg (ap, PixelRegion *);
|
1999-04-09 14:00:11 +08:00
|
|
|
|
|
|
|
switch(num_regions)
|
2001-01-23 22:21:37 +08:00
|
|
|
{
|
|
|
|
case 1:
|
2005-02-13 00:07:00 +08:00
|
|
|
processor.PRI = pixel_regions_register (num_regions,
|
|
|
|
processor.regions[0]);
|
2001-01-23 22:21:37 +08:00
|
|
|
break;
|
|
|
|
|
|
|
|
case 2:
|
2005-02-13 00:07:00 +08:00
|
|
|
processor.PRI = pixel_regions_register (num_regions,
|
|
|
|
processor.regions[0],
|
|
|
|
processor.regions[1]);
|
2002-08-22 17:48:56 +08:00
|
|
|
break;
|
|
|
|
|
|
|
|
case 3:
|
2005-02-13 00:07:00 +08:00
|
|
|
processor.PRI = pixel_regions_register (num_regions,
|
|
|
|
processor.regions[0],
|
|
|
|
processor.regions[1],
|
|
|
|
processor.regions[2]);
|
2002-08-22 17:48:56 +08:00
|
|
|
break;
|
|
|
|
|
|
|
|
case 4:
|
2005-02-13 00:07:00 +08:00
|
|
|
processor.PRI = pixel_regions_register (num_regions,
|
|
|
|
processor.regions[0],
|
|
|
|
processor.regions[1],
|
|
|
|
processor.regions[2],
|
|
|
|
processor.regions[3]);
|
2002-08-22 17:48:56 +08:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2005-02-12 01:03:56 +08:00
|
|
|
g_warning ("pixel_regions_process_parallel:"
|
2005-02-13 00:07:00 +08:00
|
|
|
"Bad number of regions %d\n", processor.num_regions);
|
2001-01-23 22:21:37 +08:00
|
|
|
}
|
|
|
|
|
2005-02-13 00:07:00 +08:00
|
|
|
if (! processor.PRI)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
processor.func = func;
|
|
|
|
processor.data = data;
|
|
|
|
processor.num_regions = num_regions;
|
2003-01-15 21:40:44 +08:00
|
|
|
|
|
|
|
#ifdef ENABLE_MP
|
2005-02-13 23:08:08 +08:00
|
|
|
processor.mutex = g_mutex_new ();
|
|
|
|
processor.num_threads = 0;
|
2003-01-15 21:40:44 +08:00
|
|
|
#endif
|
1999-04-09 14:00:11 +08:00
|
|
|
|
2005-02-13 00:07:00 +08:00
|
|
|
pixel_regions_do_parallel (&processor);
|
2001-01-23 22:21:37 +08:00
|
|
|
|
2003-01-15 21:40:44 +08:00
|
|
|
#ifdef ENABLE_MP
|
2005-02-13 23:08:08 +08:00
|
|
|
g_mutex_free (processor.mutex);
|
2003-01-15 21:40:44 +08:00
|
|
|
#endif
|
1999-04-09 14:00:11 +08:00
|
|
|
}
|
|
|
|
|
2005-02-13 23:47:36 +08:00
|
|
|
void
|
|
|
|
pixel_processor_init (gint num_threads)
|
|
|
|
{
|
|
|
|
num_threads = MAX (num_threads, MAX_THREADS);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
pixel_processor_set_num_threads (gint num_threads)
|
|
|
|
{
|
|
|
|
num_threads = MAX (num_threads, MAX_THREADS);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
pixel_processor_exit (void)
|
|
|
|
{
|
|
|
|
num_threads = 0;
|
|
|
|
}
|
|
|
|
|
1999-04-09 14:00:11 +08:00
|
|
|
void
|
2005-02-13 00:07:00 +08:00
|
|
|
pixel_regions_process_parallel (PixelProcessorFunc func,
|
2005-02-12 01:03:56 +08:00
|
|
|
gpointer data,
|
|
|
|
gint num_regions,
|
2001-01-23 22:21:37 +08:00
|
|
|
...)
|
1999-04-09 14:00:11 +08:00
|
|
|
{
|
|
|
|
va_list va;
|
2001-01-23 22:21:37 +08:00
|
|
|
|
1999-04-09 14:00:11 +08:00
|
|
|
va_start (va, num_regions);
|
|
|
|
|
2005-02-13 00:07:00 +08:00
|
|
|
pixel_regions_process_parallel_valist (func, data, num_regions, va);
|
1999-04-09 14:00:11 +08:00
|
|
|
|
|
|
|
va_end (va);
|
|
|
|
}
|