summaryrefslogtreecommitdiff
path: root/libavfilter/unsharp.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-11-14 19:47:30 +0000
committerMark Thompson <sw@jkqxz.net>2017-11-22 23:20:39 +0000
commit3650cb2dfa644ff4260d226b783747ff9e020ad1 (patch)
tree1b92fbbab947bc521191cce297462b102f48badf /libavfilter/unsharp.h
parent0f93cef2d6405f07b42719506cbde30f07dd8702 (diff)
downloadffmpeg-3650cb2dfa644ff4260d226b783747ff9e020ad1.tar.gz
lavu,lavfi,ffmpeg: Remove experimental OpenCL API
This was added in early 2013 and abandoned several months later; as far as I can tell, there are no external users. Future OpenCL use will be via hwcontext, which requires neither special OpenCL-only API nor global state in libavutil. All internal users are also deleted - this is just the unsharp filter (replaced by unsharp_opencl, which is more flexible) and the deshake filter (no replacement).
Diffstat (limited to 'libavfilter/unsharp.h')
-rw-r--r--libavfilter/unsharp.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/libavfilter/unsharp.h b/libavfilter/unsharp.h
index 340a6a0caf..caff986fc1 100644
--- a/libavfilter/unsharp.h
+++ b/libavfilter/unsharp.h
@@ -24,38 +24,10 @@
#include "config.h"
#include "avfilter.h"
-#if CONFIG_OPENCL
-#include "libavutil/opencl.h"
-#endif
#define MIN_MATRIX_SIZE 3
#define MAX_MATRIX_SIZE 63
-#if CONFIG_OPENCL
-
-typedef struct UnsharpOpenclContext {
- cl_command_queue command_queue;
- cl_program program;
- cl_kernel kernel_default;
- cl_kernel kernel_luma;
- cl_kernel kernel_chroma;
- cl_mem cl_luma_mask;
- cl_mem cl_chroma_mask;
- cl_mem cl_luma_mask_x;
- cl_mem cl_chroma_mask_x;
- cl_mem cl_luma_mask_y;
- cl_mem cl_chroma_mask_y;
- int in_plane_size[8];
- int out_plane_size[8];
- int plane_num;
- cl_mem cl_inbuf;
- size_t cl_inbuf_size;
- cl_mem cl_outbuf;
- size_t cl_outbuf_size;
- int use_fast_kernels;
-} UnsharpOpenclContext;
-
-#endif
typedef struct UnsharpFilterParam {
int msize_x; ///< matrix width
@@ -76,9 +48,6 @@ typedef struct UnsharpContext {
UnsharpFilterParam chroma; ///< chroma parameters (width, height, amount)
int hsub, vsub;
int opencl;
-#if CONFIG_OPENCL
- UnsharpOpenclContext opencl_ctx;
-#endif
int (* apply_unsharp)(AVFilterContext *ctx, AVFrame *in, AVFrame *out);
} UnsharpContext;