MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / WrapExternalBuffer

Method WrapExternalBuffer

python/mod_cvcuda/nvcv/Image.cpp:582–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580}
581
582std::shared_ptr<Image> Image::WrapExternalBuffer(ExternalBuffer &buffer, nvcv::ImageFormat fmt)
583{
584 py::object obj = py::cast(buffer.shared_from_this());
585 return WrapExternalBufferVector({obj}, fmt);
586}
587
588std::vector<std::shared_ptr<Image>> Image::WrapExternalBufferMany(std::vector<std::shared_ptr<ExternalBuffer>> &buffers,
589 nvcv::ImageFormat fmt)

Callers

nothing calls this directly

Calls 2

castFunction · 0.85
shared_from_thisMethod · 0.45

Tested by

no test coverage detected