#ifndef AVFILTER_OPENCL_H
#define AVFILTER_OPENCL_H
+// The intended target is OpenCL 1.2, so disable warnings for APIs
+// deprecated after that. This primarily applies to clCreateCommandQueue(),
+// we can't use the replacement clCreateCommandQueueWithProperties() because
+// it was introduced in OpenCL 2.0.
+#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
+
#include "libavutil/buffer.h"
#include "libavutil/hwcontext.h"
#include "libavutil/hwcontext_opencl.h"
int ff_opencl_filter_load_program_from_file(AVFilterContext *avctx,
const char *filename);
+/**
+ * Find the work size needed needed for a given plane of an image.
+ */
+int ff_opencl_filter_work_size_from_image(AVFilterContext *avctx,
+ size_t *work_size,
+ AVFrame *frame, int plane,
+ int block_alignment);
+
#endif /* AVFILTER_OPENCL_H */