GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_blur.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later
2/*
3 * Copyright (C) 2009-2012 Cyril Hrubis <metan@ucw.cz>
4 */
5
13#ifndef FILTERS_GP_BLUR_H
14#define FILTERS_GP_BLUR_H
15
16#include <filters/gp_filter.h>
17
25 gp_coord x_src, gp_coord y_src,
26 gp_size w_src, gp_size h_src,
27 gp_pixmap *dst,
28 gp_coord x_dst, gp_coord y_dst,
29 float x_sigma, float y_sigma,
30 gp_progress_cb *callback);
31
32gp_pixmap *gp_filter_gaussian_blur_ex_alloc(const gp_pixmap *src,
33 gp_coord x_src, gp_coord y_src,
34 gp_size w_src, gp_size h_src,
35 float x_sigma, float y_sigma,
36 gp_progress_cb *callback);
37
38static inline int gp_filter_gaussian_blur(const gp_pixmap *src, gp_pixmap *dst,
39 float x_sigma, float y_sigma,
40 gp_progress_cb *callback)
41{
42 return gp_filter_gaussian_blur_ex(src, 0, 0, src->w, src->h, dst, 0, 0,
43 x_sigma, y_sigma, callback);
44}
45
46static inline gp_pixmap *gp_filter_gaussian_blur_alloc(const gp_pixmap *src,
47 float x_sigma, float y_sigma,
48 gp_progress_cb *callback)
49{
50 return gp_filter_gaussian_blur_ex_alloc(src, 0, 0, src->w, src->h,
51 x_sigma, y_sigma, callback);
52}
53
54#endif /* FILTERS_GP_BLUR_H */
int gp_coord
Integer type for coordinates i.e. x, y, ...
Definition gp_types.h:19
unsigned int gp_size
Integer type for sizes i.e. w, h, ...
Definition gp_types.h:24
int gp_filter_gaussian_blur_ex(const gp_pixmap *src, gp_coord x_src, gp_coord y_src, gp_size w_src, gp_size h_src, gp_pixmap *dst, gp_coord x_dst, gp_coord y_dst, float x_sigma, float y_sigma, gp_progress_cb *callback)
Common filter includes.
A pixmap buffer.
Definition gp_pixmap.h:33
uint32_t h
Pixmap height in pixels.
Definition gp_pixmap.h:46
uint32_t w
Pixmap width in pixels.
Definition gp_pixmap.h:44
Progress callback.