OpenCL wrapper. More...
Go to the source code of this file.
OpenCL wrapper.
This interface is considered still experimental and its API and ABI may change without prior notice.
Definition in file opencl.h.
Definition at line 44 of file opencl.h.
Referenced by av_opencl_create_kernel().
Get OpenCL device list.
It must be freed with av_opencl_free_device_list().
Free OpenCL device list.
Set option in the global OpenCL context.
This options affect the operation performed by the next av_opencl_init() operation.
The currently accepted options are:
See reference "OpenCL Specification Version: 1.2 chapter 5.6.4".
Get option value from the global OpenCL context.
Allocate OpenCL external environment.
It must be freed with av_opencl_free_external_env().
Free OpenCL external environment.
Get OpenCL error string.
Definition at line 166 of file opencl.c.
Referenced by av_opencl_buffer_create(), av_opencl_buffer_read(), av_opencl_buffer_read_image(), av_opencl_buffer_release(), av_opencl_buffer_write(), av_opencl_buffer_write_image(), av_opencl_create_kernel(), av_opencl_release_kernel(), av_opencl_uninit(), compile_kernel_file(), ff_opencl_apply_unsharp(), ff_opencl_set_parameter(), ff_opencl_transform(), get_device_list(), and init_opencl_env().
Register kernel code.
The registered kernel code is stored in a global context, and compiled in the runtime environment when av_opencl_init() is called.
Initialize the run time OpenCL environment and compile the kernel code registered with av_opencl_register_kernel_code().
Definition at line 588 of file opencl.c.
Referenced by ff_opencl_deshake_init(), and ff_opencl_unsharp_init().
Create kernel object in the specified kernel environment.
Definition at line 391 of file opencl.c.
Referenced by ff_opencl_deshake_init(), and ff_opencl_unsharp_init().
Create OpenCL buffer.
The buffer is used to save the data used or created by an OpenCL kernel. The created buffer must be released with av_opencl_buffer_release().
See clCreateBuffer() function reference for more information about the parameters.
Definition at line 660 of file opencl.c.
Referenced by ff_opencl_deshake_init(), ff_opencl_deshake_process_inout_buf(), ff_opencl_unsharp_init(), and ff_opencl_unsharp_process_inout_buf().
Write OpenCL buffer with data from src_buf.
Definition at line 684 of file opencl.c.
Referenced by compute_mask_matrix(), and ff_opencl_transform().
Read data from OpenCL buffer to memory buffer.
Write image data from memory to OpenCL buffer.
The source must be an array of pointers to image plane buffers.
Definition at line 730 of file opencl.c.
Referenced by ff_opencl_deshake_process_inout_buf(), and ff_opencl_unsharp_process_inout_buf().
Read image data from OpenCL buffer.
Definition at line 771 of file opencl.c.
Referenced by ff_opencl_apply_unsharp(), and ff_opencl_transform().
Release OpenCL buffer.
Definition at line 671 of file opencl.c.
Referenced by ff_opencl_deshake_uninit(), and ff_opencl_unsharp_uninit().
Release kernel object.
Definition at line 433 of file opencl.c.
Referenced by ff_opencl_deshake_uninit(), and ff_opencl_unsharp_uninit().
Release OpenCL environment.
The OpenCL environment is effectively released only if all the created kernels had been released with av_opencl_release_kernel().
Definition at line 617 of file opencl.c.
Referenced by ff_opencl_deshake_uninit(), and ff_opencl_unsharp_uninit().