MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / load_media

Method load_media

smallthinker/tools/mtmd/mtmd-cli.cpp:153–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 }
152
153 bool load_media(const std::string & fname) {
154 mtmd::bitmap bmp(mtmd_helper_bitmap_init_from_file(ctx_vision.get(), fname.c_str()));
155 if (!bmp.ptr) {
156 return false;
157 }
158 bitmaps.entries.push_back(std::move(bmp));
159 return true;
160 }
161};
162
163static int generate_response(mtmd_cli_context & ctx, int n_predict) {

Callers 1

mainFunction · 0.80

Calls 4

getMethod · 0.45
c_strMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected