From e16e59230257e7a7efb667bdaae494472af56a8f Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sun, 9 Jun 2019 12:43:51 +0100 Subject: [PATCH] Move enum blur_method to backend.h Signed-off-by: Yuxuan Shui --- src/backend/backend.h | 22 ++++++++++++++++++++++ src/config.h | 9 +-------- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/src/backend/backend.h b/src/backend/backend.h index 37c55d1..b08dafb 100644 --- a/src/backend/backend.h +++ b/src/backend/backend.h @@ -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 =========== diff --git a/src/config.h b/src/config.h index f359a33..e00e489 100644 --- a/src/config.h +++ b/src/config.h @@ -19,6 +19,7 @@ #include #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;