Commit Graph

35 Commits

Author SHA1 Message Date
Michael Natterer 3d9f9124f3 app: formatting 2009-12-28 21:07:38 +01:00
Martin Nordholts cb3b8608ce Rename gegl-types.h to gimp-gegl-types.h
Rename gegl-types.h to gimp-gegl-types.h as gegl-types.h invades on
the GEGL namespace

svn path=/trunk/; revision=28056
2009-02-21 15:06:49 +00:00
Martin Nordholts 4a72283f76 Adjust to babl API adjustment by doing
s/babl_format_from_name/babl_format/

* app/gegl/gimp-gegl-utils.c
* app/gegl/gimpoperationpointlayermode.c
* app/gegl/gimpoperationtilesource.c

svn path=/trunk/; revision=27923
2009-01-20 20:11:23 +00:00
Michael Natterer d9b5207aa2 Change licence to GPLv3 (and to LGPLv3 for libgimp).
2009-01-17  Michael Natterer  <mitch@gimp.org>

	* all files with a GPL header and all COPYING files:

	Change licence to GPLv3 (and to LGPLv3 for libgimp).

	Cleaned up some copyright headers and regenerated the parsers in
	the ImageMap plugin.


svn path=/trunk/; revision=27913
2009-01-17 22:28:01 +00:00
Martin Nordholts 7905a7c0a5 Adapt to new babl API, s/babl_format/babl_format_from_name/
* app/gegl/gimp-gegl-utils.c
* app/gegl/gimpoperationpointlayermode.c
* app/gegl/gimpoperationtilesource.c

svn path=/trunk/; revision=27911
2009-01-17 21:20:05 +00:00
Øyvind Kolås f742f2137e cache the data in "RaGaBa A" float instead as a copy of the tile managers
* app/gegl/gimpoperationtilesource.c:
(gimp_operation_tile_source_prepare),
(gimp_operation_tile_source_process): cache the data in "RaGaBa A"
float instead as a copy of the tile managers exact data, this allows
more direct tile data access at projection compositing time.

svn path=/trunk/; revision=27632
2008-11-12 20:43:36 +00:00
Martin Nordholts a9e187586b Prefix the GIMP GEGL operations with "gimp:" instead of "gimp-" so we
* app/gegl/gimpoperation*.c: Prefix the GIMP GEGL operations with
"gimp:" instead of "gimp-" so we follow the GEGL prefix style and
better serialize to XML.

* app/tools/gimp*tool.c

* app/core/gimpdrawable-*.c
* app/core/gimpdrawable.c
* app/core/gimpimagemap.c
* app/core/gimpprojection.c: Changed accordingly.

svn path=/trunk/; revision=27512
2008-11-01 12:08:35 +00:00
Sven Neumann b1ff252ca9 Bug 558451 – Cannot build GIMP using Sun CC on Solaris 2.8
2008-10-29  Sven Neumann  <sven@gimp.org>

	Bug 558451 – Cannot build GIMP using Sun CC on Solaris 2.8

	* app/pdb/gimp-pdb-compat.c
	* app/gegl/gimpoperationtilesink.c
	* app/gegl/gimpoperationtilesource.c
	* app/tools/gimpgegltool.c: applied patches from Eric Lamarque
	fixing the build using Sun CC on Solaris.


svn path=/trunk/; revision=27467
2008-10-29 22:24:08 +00:00
Michael Natterer 79463b2065 remove function gimp_bpp_to_babl_format_linear() and add "gboolean linear"
2008-10-13  Michael Natterer  <mitch@gimp.org>

	* app/gegl/gimp-gegl-utils.[ch]: remove function
	gimp_bpp_to_babl_format_linear() and add "gboolean linear"
	parameter to gimp_bpp_to_babl_format().

	* app/gegl/gimpoperationtilesink.c (process)
	* app/gegl/gimpoperationtilesource.c (prepare): simply pass
	self->linear to above changed function instead of selecting
	between the two old functions.


svn path=/trunk/; revision=27275
2008-10-14 09:19:37 +00:00
Sven Neumann 0b6e61e111 app/gegl/gimpoperationcolorbalance.c app/gegl/gimpoperationcolorize.c
2008-06-11  Sven Neumann  <sven@gimp.org>

	* app/gegl/gimpoperationcolorbalance.c
	* app/gegl/gimpoperationcolorize.c
	* app/gegl/gimpoperationcurves.c
	* app/gegl/gimpoperationdesaturate.c
	* app/gegl/gimpoperationhuesaturation.c
	* app/gegl/gimpoperationlevels.c
	* app/gegl/gimpoperationposterize.c
	* app/gegl/gimpoperationthreshold.c
	* app/gegl/gimpoperationtilesink.c
	* app/gegl/gimpoperationtilesource.c: added const to GeglRectangle*
	argument.

svn path=/trunk/; revision=25918
2008-06-11 09:42:22 +00:00
Michael Natterer c409f1b8a7 app/gegl/gimpoperationcolorbalance.c app/gegl/gimpoperationcolorize.c
2008-02-12  Michael Natterer  <mitch@gimp.org>

	* app/gegl/gimpoperationcolorbalance.c
	* app/gegl/gimpoperationcolorize.c
	* app/gegl/gimpoperationcurves.c
	* app/gegl/gimpoperationdesaturate.c
	* app/gegl/gimpoperationhuesaturation.c
	* app/gegl/gimpoperationlevels.c
	* app/gegl/gimpoperationposterize.c
	* app/gegl/gimpoperationthreshold.c
	* app/gegl/gimpoperationtilesink.c
	* app/gegl/gimpoperationtilesource.c: added categories and very
	lame descriptions. Dunno if the categories are good that way but
	at least they are not NULL now.


svn path=/trunk/; revision=24876
2008-02-12 16:56:36 +00:00
Øyvind Kolås 75a3786e8a context_id argument was removed from the process() call of
* app/gegl/gimpoperationtilesource.c: context_id argument was removed
from the process() call of GeglOperationSource.

svn path=/trunk/; revision=24854
2008-02-11 00:14:52 +00:00
Øyvind Kolås 7bc014f016 %s/get_defined_region/get_bounding_box/
* app/gegl/gimpoperationtilesource.c:
%s/get_defined_region/get_bounding_box/
%s/adjust_result_region/get_cached_region/

svn path=/trunk/; revision=24843
2008-02-09 20:48:51 +00:00
Øyvind Kolås 47fc721161 stop using gegl_operation_class_set_name() for gimp gegl ops.
* app/gegl/gimpoperationcolorbalance.c:
* app/gegl/gimpoperationcolorize.c:
* app/gegl/gimpoperationcurves.c:
* app/gegl/gimpoperationdesaturate.c:
* app/gegl/gimpoperationhuesaturation.c:
* app/gegl/gimpoperationlevels.c:
* app/gegl/gimpoperationposterize.c:
* app/gegl/gimpoperationthreshold.c:
* app/gegl/gimpoperationtilesink.c:
* app/gegl/gimpoperationtilesource.c:
* app/gegl/gimpoperationdesaturate.c: stop using
gegl_operation_class_set_name() for gimp gegl ops.

svn path=/trunk/; revision=24750
2008-01-30 17:44:06 +00:00
Michael Natterer 0e6699ef5a app/gegl/gimpoperationtilesink.c return FALSE when there is no tile
2008-01-28  Michael Natterer  <mitch@gimp.org>

	* app/gegl/gimpoperationtilesink.c
	* app/gegl/gimpoperationtilesource.c (process): return FALSE when
	there is no tile manager.


svn path=/trunk/; revision=24740
2008-01-28 21:49:00 +00:00
Michael Natterer 4e93a8068c app/gegl/gimpcolorbalanceconfig.c app/gegl/gimpcolorizeconfig.c
2008-01-28  Michael Natterer  <mitch@gimp.org>

	* app/gegl/gimpcolorbalanceconfig.c
	* app/gegl/gimpcolorizeconfig.c
	* app/gegl/gimpcurvesconfig.c
	* app/gegl/gimphuesaturationconfig.c
	* app/gegl/gimplevelsconfig.c
	* app/gegl/gimpoperationdesaturate.c
	* app/gegl/gimpoperationtilesink.c
	* app/gegl/gimpoperationtilesource.c
	* app/gegl/gimpposterizeconfig.c
	* app/gegl/gimpthresholdconfig.c: coding style paranoia: changed
	one byte per file.


svn path=/trunk/; revision=24737
2008-01-28 18:57:11 +00:00
Michael Natterer ca8d74160f app/gegl/gimpoperationtilesink.c (class_init) cosmetic.
2008-01-18  Michael Natterer  <mitch@gimp.org>

	* app/gegl/gimpoperationtilesink.c (class_init)
	* app/gegl/gimpoperationcolorize.c (class_init): cosmetic.


svn path=/trunk/; revision=24645
2008-01-18 13:48:25 +00:00
Øyvind Kolås b54f2a3584 Some changes due to changed location of where the various GEGL headers get
* app/gegl/gimpoperationtilesink.c:
* app/gegl/gimpoperationtilesource.c: Some changes due to changed
location of where the various GEGL headers get installed on the
system.
* app/gegl/gegl/gegl-operation.h: synced from GEGL.

svn path=/trunk/; revision=24639
2008-01-17 23:03:52 +00:00
Michael Natterer 7b8fa4c34c Fix gegl types and includes so we can include operations from app/gegl in
2008-01-16  Michael Natterer  <mitch@gimp.org>

	Fix gegl types and includes so we can include operations from
	app/gegl in other gimp files (needed soon):

	* app/gegl/gegl/gegl-types.h: not copied from gegl any longer.
	Now contains only two typedefs needed by the copied operation
	headers.

	* app/gegl/gegl-types.h: include above types file.

	* app/gegl/gimp-gegl.c
	* app/gegl/gimpoperationcolorbalance.c
	* app/gegl/gimpoperationcolorize.c
	* app/gegl/gimpoperationdesaturate.c
	* app/gegl/gimpoperationhuesaturation.c
	* app/gegl/gimpoperationlevels.c
	* app/gegl/gimpoperationposterize.c
	* app/gegl/gimpoperationthreshold.c
	* app/gegl/gimpoperationtilesink.c
	* app/gegl/gimpoperationtilesource.c: include only <gegl.h> and
	"gegl-types.h" from this directory, which is much more gimpish
	now. Include "gegl/buffer/gegl-buffer.h" in the source and sink
	operations.

	* app/tools/gimpimagemaptool.h: warn about inclusion of <gegl.h>
	only if it hasn't been included before, so it only warns in the
	files where we still have to address this issue.


svn path=/trunk/; revision=24625
2008-01-16 15:52:02 +00:00
Michael Natterer d916692cad updated from GEGL.
2008-01-07  Michael Natterer  <mitch@gimp.org>

	* app/gegl/gegl/gegl-operation.h: updated from GEGL.

	* app/gegl/gimpoperationtilesource.c: use the passed buffer in
	process() and add prepare() implementation which sets the format.


svn path=/trunk/; revision=24559
2008-01-07 15:33:02 +00:00
Øyvind Kolås 9a88941195 modified to match newer API in GEGL.
* app/gegl/gimpoperationtilesink.c:
* app/gegl/gimpoperationtilesource.c: modified to match newer API in
GEGL.
* app/gegl/gegl/gegl-operation-sink.h:
* app/gegl/gegl/gegl-operation-source.h: updated from GEGL.

svn path=/trunk/; revision=24555
2008-01-07 01:44:58 +00:00
Michael Natterer 3463d3f649 app/gegl/gimpoperationtilesource.c formatting.
2008-01-06  Michael Natterer  <mitch@gimp.org>

	* app/gegl/gimpoperationtilesource.c
	* app/gegl/gimpoperationtilesink.c: formatting.


svn path=/trunk/; revision=24547
2008-01-06 11:35:11 +00:00
Øyvind Kolås e748a07298 synchronoised with GEGL headers.
* app/gegl/gegl/gegl-operation-sink.h:
* app/gegl/gegl/gegl-operation-source.h:
* app/gegl/gegl/gegl-operation.h:
* app/gegl/gegl/gegl-types.h:
* app/gegl/gegl/graph/:
* app/gegl/gegl/graph/gegl-node-context.h: synchronoised with GEGL
headers.
* app/gegl/gimpoperationtilesink.c:
* app/gegl/gimpoperationtilesource.c: updated to new API, where a
GeglNodeContext is used in process methods instead of gpointer
context_id.

svn path=/trunk/; revision=24538
2008-01-05 12:58:28 +00:00
Øyvind Kolås 1f4acb98ce synchronised with GEGL headers.
* app/gegl/gegl/gegl-operation-sink.h:
* app/gegl/gegl/gegl-operation-source.h:
* app/gegl/gegl/gegl-operation.h: synchronised with GEGL headers.
* app/gegl/gimpoperationtilesink.c:
* app/gegl/gimpoperationtilesource.c: added const GeglRectangle
*result to arguments of _process().

svn path=/trunk/; revision=24537
2008-01-04 23:51:15 +00:00
Øyvind Kolås 20e49c0db0 synchronised with GEGL headers.
* app/gegl/gegl/gegl-operation-sink.h:
* app/gegl/gegl/gegl-operation-source.h:
* app/gegl/gegl/gegl-operation.h: synchronised with GEGL headers.
* app/gegl/gimpoperationtilesink.c:
* app/gegl/gimpoperationtilesource.c: added const GeglRectangle
*result to arguments of _process().

svn path=/trunk/; revision=24536
2008-01-04 23:20:41 +00:00
Sven Neumann cd270aac4c added new function gimp_bpp_to_babl_format_linear().
2007-12-30  Sven Neumann  <sven@gimp.org>

	* app/gegl/gimp-gegl-utils.[ch]: added new function
	gimp_bpp_to_babl_format_linear().

	* app/gegl/gimpoperationtilesink.[ch]
	* app/gegl/gimpoperationtilesource.[ch]: added boolean property 
to
	toggle between linear and gamma-corrected data.

	* app/core/gimpdrawable-invert.c: assume linear data to be 
closer
	to the original definition of the invert operation in GIMP.
	Enable the GEGL code path per default.


svn path=/trunk/; revision=24491
2007-12-30 19:14:27 +00:00
Michael Natterer 5adffe394a minor cleanup.
2007-12-30  Michael Natterer  <mitch@gimp.org>

	* app/gegl/gimpoperationtilesource.c: minor cleanup.

	* app/gegl/gimpoperationtilesink.[ch]: add "data-written" signal
	that is emitted whenever pixels have been written to the tile
	manager.


svn path=/trunk/; revision=24484
2007-12-30 15:59:23 +00:00
Øyvind Kolås d62e65d42f override the default behaviour of GeglOperationSource to expand the result
* app/gegl/gimpoperationtilesource.c: override the default behaviour
of GeglOperationSource to expand the result rect to the full have
rect with a NULL (nop) implementation.

svn path=/trunk/; revision=24474
2007-12-29 23:44:12 +00:00
Sven Neumann 27450af451 app/gegl/gimpoperationtilesink.c formatting.
2007-12-29  Sven Neumann  <sven@gimp.org>

	* app/gegl/gimpoperationtilesink.c
	* app/gegl/gimpoperationtilesource.c: formatting.


svn path=/trunk/; revision=24471
2007-12-29 18:22:07 +00:00
Øyvind Kolås 10d1bfe356 do not fetch the full extent of the TileManager but only the needed
* app/gegl/gimpoperationtilesource.c: do not fetch the full extent
of the TileManager but only the needed pixels. Pass rowstride
correctly when fecting subregions.

svn path=/trunk/; revision=24470
2007-12-29 18:01:35 +00:00
Øyvind Kolås 16ae053894 depend on GEGL 0.0.15 (version ends in odd, thus depending on svn trunk of
* configure.in: depend on GEGL 0.0.15 (version ends in odd, thus
depending on svn trunk of GEGL).
* app/gegl/gimpoperationtilesource.c:
(gimp_operation_tile_source_process): just use GEGL_AUTO_ROWSTRIDE for
the rowstride in gegl_buffer_set for now.

svn path=/trunk/; revision=24469
2007-12-29 16:44:32 +00:00
Michael Natterer 3377d0423b app/gegl/gimp-gegl.c app/gegl/gimpoperationtilesource.c fixup includes a
2007-12-29  Michael Natterer  <mitch@gimp.org>

	* app/gegl/gimp-gegl.c
	* app/gegl/gimpoperationtilesource.c
	* app/gegl/gimpoperationtilesink.c: fixup includes a bit.


svn path=/trunk/; revision=24467
2007-12-29 15:25:40 +00:00
Øyvind Kolås 2236d9faf0 added. added from GEGL trunk. .. updated copy from GEGL trunk.
* app/gegl/gegl/buffer/: added.
* app/gegl/gegl/buffer/gegl-buffer-types.h: added from GEGL trunk.
* app/gegl/gegl/gegl-operation.h: ..
* app/gegl/gegl/gegl-types.h: updated copy from GEGL trunk.
* app/gegl/gimp-gegl.c: 
* app/gegl/gimpoperationtilesink.c:
* app/gegl/gimpoperationtilesource.c: Modified to build with direct
copies of GEGL headers.

svn path=/trunk/; revision=24466
2007-12-29 14:47:05 +00:00
Michael Natterer 6be63006ec add boxed type GIMP_TYPE_TILE_MANAGER.
2007-12-29  Michael Natterer  <mitch@gimp.org>

	* app/base/tile-manager.[ch]: add boxed type GIMP_TYPE_TILE_MANAGER.

	* app/gegl/gimpoperationtilesink.c
	* app/gegl/gimpoperationtilesource.c: use GParamSpecBoxed instead
	of GParamSpecPointer for the tile-manager properties and ref them
	properly. Some cleanup.


svn path=/trunk/; revision=24465
2007-12-29 13:46:13 +00:00
Michael Natterer 70f07cd509 new files containing gimp_bpp_to_babl_format().
2007-12-29  Michael Natterer  <mitch@gimp.org>

	* app/gegl/gimp-gegl-utils.c: new files containing
	gimp_bpp_to_babl_format().

	* app/gegl/gimpoptilesink.[ch]
	* app/gegl/gimpoptilesource.[ch]: renamed..

	* app/gegl/gimpoperationtilesink.[ch]
	* app/gegl/gimpoperationtilesource.[ch]: ...to these. Cleaned them
	up quite a bit more.

	* app/gegl/Makefile.am
	* app/gegl/gimp-gegl.c: changed accordingly.


svn path=/trunk/; revision=24460
2007-12-29 02:19:23 +00:00