Home
last modified time | relevance | path

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

/external/ImageMagick/MagickCore/
Dopencl.c200 static inline void RelinquishMagickCLDevices(MagickCLEnv clEnv) in RelinquishMagickCLDevices() argument
205 if (clEnv->devices != (MagickCLDevice *) NULL) in RelinquishMagickCLDevices()
207 for (i = 0; i < clEnv->number_devices; i++) in RelinquishMagickCLDevices()
208 clEnv->devices[i]=RelinquishMagickCLDevice(clEnv->devices[i]); in RelinquishMagickCLDevices()
209 clEnv->devices=(MagickCLDevice *) RelinquishMagickMemory(clEnv->devices); in RelinquishMagickCLDevices()
211 clEnv->number_devices=0; in RelinquishMagickCLDevices()
377 static void SelectOpenCLDevice(MagickCLEnv clEnv,cl_device_type type) in SelectOpenCLDevice() argument
386 for (i = 0; i < clEnv->number_devices; i++) in SelectOpenCLDevice()
387 clEnv->devices[i]->enabled=MagickFalse; in SelectOpenCLDevice()
389 for (i = 0; i < clEnv->number_devices; i++) in SelectOpenCLDevice()
[all …]
Daccelerate.c221 clEnv; in getOpenCLEnvironment() local
223 clEnv=GetCurrentOpenCLEnv(); in getOpenCLEnvironment()
224 if (clEnv == (MagickCLEnv) NULL) in getOpenCLEnvironment()
227 if (clEnv->enabled == MagickFalse) in getOpenCLEnvironment()
230 if (InitializeOpenCL(clEnv,exception) == MagickFalse) in getOpenCLEnvironment()
233 return(clEnv); in getOpenCLEnvironment()
312 static MagickBooleanType LaunchHistogramKernel(MagickCLEnv clEnv, in LaunchHistogramKernel() argument
355 clStatus=clEnv->library->clSetKernelArg(histogramKernel,i++,sizeof(cl_mem),(void *)&imageBuffer); in LaunchHistogramKernel()
356 clStatus|=clEnv->library->clSetKernelArg(histogramKernel,i++,sizeof(ChannelType),&channel); in LaunchHistogramKernel()
357 clStatus|=clEnv->library->clSetKernelArg(histogramKernel,i++,sizeof(cl_uint),&colorspace); in LaunchHistogramKernel()
[all …]