MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / clip_image_encode

Function clip_image_encode

tools/mtmd/clip.cpp:3115–3122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3113}
3114
3115bool clip_image_encode(struct clip_ctx * ctx, const int n_threads, clip_image_f32 * img, float * vec) {
3116 clip_image_f32_batch imgs;
3117 clip_image_f32_ptr img_copy(clip_image_f32_init());
3118 *img_copy = *img;
3119 imgs.entries.push_back(std::move(img_copy));
3120
3121 return clip_image_batch_encode(ctx, n_threads, &imgs, vec);
3122}
3123
3124bool clip_image_batch_encode(clip_ctx * ctx, const int n_threads, const clip_image_f32_batch * imgs_c_ptr, float * vec) {
3125 const clip_image_f32_batch & imgs = *imgs_c_ptr;

Callers 3

clip_encode_float_imageFunction · 0.85
mtmd_encodeFunction · 0.85
mtmd_debug_encode_implFunction · 0.85

Calls 3

clip_image_f32_initFunction · 0.85
clip_image_batch_encodeFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected