aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/unsharp.h
diff options
context:
space:
mode:
authorLenny Wang <lwanghpc@gmail.com>2013-11-07 15:15:49 -0600
committerMichael Niedermayer <michaelni@gmx.at>2013-11-07 22:31:43 +0100
commit7c02a77d250ff24514e029d931f7bc16b3810504 (patch)
treecac27c9c9e9621fa34032fd884e118b974484c83 /libavfilter/unsharp.h
parentf9c6044a6f61ba1bc93bb8e54d5105e6a97e9815 (diff)
downloadffmpeg-7c02a77d250ff24514e029d931f7bc16b3810504.tar.gz
avfilter/unsharp: added optimized opencl kernels
Reviewed-by: Wei Gao <highgod0401@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/unsharp.h')
-rw-r--r--libavfilter/unsharp.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavfilter/unsharp.h b/libavfilter/unsharp.h
index 2738243cea..867892085d 100644
--- a/libavfilter/unsharp.h
+++ b/libavfilter/unsharp.h
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2013 Wei Gao <weigao@multicorewareinc.com>
+ * Copyright (C) 2013 Lenny Wang
*
* This file is part of FFmpeg.
*
@@ -35,7 +36,9 @@
typedef struct {
cl_command_queue command_queue;
cl_program program;
- cl_kernel kernel;
+ cl_kernel kernel_default;
+ cl_kernel kernel_luma;
+ cl_kernel kernel_chroma;
cl_mem cl_luma_mask;
cl_mem cl_chroma_mask;
int in_plane_size[8];
@@ -45,6 +48,7 @@ typedef struct {
size_t cl_inbuf_size;
cl_mem cl_outbuf;
size_t cl_outbuf_size;
+ int use_fast_kernels;
} UnsharpOpenclContext;
#endif