Commit a7fbfec9 authored by Victor Oliveira's avatar Victor Oliveira

removing opencl tests

in the future this should be done tests/compositions where opencl
should be enabled and disabled and results compared.
parent d3681775
/*.o
/.deps
/.libs
/Makefile
/Makefile.in
/test-cl-brightness-contrast
/test-cl-over
# Make the tests run against the build and not the installation
TESTS_ENVIRONMENT = \
GEGL_PATH=$(top_builddir)/operations/common:$(top_builddir)/operations/core:$(top_builddir)/operations/external:$(top_builddir)/operations/affine:$(top_builddir)/operations/generated \
ABS_TOP_BUILDDIR=$(top_builddir) \
ABS_TOP_SRCDIR=$(top_srcdir)
# The tests
noinst_PROGRAMS = \
test-cl-brightness-contrast \
test-cl-over
TESTS = $(noinst_PROGRAMS)
# Common CPPFLAGS
AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir)/gegl \
-I$(top_srcdir)/gegl \
-I$(top_builddir)/gegl/buffer \
-I$(top_srcdir)/gegl/buffer \
-I$(top_builddir)/gegl/property-types \
-I$(top_srcdir)/gegl/property-types \
-I$(top_builddir)/gegl/operation \
-I$(top_srcdir)/gegl/operation \
-I$(top_builddir)/gegl/opencl \
-I$(top_srcdir)/gegl/opencl
AM_CFLAGS = $(DEP_CFLAGS) $(BABL_CFLAGS)
# Common libs
LIBS = $(top_builddir)/gegl/libgegl-$(GEGL_API_VERSION).la \
$(DEP_LIBS) $(BABL_LIBS)
/* This file is part of GEGL.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with GEGL; if not, see <http://www.gnu.org/licenses/>.
*
* Copyright 2011 Victor M. de Araujo Oliveira <victormatheus@gmail.com>
*/
#include <string.h>
#include <assert.h>
#include <babl/babl.h>
#include <sys/time.h>
#include "gegl.h"
#include "gegl-types.h"
#include "gegl-utils.h"
#include "gegl-cl.h"
#define SUCCESS 0
#define FAILURE (-1)
gint
main (gint argc,
gchar **argv)
{
gint retval = SUCCESS;
gfloat brightness = 0.5f;
gfloat contrast = 2.0f;
char image_name[1000] = "GEGL.png";
if (argc > 1)
strcpy(image_name, argv[1]);
gegl_init (&argc, &argv);
/* process */
{
GeglNode *gegl, *sink, *bc, *load;
gegl = gegl_graph(sink = gegl_node ("gegl:png-save", "path", "out.png", NULL,
bc = gegl_node ("gegl:brightness-contrast", "brightness", brightness, "contrast", contrast, NULL,
load = gegl_node ("gegl:load", "path", image_name, NULL))));
gegl_node_process (sink);
g_object_unref (gegl);
}
gegl_exit ();
return retval;
}
/* This file is part of GEGL.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with GEGL; if not, see <http://www.gnu.org/licenses/>.
*
* Copyright 2011 Victor M. de Araujo Oliveira <victormatheus@gmail.com>
*/
#include <string.h>
#include <assert.h>
#include <babl/babl.h>
#include <sys/time.h>
#include "gegl.h"
#include "gegl-types.h"
#include "gegl-utils.h"
#include "gegl-cl.h"
#define SUCCESS 0
#define FAILURE (-1)
gint
main (gint argc,
gchar **argv)
{
gint retval = SUCCESS;
char image_name_1 [1000];
char image_name_2 [1000];
if (argc == 3)
{
strcpy(image_name_1, argv[1]);
strcpy(image_name_2, argv[2]);
}
else
return FAILURE;
gegl_init (&argc, &argv);
/* process */
{
GeglNode *gegl, *sink;
gegl = gegl_graph(sink = gegl_node ("gegl:png-save", "path", "out.png", NULL,
gegl_node ("gegl:over", NULL,
gegl_node ("gegl:over", NULL,
gegl_node ("gegl:load", "path", image_name_1, NULL),
gegl_node ("gegl:load", "path", image_name_2, NULL)),
gegl_node ("gegl:translate", "x", 200.0, "y", 200.0, NULL,
gegl_node ("gegl:load", "path", image_name_2, NULL)))));
gegl_node_process (sink);
g_object_unref (gegl);
}
gegl_exit ();
return retval;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment