GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
include
filters
gp_resize_nn.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
Nearest neighbour interpolation.
9
10
*/
11
12
#ifndef FILTERS_GP_RESIZE_NN_H
13
#define FILTERS_GP_RESIZE_NN_H
14
15
#include <
filters/gp_filter.h
>
16
#include <filters/gp_resize.h>
17
18
int
gp_filter_resize_nn(
const
gp_pixmap
*src,
gp_pixmap
*dst,
19
gp_progress_cb
*callback);
20
21
static
inline
gp_pixmap
*gp_filter_resize_nn_alloc(
const
gp_pixmap
*src,
22
gp_size
w,
gp_size
h,
23
gp_progress_cb
*callback)
24
{
25
return
gp_filter_resize_alloc(src, w, h, GP_INTERP_NN, callback);
26
}
27
28
#endif
/* FILTERS_GP_RESIZE_NN_H */
gp_size
unsigned int gp_size
Integer type for sizes i.e. w, h, ...
Definition
gp_types.h:24
gp_filter.h
Common filter includes.
gp_pixmap
A pixmap buffer.
Definition
gp_pixmap.h:33
gp_progress_cb
Progress callback.
Definition
gp_progress_callback.h:28
Generated by
1.9.8