Commit 925b9e0f authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

gegl/buffer/gegl-buffer-allocator.h gegl/buffer/gegl-buffer-load.h

2008-01-06  Michael Natterer  <mitch@gimp.org>

	* gegl/buffer/gegl-buffer-allocator.h
	* gegl/buffer/gegl-buffer-load.h
	* gegl/buffer/gegl-buffer-private.h
	* gegl/buffer/gegl-buffer-save.h
	* gegl/buffer/gegl-buffer-types.h
	* gegl/buffer/gegl-buffer.h
	* gegl/buffer/gegl-cache.h
	* gegl/buffer/gegl-handler-cache.h
	* gegl/buffer/gegl-handler-empty.h
	* gegl/buffer/gegl-handler-log.h
	* gegl/buffer/gegl-handler-zoom.h
	* gegl/buffer/gegl-handler.h
	* gegl/buffer/gegl-handlers.h
	* gegl/buffer/gegl-provider.h
	* gegl/buffer/gegl-region-generic.h
	* gegl/buffer/gegl-region.h
	* gegl/buffer/gegl-sampler-lanczos.h
	* gegl/buffer/gegl-sampler-linear.h
	* gegl/buffer/gegl-sampler-nearest.h
	* gegl/buffer/gegl-sampler.h
	* gegl/buffer/gegl-storage.h
	* gegl/buffer/gegl-tile-backend.h
	* gegl/buffer/gegl-tile-disk.h
	* gegl/buffer/gegl-tile-mem.h
	* gegl/buffer/gegl-tile.h
	* gegl/operation/gegl-extension-handler.h
	* gegl/operation/gegl-operation-area-filter.h
	* gegl/operation/gegl-operation-composer.h
	* gegl/operation/gegl-operation-filter.h
	* gegl/operation/gegl-operation-meta.h
	* gegl/operation/gegl-operation-point-composer.h
	* gegl/operation/gegl-operation-point-filter.h
	* gegl/operation/gegl-operation-sink.h
	* gegl/operation/gegl-operation-source.h
	* gegl/operation/gegl-operation.h
	* gegl/property-types/gegl-color.h
	* gegl/property-types/gegl-curve.h: header cleanup: added missing
	GEGL_IS_FOO() macros, unified include guards, indentation, remove
	tons of includes, remove trailing whitespace, stuff...


svn path=/trunk/; revision=1809
parent 6d86ab5b
2008-01-06 Michael Natterer <mitch@gimp.org>
* gegl/buffer/gegl-buffer-allocator.h
* gegl/buffer/gegl-buffer-load.h
* gegl/buffer/gegl-buffer-private.h
* gegl/buffer/gegl-buffer-save.h
* gegl/buffer/gegl-buffer-types.h
* gegl/buffer/gegl-buffer.h
* gegl/buffer/gegl-cache.h
* gegl/buffer/gegl-handler-cache.h
* gegl/buffer/gegl-handler-empty.h
* gegl/buffer/gegl-handler-log.h
* gegl/buffer/gegl-handler-zoom.h
* gegl/buffer/gegl-handler.h
* gegl/buffer/gegl-handlers.h
* gegl/buffer/gegl-provider.h
* gegl/buffer/gegl-region-generic.h
* gegl/buffer/gegl-region.h
* gegl/buffer/gegl-sampler-lanczos.h
* gegl/buffer/gegl-sampler-linear.h
* gegl/buffer/gegl-sampler-nearest.h
* gegl/buffer/gegl-sampler.h
* gegl/buffer/gegl-storage.h
* gegl/buffer/gegl-tile-backend.h
* gegl/buffer/gegl-tile-disk.h
* gegl/buffer/gegl-tile-mem.h
* gegl/buffer/gegl-tile.h
* gegl/operation/gegl-extension-handler.h
* gegl/operation/gegl-operation-area-filter.h
* gegl/operation/gegl-operation-composer.h
* gegl/operation/gegl-operation-filter.h
* gegl/operation/gegl-operation-meta.h
* gegl/operation/gegl-operation-point-composer.h
* gegl/operation/gegl-operation-point-filter.h
* gegl/operation/gegl-operation-sink.h
* gegl/operation/gegl-operation-source.h
* gegl/operation/gegl-operation.h
* gegl/property-types/gegl-color.h
* gegl/property-types/gegl-curve.h: header cleanup: added missing
GEGL_IS_FOO() macros, unified include guards, indentation, remove
tons of includes, remove trailing whitespace, stuff...
2008-01-06 Michael Natterer <mitch@gimp.org>
* gegl/buffer/gegl-buffer-save.c: #include "config.h"
......
......@@ -15,13 +15,12 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#include <glib.h>
#include <glib-object.h>
#include "gegl-buffer-types.h"
#ifndef __GEGL_BUFFER_ALLOCATOR_H__
#define __GEGL_BUFFER_ALLOCATOR_H__
#ifndef _GEGL_BUFFER_ALLOCATOR_H
#define _GEGL_BUFFER_ALLOCATOR_H
#include "gegl-buffer.h"
#include "gegl-buffer-private.h"
#define GEGL_TYPE_BUFFER_ALLOCATOR (gegl_buffer_allocator_get_type ())
#define GEGL_BUFFER_ALLOCATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_BUFFER_ALLOCATOR, GeglBufferAllocator))
......@@ -30,12 +29,10 @@
#define GEGL_IS_BUFFER_ALLOCATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEGL_TYPE_BUFFER_ALLOCATOR))
#define GEGL_BUFFER_ALLOCATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEGL_TYPE_BUFFER_ALLOCATOR, GeglBufferAllocatorClass))
#include "gegl-buffer.h"
#include "gegl-buffer-private.h"
struct _GeglBufferAllocator
{
GeglBuffer parent_object;
GeglBuffer parent_instance;
gint x_used; /* currently used in x direction */
gint max_height; /* height of the talles allocation in this run */
gint y_used; /* the current y pos used for returns */
......@@ -46,15 +43,14 @@ struct _GeglBufferAllocatorClass
GeglBufferClass parent_class;
};
GType gegl_buffer_allocator_get_type (void) G_GNUC_CONST;
GType gegl_buffer_allocator_get_type (void) G_GNUC_CONST;
void gegl_buffer_allocators_free (void);
void gegl_buffer_allocators_free (void);
GeglBuffer *
gegl_buffer_new_from_format (const void *babl_format,
gint x,
gint y,
gint width,
gint height);
GeglBuffer * gegl_buffer_new_from_format (const void *babl_format,
gint x,
gint y,
gint width,
gint height);
#endif
......@@ -15,14 +15,14 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#include <glib.h>
#ifndef __GEGL_BUFFER_LOAD_H__
#define __GEGL_BUFFER_LOAD_H__
#include <glib-object.h>
#include "gegl-buffer.h"
#ifndef _GEGL_BUFFER_LOAD_H
#define _GEGL_BUFFER_LOAD_H
void gegl_buffer_load (GeglBuffer *buffer,
const gchar *path);
......
......@@ -16,15 +16,10 @@
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifndef _GEGL_BUFFER_PRIVATE_H
#define _GEGL_BUFFER_PRIVATE_H
#ifndef __GEGL_BUFFER_PRIVATE_H__
#define __GEGL_BUFFER_PRIVATE_H__
#include <glib.h>
#include <glib-object.h>
#include "gegl-buffer-types.h"
#include "gegl-buffer.h"
#include <babl/babl.h>
#include "gegl-handlers.h"
#define GEGL_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEGL_TYPE_BUFFER, GeglBufferClass))
......@@ -34,15 +29,15 @@
struct _GeglBuffer
{
GeglHandlers parent_object; /* which is a GeglHandler which has a
provider field which is used for chaining
sub buffers with their anchestors */
GeglHandlers parent_instance; /* which is a GeglHandler which has a
provider field which is used for chaining
sub buffers with their anchestors */
GeglRectangle extent; /* the dimensions of the buffer */
const Babl *format; /* the pixel format used for pixels in this
buffer */
gint shift_x; /* The relative offset of origins compared with */
gint shift_y; /* anchestral storage buffer, during */
/* construction relative to immediate provider */
......@@ -84,7 +79,7 @@ void gegl_buffer_save (GeglBuffer *buffer,
/* flush any unwritten data (flushes the hot-cache of a single
* tile used by gegl_buffer_set for 1x1 pixel sized rectangles
*/
void gegl_buffer_flush (GeglBuffer *buffer);
void gegl_buffer_flush (GeglBuffer *buffer);
#endif
......@@ -15,14 +15,14 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#include <glib.h>
#ifndef __GEGL_BUFFER_SAVE_H__
#define __GEGL_BUFFER_SAVE_H__
#include <glib-object.h>
#include "gegl-buffer.h"
#ifndef _GEGL_BUFFER_SAVE_H
#define _GEGL_BUFFER_SAVE_H
typedef struct {
gchar magic[16];
gint width, height, x, y;
......
......@@ -15,8 +15,9 @@
*
* Copyright 2006,2007 Øyvind Kolås <pippin@gimp.org>
*/
#ifndef _GEGL_BUFFER_TYPES_H
#define _GEGL_BUFFER_TYPES_H
#ifndef __GEGL_BUFFER_TYPES_H__
#define __GEGL_BUFFER_TYPES_H__
typedef struct _GeglSampler GeglSampler;
......@@ -38,7 +39,7 @@ typedef struct _GeglHandlersClass GeglHandlersClass;
typedef struct _GeglStorage GeglStorage;
typedef struct _GeglStorageClass GeglStorageClass;
#ifndef _GEGL_BUFFER_H
#ifndef __GEGL_BUFFER_H__
typedef struct _GeglBuffer GeglBuffer;
#endif
typedef struct _GeglBufferClass GeglBufferClass;
......
......@@ -15,17 +15,16 @@
*
* Copyright 2006, 2007 Øyvind Kolås <pippin@gimp.org>
*/
#include <glib.h>
#include <glib-object.h>
#include <babl/babl.h>
#ifndef __GEGL_BUFFER_H__
#define __GEGL_BUFFER_H__
#ifndef _GEGL_BUFFER_H
#define _GEGL_BUFFER_H
#include <glib-object.h>
#include <babl/babl.h>
#define GEGL_TYPE_BUFFER (gegl_buffer_get_type ())
#define GEGL_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_BUFFER, GeglBuffer))
#ifndef _GEGL_BUFFER_TYPES_H
#ifndef __GEGL_BUFFER_TYPES_H__
typedef struct _GeglBuffer GeglBuffer;
#endif
......
......@@ -19,10 +19,8 @@
#ifndef __GEGL_CACHE_H__
#define __GEGL_CACHE_H__
#ifndef __GEGL_H__
#include "gegl-types.h"
#endif
#include "gegl-buffer.h"
#include "gegl-buffer-private.h"
G_BEGIN_DECLS
......@@ -33,11 +31,10 @@ G_BEGIN_DECLS
#define GEGL_IS_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEGL_TYPE_CACHE))
#define GEGL_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEGL_TYPE_CACHE, GeglCacheClass))
#include "gegl-buffer-private.h"
struct _GeglCache
{
GeglBuffer parent;
GeglBuffer parent_instance;
GeglNode *node;
const void *format;
GeglRegion *valid_region;
......@@ -45,7 +42,7 @@ struct _GeglCache
struct _GeglCacheClass
{
GeglBufferClass buffer_class;
GeglBufferClass parent_class;
};
GType gegl_cache_get_type (void) G_GNUC_CONST;
......
......@@ -15,10 +15,10 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifndef _HANDLER_CACHE_H
#define _HANDLER_CACHE_H
#include "gegl-buffer-types.h"
#ifndef __GEGL_HANDLER_CACHE_H__
#define __GEGL_HANDLER_CACHE_H__
#include "gegl-handler.h"
#define GEGL_TYPE_HANDLER_CACHE (gegl_handler_cache_get_type ())
......@@ -29,18 +29,19 @@
#define GEGL_HANDLER_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEGL_TYPE_HANDLER_CACHE, GeglHandlerCacheClass))
typedef struct _GeglHandlerCache GeglHandlerCache;
typedef struct _GeglHandlerCacheClass GeglHandlerCacheClass;
typedef struct _GeglHandlerCache GeglHandlerCache;
typedef struct _GeglHandlerCacheClass GeglHandlerCacheClass;
struct _GeglHandlerCache
{
GeglHandler parent_instance;
GSList *list;
gint size;
gint hits;
gint misses;
gint wash_percentage;
gint wash_percentage;
};
struct _GeglHandlerCacheClass
......@@ -48,7 +49,6 @@ struct _GeglHandlerCacheClass
GeglHandlerClass parent_class;
};
GType gegl_handler_cache_get_type (void) G_GNUC_CONST;
GType gegl_handler_cache_get_type (void) G_GNUC_CONST;
#endif
......@@ -15,12 +15,10 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifndef _GEGL_HANDLER_EMPTY_H
#define _GEGL_HANDLER_EMPTY_H
#include <glib.h>
#include "gegl-buffer-types.h"
#include "gegl-tile.h"
#ifndef __GEGL_HANDLER_EMPTY_H__
#define __GEGL_HANDLER_EMPTY_H__
#include "gegl-handler.h"
G_BEGIN_DECLS
......@@ -39,6 +37,7 @@ typedef struct _GeglHandlerEmptyClass GeglHandlerEmptyClass;
struct _GeglHandlerEmpty
{
GeglHandler parent_instance;
GeglTile *tile;
GeglTileBackend *backend;
};
......
......@@ -15,11 +15,10 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifndef _GEGL_HANDLER_LOG_H
#define _GEGL_HANDLER_LOG_H
#include <glib.h>
#include "gegl-tile.h"
#ifndef __GEGL_HANDLER_LOG_H__
#define __GEGL_HANDLER_LOG_H__
#include "gegl-handler.h"
G_BEGIN_DECLS
......@@ -42,7 +41,7 @@ struct _GeglHandlerLog
struct _GeglHandlerLogClass
{
GeglHandlerClass parent_class;
GeglHandlerClass parent_class;
};
GType gegl_handler_log_get_type (void) G_GNUC_CONST;
......
......@@ -15,14 +15,11 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifndef _GEGL_HANDLER_ZOOM_H
#define _GEGL_HANDLER_ZOOM_H
#include <glib.h>
#include "gegl-buffer-types.h"
#include "gegl-tile.h"
#ifndef __GEGL_HANDLER_ZOOM_H__
#define __GEGL_HANDLER_ZOOM_H__
#include "gegl-handler.h"
#include "gegl-storage.h"
G_BEGIN_DECLS
......@@ -40,13 +37,14 @@ typedef struct _GeglHandlerZoomClass GeglHandlerZoomClass;
struct _GeglHandlerZoom
{
GeglHandler parent_instance;
GeglTileBackend *backend;
GeglStorage *storage;
};
struct _GeglHandlerZoomClass
{
GeglHandlerClass parent_class;
GeglHandlerClass parent_class;
};
GType gegl_handler_zoom_get_type (void) G_GNUC_CONST;
......
......@@ -15,13 +15,11 @@
*
* Copyright 2006,2007 Øyvind Kolås <pippin@gimp.org>
*/
#ifndef _TILE_TRAIT_H
#define _TILE_TRAIT_H
#include <glib.h>
#include "gegl-tile.h"
#ifndef __TILE_TRAIT_H__
#define __TILE_TRAIT_H__
#include "gegl-provider.h"
#include "gegl-handler.h"
G_BEGIN_DECLS
......@@ -33,10 +31,10 @@ G_BEGIN_DECLS
#define GEGL_HANDLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEGL_TYPE_TILE_TRAIT, GeglHandlerClass))
struct _GeglHandler
{
GeglProvider parent_instance;
GeglProvider *provider;
};
......
......@@ -15,27 +15,23 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#include <glib.h>
#include <glib-object.h>
#include "gegl-buffer-types.h"
#include "gegl-tile.h"
#ifndef _GEGL_HANDLERS_H
#define _GEGL_HANDLERS_H
#define GEGL_TYPE_TILE_TRAITS (gegl_handlers_get_type ())
#define GEGL_HANDLERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_TILE_TRAITS, GeglHandlers))
#define GEGL_HANDLERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEGL_TYPE_TILE_TRAITS, GeglHandlersClass))
#define GEGL_IS_TILE_TRAITS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEGL_TYPE_TILE_TRAITS))
#define GEGL_IS_TILE_TRAITS_CLASS(klass)(G_TYPE_CHECK_CLASS_TYPE ((klass), GEGL_TYPE_TILE_TRAITS))
#define GEGL_HANDLERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEGL_TYPE_TILE_TRAITS, GeglHandlersClass))
#ifndef __GEGL_HANDLERS_H__
#define __GEGL_HANDLERS_H__
#include "gegl-handler.h"
#define GEGL_TYPE_TILE_TRAITS (gegl_handlers_get_type ())
#define GEGL_HANDLERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_TILE_TRAITS, GeglHandlers))
#define GEGL_HANDLERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEGL_TYPE_TILE_TRAITS, GeglHandlersClass))
#define GEGL_IS_TILE_TRAITS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEGL_TYPE_TILE_TRAITS))
#define GEGL_IS_TILE_TRAITS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEGL_TYPE_TILE_TRAITS))
#define GEGL_HANDLERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEGL_TYPE_TILE_TRAITS, GeglHandlersClass))
struct _GeglHandlers
{
GeglHandler parent_object;
GeglHandler parent_instance;
GSList *chain;
};
......@@ -44,7 +40,7 @@ struct _GeglHandlersClass
GeglHandlerClass parent_class;
};
GType gegl_handlers_get_type (void) G_GNUC_CONST;
GType gegl_handlers_get_type (void) G_GNUC_CONST;
/* NOTE: gegl_handlers_add steals the initial assumed reference */
GeglHandler * gegl_handlers_add (GeglHandlers *handlers,
......@@ -52,6 +48,6 @@ GeglHandler * gegl_handlers_add (GeglHandlers *handlers,
/* returns the first matching handler of a specified type (or NULL) */
GeglHandler * gegl_handlers_get_first (GeglHandlers *handlers,
GType type);
GType type);
#endif
......@@ -15,10 +15,12 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifndef _GEGL_PROVIDER_H
#define _GEGL_PROVIDER_H
#include <glib.h>
#ifndef __GEGL_PROVIDER_H__
#define __GEGL_PROVIDER_H__
#include <glib-object.h>
#include <babl/babl.h>
#include "gegl-buffer-types.h"
#include "gegl-tile.h"
......@@ -50,12 +52,12 @@ enum _GeglTileMessage
struct _GeglProvider
{
GObject parent_instance;
GObject parent_instance;
};
struct _GeglProviderClass
{
GObjectClass parent_class;
GObjectClass parent_class;
GeglTile *(*get_tile) (GeglProvider *gegl_provider,
gint x,
......@@ -72,17 +74,17 @@ struct _GeglProviderClass
GType gegl_provider_get_type (void) G_GNUC_CONST;
GeglTile * gegl_provider_get_tile (GeglProvider *gegl_provider,
gint x,
gint y,
gint z);
GeglTile * gegl_provider_get_tile (GeglProvider *gegl_provider,
gint x,
gint y,
gint z);
gboolean gegl_provider_message (GeglProvider *gegl_provider,
GeglTileMessage message,
gint x,
gint y,
gint z,
gpointer data);
gboolean gegl_provider_message (GeglProvider *gegl_provider,
GeglTileMessage message,
gint x,
gint y,
gint z,
gpointer data);
G_END_DECLS
......
......@@ -24,13 +24,13 @@ Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
......@@ -47,7 +47,7 @@ SOFTWARE.
typedef GeglSegment GeglRegionBox;
/*
/*
* clip region
*/
......@@ -61,7 +61,7 @@ struct _GeglRegion
/* 1 if two BOXs overlap.
* 0 if two BOXs do not overlap.
* Remember, x2 and y2 are not in the region
* Remember, x2 and y2 are not in the region
*/
#define EXTENTCHECK(r1, r2) \
((r1)->x2 > (r2)->x1 && \
......@@ -91,7 +91,7 @@ struct _GeglRegion
else \
(reg)->rects = g_renew (GeglRegionBox, (reg)->rects, (nRects)); \
(reg)->size = (nRects); \
}
}
/*
* Check to see if there is enough memory in the present region.
......
......@@ -19,7 +19,7 @@
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
* file for a list of people on the GTK+ Team. See the ChangeLog
* files for a list of changes. These files are distributed with
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
#ifndef __GEGL_REGION_H__
......@@ -30,8 +30,6 @@
G_BEGIN_DECLS
struct _GeglSegment
{
gint x1;
......
......@@ -14,35 +14,37 @@
* License along with GEGL; if not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef _GEGL_SAMPLER_LANCZOS_H__
#define _GEGL_SAMPLER_LANCZOS_H__
#include <glib-object.h>
#include "gegl-types.h"
#ifndef __GEGL_SAMPLER_LANCZOS_H__
#define __GEGL_SAMPLER_LANCZOS_H__
#include "gegl-sampler.h"
G_BEGIN_DECLS
#define GEGL_TYPE_SAMPLER_LANCZOS (gegl_sampler_lanczos_get_type ())
#define GEGL_SAMPLER_LANCZOS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_SAMPLER_LANCZOS, GeglSamplerLanczos))
#define GEGL_SAMPLER_LANCZOS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEGL_TYPE_SAMPLER_LANCZOS, GeglSamplerLanczosClass))
#define GEGL_SAMPLER_LANCZOS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEGL_TYPE_SAMPLER_LANCZOS, GeglSamplerLanczosClass))
#define GEGL_TYPE_SAMPLER_LANCZOS (gegl_sampler_lanczos_get_type ())
#define GEGL_SAMPLER_LANCZOS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_SAMPLER_LANCZOS, GeglSamplerLanczos))
#define GEGL_SAMPLER_LANCZOS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEGL_TYPE_SAMPLER_LANCZOS, GeglSamplerLanczosClass))
#define GEGL_IS_SAMPLER_LANCZOS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEGL_TYPE_SAMPLER_LANCZOS))
#define GEGL_IS_SAMPLER_LANCZOS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEGL_TYPE_SAMPLER_LANCZOS))
#define GEGL_SAMPLER_LANCZOS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEGL_TYPE_SAMPLER_LANCZOS, GeglSamplerLanczosClass))
typedef struct _GeglSamplerLanczos GeglSamplerLanczos;
typedef struct _GeglSamplerLanczosClass GeglSamplerLanczosClass;
typedef struct _GeglSamplerLanczos GeglSamplerLanczos;
struct _GeglSamplerLanczos
{
GeglSampler parent_instance;
GeglSampler parent_instance;
/*< private >*/
gfloat *lanczos_lookup;
gint lanczos_width;
gint lanczos_spp;
gfloat *lanczos_lookup;
gint lanczos_width;
gint lanczos_spp;
};
typedef struct _GeglSamplerLanczosClass GeglSamplerLanczosClass;
struct _GeglSamplerLanczosClass
{
GeglSamplerClass parent_class;
GeglSamplerClass parent_class;
};
GType gegl_sampler_lanczos_get_type (void) G_GNUC_CONST;
......
......@@ -14,21 +14,24 @@
* License along with GEGL; if not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef _GEGL_SAMPLER_LINEAR_H__
#define _GEGL_SAMPLER_LINEAR_H__
#include <glib-object.h>
#include "gegl-types.h"
#ifndef __GEGL_SAMPLER_LINEAR_H__
#define __GEGL_SAMPLER_LINEAR_H__
#include "gegl-sampler.h"
G_BEGIN_DECLS
#define GEGL_TYPE_SAMPLER_LINEAR (gegl_sampler_linear_get_type ())
#define GEGL_SAMPLER_LINEAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_SAMPLER_LINEAR, GeglSamplerLinear))
#define GEGL_SAMPLER_LINEAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEGL_TYPE_SAMPLER_LINEAR, GeglSamplerLinearClass))
#define GEGL_SAMPLER_LINEAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEGL_TYPE_SAMPLER_LINEAR, GeglSamplerLinearClass))
#define GEGL_TYPE_SAMPLER_LINEAR (gegl_sampler_linear_get_type ())
#define GEGL_SAMPLER_LINEAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_SAMPLER_LINEAR, GeglSamplerLinear))
#define GEGL_SAMPLER_LINEAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEGL_TYPE_SAMPLER_LINEAR, GeglSamplerLinearClass))
#define GEGL_IS_SAMPLER_LINEAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEGL_TYPE_SAMPLER_LINEAR))
#define GEGL_IS_SAMPLER_LINEAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEGL_TYPE_SAMPLER_LINEAR))
#define GEGL_SAMPLER_LINEAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEGL_TYPE_SAMPLER_LINEAR, GeglSamplerLinearClass))
typedef struct _GeglSamplerLinear GeglSamplerLinear;
typedef struct _GeglSamplerLinearClass GeglSamplerLinearClass;
typedef struct _GeglSamplerLinear GeglSamplerLinear;
struct _GeglSamplerLinear
{
GeglSampler parent_instance;
......@@ -36,7 +39,6 @@ struct _GeglSamplerLinear
/*< private >*/
};
typedef struct _GeglSamplerLinearClass GeglSamplerLinearClass;
struct _GeglSamplerLinearClass
{
GeglSamplerClass parent_class;
......
......@@ -14,28 +14,30 @@
* License along with GEGL; if not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef _GEGL_SAMPLER_NEAREST_H__
#define _GEGL_SAMPLER_NEAREST_H__
#include <glib-object.h>
#include "gegl-types.h"
#ifndef __GEGL_SAMPLER_NEAREST_H__
#define __GEGL_SAMPLER_NEAREST_H__
#include "gegl-sampler.h"
G_BEGIN_DECLS
#define GEGL_TYPE_SAMPLER_NEAREST (gegl_sampler_nearest_get_type ())
#define GEGL_SAMPLER_NEAREST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_SAMPLER_NEAREST, GeglSamplerNearest))
#define GEGL_SAMPLER_NEAREST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEGL_TYPE_SAMPLER_NEAREST, GeglSamplerNearestClass))
#define GEGL_SAMPLER_NEAREST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEGL_TYPE_SAMPLER_NEAREST, GeglSamplerNearestClass))
#define GEGL_TYPE_SAMPLER_NEAREST (gegl_sampler_nearest_get_type ())
#define GEGL_SAMPLER_NEAREST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_SAMPLER_NEAREST, GeglSamplerNearest))
#define GEGL_SAMPLER_NEAREST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEGL_TYPE_SAMPLER_NEAREST, GeglSamplerNearestClass))
#define GEGL_IS_SAMPLER_NEAREST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEGL_TYPE_SAMPLER_NEAREST))
#define GEGL_IS_SAMPLER_NEAREST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEGL_TYPE_SAMPLER_NEAREST))
#define GEGL_SAMPLER_NEAREST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEGL_TYPE_SAMPLER_NEAREST, GeglSamplerNearestClass))
typedef struct _GeglSamplerNearest GeglSamplerNearest;
typedef struct _GeglSamplerNearestClass GeglSamplerNearestClass;
typedef struct _GeglSamplerNearest GeglSamplerNearest;
struct _GeglSamplerNearest
{
GeglSampler parent_instance;
/*< private >*/
};
typedef struct _GeglSamplerNearestClass GeglSamplerNearestClass;
struct _GeglSamplerNearestClass
{
GeglSamplerClass parent_class;
......
......@@ -14,28 +14,30 @@
* License along with GEGL; if not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef _GEGL_SAMPLER_H__
#define _GEGL_SAMPLER_H__
#ifndef __GEGL_SAMPLER_H__
#define __GEGL_SAMPLER_H__
#include <glib-object.h>
#include <babl/babl.h>
#include "gegl-types.h"
#include "buffer/gegl-buffer-types.h"
#include <babl/babl.h>
G_BEGIN_DECLS
#define GEGL_TYPE_SAMPLER (gegl_sampler_get_type ())
#define GEGL_SAMPLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_SAMPLER, GeglSampler))
#define GEGL_SAMPLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEGL_TYPE_SAMPLER, GeglSamplerClass))