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>
|
|
|
|
|
2016-10-14 22:06:43 -04:00
|
|
|
void blur_image_surface (cairo_surface_t *surface, int radius);
|
2016-10-22 08:32:35 -04:00
|
|
|
void blur_impl_naive(uint32_t* src, uint32_t* dst, int width, int height, int src_stride, int dst_stride, int radius);
|
2016-10-22 09:30:27 -04:00
|
|
|
void blur_impl_sse2(uint32_t* src, uint32_t* dst, int width, int height, float sigma);
|
|
|
|
void blur_impl_horizontal_pass_sse2(uint32_t *src, uint32_t *dst, float *kernel, int width, int height);
|
2016-10-29 08:32:49 -04:00
|
|
|
void blur_impl_ssse3(uint32_t* src, uint32_t* dst, int width, int height, float sigma);
|
|
|
|
void blur_impl_horizontal_pass_ssse3(uint32_t *src, uint32_t *dst, int8_t *kernel, int width, int height);
|
2016-10-14 22:06:43 -04:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|