libvips/libvips/histogram/hist_unary.h

76 lines
2.0 KiB
C
Raw Normal View History

2013-09-03 15:49:57 +02:00
/* base class for all hist_unary operations
2013-08-13 16:09:36 +02:00
*/
/*
Copyright (C) 1991-2005 The National Gallery
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 2.1 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 this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA
*/
/*
These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
*/
2013-09-03 15:49:57 +02:00
#ifndef VIPS_PHIST_UNARY_H
#define VIPS_PHIST_UNARY_H
2013-08-13 16:09:36 +02:00
#ifdef __cplusplus
extern "C" {
#endif /*__cplusplus*/
#include <vips/vector.h>
2013-09-03 15:49:57 +02:00
#define VIPS_TYPE_HIST_UNARY (vips_hist_unary_get_type())
#define VIPS_HIST_UNARY( obj ) \
2013-08-13 16:09:36 +02:00
(G_TYPE_CHECK_INSTANCE_CAST( (obj), \
2013-09-03 15:49:57 +02:00
VIPS_TYPE_HIST_UNARY, VipsHistUnary ))
#define VIPS_HIST_UNARY_CLASS( klass ) \
2013-08-13 16:09:36 +02:00
(G_TYPE_CHECK_CLASS_CAST( (klass), \
2013-09-03 15:49:57 +02:00
VIPS_TYPE_HIST_UNARY, VipsHistUnaryClass))
#define VIPS_IS_HIST_UNARY( obj ) \
(G_TYPE_CHECK_INSTANCE_TYPE( (obj), VIPS_TYPE_HIST_UNARY ))
#define VIPS_IS_HIST_UNARY_CLASS( klass ) \
(G_TYPE_CHECK_CLASS_TYPE( (klass), VIPS_TYPE_HIST_UNARY ))
#define VIPS_HIST_UNARY_GET_CLASS( obj ) \
2013-08-13 16:09:36 +02:00
(G_TYPE_INSTANCE_GET_CLASS( (obj), \
2013-09-03 15:49:57 +02:00
VIPS_TYPE_HIST_UNARY, VipsHistUnaryClass ))
2013-08-13 16:09:36 +02:00
2013-09-03 15:49:57 +02:00
typedef struct _VipsHistUnary {
2013-08-13 16:09:36 +02:00
VipsHistogram parent_instance;
2013-09-03 15:49:57 +02:00
VipsImage *in;
2013-08-13 16:09:36 +02:00
2013-09-03 15:49:57 +02:00
} VipsHistUnary;
2013-08-13 16:09:36 +02:00
2013-09-03 15:49:57 +02:00
typedef struct _VipsHistUnaryClass {
VipsHistogramClass parent_class;
2013-08-13 16:09:36 +02:00
2013-09-03 15:49:57 +02:00
} VipsHistUnaryClass;
2013-08-13 16:09:36 +02:00
2013-09-03 15:49:57 +02:00
GType vips_hist_unary_get_type( void );
2013-08-13 16:09:36 +02:00
#ifdef __cplusplus
}
#endif /*__cplusplus*/
2013-09-03 15:49:57 +02:00
#endif /*VIPS_PHIST_UNARY_H*/
2013-08-13 16:09:36 +02:00