1 /* LIBGIMP - The GIMP Library
2 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
4 * This library is free software: you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 3 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see
16 * <https://www.gnu.org/licenses/>.
19 #if !defined (__GIMP_COLOR_H_INSIDE__) && !defined (GIMP_COLOR_COMPILATION)
20 #error "Only <libgimpcolor/gimpcolor.h> can be included directly."
23 #ifndef __GIMP_BILINEAR_H__
24 #define __GIMP_BILINEAR_H__
28 /* For information look into the C source or the html documentation */
31 /* bilinear interpolation functions taken from LibGCK */
34 gdouble
gimp_bilinear (gdouble x
,
37 guchar
gimp_bilinear_8 (gdouble x
,
40 guint16
gimp_bilinear_16 (gdouble x
,
43 guint32
gimp_bilinear_32 (gdouble x
,
46 GimpRGB
gimp_bilinear_rgb (gdouble x
,
49 GimpRGB
gimp_bilinear_rgba (gdouble x
,
56 #endif /* __GIMP_BILINEAR_H__ */