MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / getImageResources

Method getImageResources

src/backend/common/InteropManager.hpp:43–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 res_vec_t getImageResources(const fg_window image) {
44 if (mInteropMap.find(image) == mInteropMap.end()) {
45 uint32_t buffer;
46 FG_CHECK(common::forgePlugin().fg_get_pixel_buffer(&buffer, image));
47 mInteropMap[image] =
48 static_cast<T *>(this)->registerResources({buffer});
49 }
50 return mInteropMap[image];
51 }
52
53 res_vec_t getPlotResources(const fg_plot plot) {
54 if (mInteropMap.find(plot) == mInteropMap.end()) {

Callers 2

copy_imageFunction · 0.80
copy_imageFunction · 0.80

Calls 2

findMethod · 0.80
registerResourcesMethod · 0.45

Tested by

no test coverage detected