GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_resize_cubic.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2/*
3 * Copyright (C) 2009-2013 Cyril Hrubis <metan@ucw.cz>
4 */
5
6/*
7
8 Bicubic interpolation.
9
10 */
11
12#ifndef FILTERS_GP_RESIZE_CUBIC_H
13#define FILTERS_GP_RESIZE_CUBIC_H
14
15#include <filters/gp_filter.h>
16#include <filters/gp_resize.h>
17
18int gp_filter_resize_cubic_int(const gp_pixmap *src, gp_pixmap *dst,
19 gp_progress_cb *callback);
20
21int gp_filter_resize_cubic(const gp_pixmap *src, gp_pixmap *dst,
22 gp_progress_cb *callback);
23
24static inline gp_pixmap *gp_filter_resize_cubic_int_alloc(const gp_pixmap *src,
25 gp_size w, gp_size h,
26 gp_progress_cb *callback)
27{
28 return gp_filter_resize_alloc(src, w, h, GP_INTERP_CUBIC_INT, callback);
29}
30
31static inline gp_pixmap *gp_filter_resize_cubic_alloc(const gp_pixmap *src,
32 gp_size w, gp_size h,
33 gp_progress_cb *callback)
34{
35 return gp_filter_resize_alloc(src, w, h, GP_INTERP_CUBIC, callback);
36}
37
38#endif /* FILTERS_GP_RESIZE_CUBIC_H */
unsigned int gp_size
Integer type for sizes i.e. w, h, ...
Definition gp_types.h:24
Common filter includes.
A pixmap buffer.
Definition gp_pixmap.h:33
Progress callback.