2016-10-14 22:06:43 -04:00
|
|
|
#ifndef _BLUR_H
|
|
|
|
#define _BLUR_H
|
|
|
|
|
2016-10-22 08:32:35 -04:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <cairo.h>
|
|
|
|
|
2017-12-06 13:57:07 -05:00
|
|
|
#define KERNEL_SIZE 7
|
|
|
|
#define SIGMA_AV 2
|
|
|
|
#define HALF_KERNEL KERNEL_SIZE / 2
|
|
|
|
|
|
|
|
void blur_image_surface(cairo_surface_t *surface, int sigma);
|
2017-12-07 16:09:13 -05:00
|
|
|
#ifdef __SSE2__
|
2017-12-06 13:57:07 -05:00
|
|
|
void blur_impl_horizontal_pass_sse2(uint32_t *src, uint32_t *dst, int width, int height);
|
2017-12-07 16:09:13 -05:00
|
|
|
#endif
|
2017-12-06 13:57:07 -05:00
|
|
|
void blur_impl_horizontal_pass_generic(uint32_t *src, uint32_t *dst, int width, int height);
|
2016-10-14 22:06:43 -04:00
|
|
|
#endif
|