2016-10-15 02:06:43 +00:00
|
|
|
#ifndef _BLUR_H
|
|
|
|
#define _BLUR_H
|
|
|
|
|
2016-10-22 12:32:35 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <cairo.h>
|
|
|
|
|
2017-02-15 10:22:06 +00:00
|
|
|
#define KERNEL_SIZE 7
|
|
|
|
#define SIGMA_AV 2
|
|
|
|
#define HALF_KERNEL KERNEL_SIZE / 2
|
|
|
|
|
2017-02-15 11:01:08 +00:00
|
|
|
void blur_image_surface(cairo_surface_t *surface, int sigma);
|
2016-11-11 17:45:20 +00:00
|
|
|
void blur_impl_horizontal_pass_sse2(uint32_t *src, uint32_t *dst, int width, int height);
|
2017-02-15 10:22:06 +00:00
|
|
|
void blur_impl_horizontal_pass_generic(uint32_t *src, uint32_t *dst, int width, int height);
|
2016-11-04 21:19:29 +00:00
|
|
|
|
2016-10-15 02:06:43 +00:00
|
|
|
#endif
|
|
|
|
|