mirror of
https://github.com/jtheoof/swappy.git
synced 2024-09-11 14:55:49 +03:00
- Fix blur logic - Reused rendered surface to optimize future render on comitted blur - Include gaussian kernel function Closes #20 Closes #22
14 lines
236 B
C
14 lines
236 B
C
#pragma once
|
|
|
|
#include <glib.h>
|
|
|
|
struct gaussian_kernel {
|
|
gdouble *kernel;
|
|
gint size;
|
|
gdouble sigma;
|
|
gdouble sum;
|
|
};
|
|
|
|
struct gaussian_kernel *gaussian_kernel(gint width, gdouble sigma);
|
|
void gaussian_kernel_free(gpointer data);
|