MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / read_image_buffer

Function read_image_buffer

tests/AssetsLibrary.cpp:202–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202void read_image_buffer(std::ifstream &fs, RawTensor &raw)
203{
204 fs.read(reinterpret_cast<std::fstream::char_type *>(raw.data()), raw.size());
205
206 if (!fs.good())
207 {
208 throw std::runtime_error("Failure while reading image buffer");
209 }
210}
211
212RawTensor load_ppm(const std::string &path)
213{

Callers 2

load_ppmFunction · 0.85
load_pgmFunction · 0.85

Calls 3

readMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected