Home
last modified time | relevance | path

Searched refs:clEnv (Results 1 – 2 of 2) sorted by relevance

/external/ImageMagick/MagickCore/
Dopencl.c193 static inline void RelinquishMagickCLDevices(MagickCLEnv clEnv) in RelinquishMagickCLDevices() argument
198 if (clEnv->devices != (MagickCLDevice *) NULL) in RelinquishMagickCLDevices()
200 for (i = 0; i < clEnv->number_devices; i++) in RelinquishMagickCLDevices()
201 clEnv->devices[i]=RelinquishMagickCLDevice(clEnv->devices[i]); in RelinquishMagickCLDevices()
202 clEnv->devices=(MagickCLDevice *) RelinquishMagickMemory(clEnv->devices); in RelinquishMagickCLDevices()
204 clEnv->number_devices=0; in RelinquishMagickCLDevices()
370 static void SelectOpenCLDevice(MagickCLEnv clEnv,cl_device_type type) in SelectOpenCLDevice() argument
379 for (i = 0; i < clEnv->number_devices; i++) in SelectOpenCLDevice()
380 clEnv->devices[i]->enabled=MagickFalse; in SelectOpenCLDevice()
382 for (i = 0; i < clEnv->number_devices; i++) in SelectOpenCLDevice()
[all …]
Daccelerate.c214 clEnv; in getOpenCLEnvironment() local
216 clEnv=GetCurrentOpenCLEnv(); in getOpenCLEnvironment()
217 if (clEnv == (MagickCLEnv) NULL) in getOpenCLEnvironment()
220 if (clEnv->enabled == MagickFalse) in getOpenCLEnvironment()
223 if (InitializeOpenCL(clEnv,exception) == MagickFalse) in getOpenCLEnvironment()
226 return(clEnv); in getOpenCLEnvironment()
301 static MagickBooleanType LaunchHistogramKernel(MagickCLEnv clEnv, in LaunchHistogramKernel() argument
344 clStatus=clEnv->library->clSetKernelArg(histogramKernel,i++,sizeof(cl_mem),(void *)&imageBuffer); in LaunchHistogramKernel()
345 clStatus|=clEnv->library->clSetKernelArg(histogramKernel,i++,sizeof(ChannelType),&channel); in LaunchHistogramKernel()
346 clStatus|=clEnv->library->clSetKernelArg(histogramKernel,i++,sizeof(cl_uint),&colorspace); in LaunchHistogramKernel()
[all …]