Move enum blur_method to backend.h
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
8e0b467138
commit
e16e592302
|
@ -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 ===========
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue