Rename blur kernel parameter types
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
c1b2ce1fce
commit
1eba43f888
@ -56,16 +56,16 @@ enum blur_method {
|
|||||||
BLUR_METHOD_INVALID,
|
BLUR_METHOD_INVALID,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct gaussian_kernel_args {
|
struct gaussian_blur_args {
|
||||||
int size;
|
int size;
|
||||||
double deviation;
|
double deviation;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct box_kernel_args {
|
struct box_blur_args {
|
||||||
int size;
|
int size;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct kernel_args {
|
struct kernel_blur_args {
|
||||||
struct conv **kernels;
|
struct conv **kernels;
|
||||||
int kernel_count;
|
int kernel_count;
|
||||||
};
|
};
|
||||||
@ -226,4 +226,3 @@ extern struct backend_operations *backend_list[];
|
|||||||
void paint_all_new(session_t *ps, struct managed_win *const t, bool ignore_damage)
|
void paint_all_new(session_t *ps, struct managed_win *const t, bool ignore_damage)
|
||||||
attr_nonnull(1);
|
attr_nonnull(1);
|
||||||
|
|
||||||
// vim: set noet sw=8 ts=8 :
|
|
||||||
|
@ -281,7 +281,7 @@ default_backend_render_shadow(backend_t *backend_data, int width, int height,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static struct conv **
|
static struct conv **
|
||||||
generate_box_blur_kernel(struct box_kernel_args *args, int *kernel_count) {
|
generate_box_blur_kernel(struct box_blur_args *args, int *kernel_count) {
|
||||||
int r = args->size * 2 + 1;
|
int r = args->size * 2 + 1;
|
||||||
assert(r > 0);
|
assert(r > 0);
|
||||||
auto ret = ccalloc(2, struct conv *);
|
auto ret = ccalloc(2, struct conv *);
|
||||||
@ -300,7 +300,7 @@ generate_box_blur_kernel(struct box_kernel_args *args, int *kernel_count) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static struct conv **
|
static struct conv **
|
||||||
generate_gaussian_blur_kernel(struct gaussian_kernel_args *args, int *kernel_count) {
|
generate_gaussian_blur_kernel(struct gaussian_blur_args *args, int *kernel_count) {
|
||||||
int r = args->size * 2 + 1;
|
int r = args->size * 2 + 1;
|
||||||
assert(r > 0);
|
assert(r > 0);
|
||||||
auto ret = ccalloc(2, struct conv *);
|
auto ret = ccalloc(2, struct conv *);
|
||||||
|
Loading…
Reference in New Issue
Block a user