mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-23 13:01:42 +00:00
54630be219
* app/composite/gimp-composite.c (gimp_composite_init): Print the list of active instruction sets if the --verbose command line switch is ON (via be_verbose) * app/composite/gimp-composite-x86.h: Factored code from the mmx, and sse implementations. * app/composite/make-installer.py: Raised the number of test iterations from 1 to 10. * app/composite/gimp-composite-3dnow.[ch] * app/composite/gimp-composite-3dnow-test.c * app/composite/gimp-composite-3dnow-installer.c * app/composite/gimp-composite-altivec.[ch] * app/composite/gimp-composite-altivec-test.c * app/composite/gimp-composite-altivec-installer.c * app/composite/gimp-composite-mmx.[ch] * app/composite/gimp-composite-altivec-test.c * app/composite/gimp-composite-altivec-installer.c * app/composite/gimp-composite-sse.[ch] * app/composite/gimp-composite-sse-test.c * app/composite/gimp-composite-sse-installer.c * app/composite/gimp-composite-sse2.[ch] * app/composite/gimp-composite-sse2-test.c * app/composite/gimp-composite-sse2-installer.c * app/composite/gimp-composite-vis.[ch] * app/composite/gimp-composite-vis-test.c: Regenerated sources via make-installer.py
52 lines
2.6 KiB
C
52 lines
2.6 KiB
C
/* THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT */
|
|
/* REGENERATE BY USING make-installer.py */
|
|
#include "config.h"
|
|
#include <glib-object.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include "base/base-types.h"
|
|
#include "gimp-composite.h"
|
|
|
|
#include "gimp-composite-sse.h"
|
|
|
|
static struct install_table {
|
|
GimpCompositeOperation mode;
|
|
GimpPixelFormat A;
|
|
GimpPixelFormat B;
|
|
GimpPixelFormat D;
|
|
void (*function)(GimpCompositeContext *);
|
|
} _gimp_composite_sse[] = {
|
|
#if defined(COMPILE_SSE_IS_OKAY)
|
|
{ GIMP_COMPOSITE_MULTIPLY, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_multiply_rgba8_rgba8_rgba8_sse },
|
|
{ GIMP_COMPOSITE_SCREEN, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_screen_rgba8_rgba8_rgba8_sse },
|
|
{ GIMP_COMPOSITE_DIFFERENCE, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_difference_rgba8_rgba8_rgba8_sse },
|
|
{ GIMP_COMPOSITE_ADDITION, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_addition_rgba8_rgba8_rgba8_sse },
|
|
{ GIMP_COMPOSITE_SUBTRACT, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_subtract_rgba8_rgba8_rgba8_sse },
|
|
{ GIMP_COMPOSITE_DARKEN, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_darken_rgba8_rgba8_rgba8_sse },
|
|
{ GIMP_COMPOSITE_LIGHTEN, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_lighten_rgba8_rgba8_rgba8_sse },
|
|
{ GIMP_COMPOSITE_BURN, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_burn_rgba8_rgba8_rgba8_sse },
|
|
{ GIMP_COMPOSITE_GRAIN_EXTRACT, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_grain_extract_rgba8_rgba8_rgba8_sse },
|
|
{ GIMP_COMPOSITE_GRAIN_MERGE, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_grain_merge_rgba8_rgba8_rgba8_sse },
|
|
{ GIMP_COMPOSITE_SWAP, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_swap_rgba8_rgba8_rgba8_sse },
|
|
{ GIMP_COMPOSITE_SCALE, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, GIMP_PIXELFORMAT_RGBA8, gimp_composite_scale_rgba8_rgba8_rgba8_sse },
|
|
#endif
|
|
{ 0, 0, 0, 0, NULL }
|
|
};
|
|
|
|
gboolean
|
|
gimp_composite_sse_install (void)
|
|
{
|
|
static struct install_table *t = _gimp_composite_sse;
|
|
|
|
if (gimp_composite_sse_init ())
|
|
{
|
|
for (t = &_gimp_composite_sse[0]; t->function != NULL; t++)
|
|
{
|
|
gimp_composite_function[t->mode][t->A][t->B][t->D] = t->function;
|
|
}
|
|
return (TRUE);
|
|
}
|
|
|
|
return (FALSE);
|
|
}
|