MCPcopy Create free account
hub / github.com/CRVI/OpenCLIPP / ocipCreateImage

Function ocipCreateImage

OpenCLIPP/OpenCLIPP.cpp:178–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176
177
178ocipError ocip_API ocipCreateImage(ocipImage * ImagePtr, SImage image, void * ImageData, cl_mem_flags flags)
179{
180 COpenCL * CL = g_CurrentContext;
181
182 if (CL == nullptr)
183 return CL_INVALID_CONTEXT;
184
185 H( if (image.Channels == 3)
186 *ImagePtr = (ocipImage) new ColorImage(*CL, image, ImageData);
187 else
188 *ImagePtr = (ocipImage) new Image(*CL, image, ImageData, flags);
189 )
190}
191
192ocipError ocip_API ocipSendImage(ocipImage image)
193{

Callers 11

mainFunction · 0.85
AbsDiffFunction · 0.85
FindMaxFunction · 0.85
CreateMethod · 0.85
CreateMethod · 0.85
CreateMethod · 0.85
CreateMethod · 0.85
CreateMethod · 0.85
CreateMethod · 0.85
CreateMethod · 0.85
CreateMethod · 0.85

Calls 2

HFunction · 0.85
ifFunction · 0.85

Tested by 1

mainFunction · 0.68