Move enum blur_method to backend.h

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-06-09 12:43:51 +01:00
parent 8e0b467138
commit e16e592302
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
2 changed files with 23 additions and 8 deletions

View File

@ -48,6 +48,28 @@ enum image_operations {
IMAGE_OP_RESIZE_TILE,
};
enum blur_method {
BLUR_METHOD_NONE = 0,
BLUR_METHOD_KERNEL,
BLUR_METHOD_BOX,
BLUR_METHOD_GAUSSIAN,
BLUR_METHOD_INVALID,
};
struct gaussian_kernel_args {
int size;
double deviation;
};
struct box_kernel_args {
int size;
};
struct kernel_args {
struct conv **kernels;
int kernel_count;
};
struct backend_operations {
// =========== Initialization ===========

View File

@ -19,6 +19,7 @@
#include <libconfig.h>
#endif
#include "backend/backend.h"
#include "compiler.h"
#include "kernel.h"
#include "log.h"
@ -36,14 +37,6 @@ enum backend {
NUM_BKEND,
};
enum blur_method {
BLUR_METHOD_NONE = 0,
BLUR_METHOD_KERNEL,
BLUR_METHOD_BOX,
BLUR_METHOD_GAUSSIAN,
BLUR_METHOD_INVALID,
};
typedef struct win_option_mask {
bool shadow : 1;
bool fade : 1;