33 if (!opencl_param->
kernel) {
37 va_start(arg_ptr, opencl_param);
39 param = va_arg(arg_ptr,
void *);
42 param_size = va_arg(arg_ptr,
size_t);
48 status = clSetKernelArg(opencl_param->
kernel, opencl_param->
param_num, param_size, param);
49 if (status != CL_SUCCESS) {
55 }
while (param && param_size);
const char * av_opencl_errstr(cl_int status)
Get OpenCL error string.
static av_cold int end(AVCodecContext *avctx)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int avpriv_opencl_set_parameter(FFOpenclParam *opencl_param,...)
#define AVERROR_EXTERNAL
Generic error in an external library.