32 #ifndef LIBAVUTIL_OPENCL_H
33 #define LIBAVUTIL_OPENCL_H
39 #include <OpenCL/cl.h>
46 #define AV_OPENCL_KERNEL( ... )# __VA_ARGS__
48 #define AV_OPENCL_MAX_KERNEL_NAME_SIZE 150
50 #define AV_OPENCL_MAX_DEVICE_NAME_SIZE 100
52 #define AV_OPENCL_MAX_PLATFORM_NAME_SIZE 100
74 cl_command_queue command_queue;
190 #if FF_API_OLD_OPENCL
200 int av_opencl_create_kernel(AVOpenCLKernelEnv *env,
const char *kernel_name);
272 uint8_t **src_data,
int *plane_size,
int plane_num);
285 cl_mem src_cl_buf,
size_t cl_buffer_size);
295 #if FF_API_OLD_OPENCL
303 void av_opencl_release_kernel(AVOpenCLKernelEnv *env);