summaryrefslogtreecommitdiff
path: root/examples/llava/clip.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/llava/clip.h')
-rw-r--r--examples/llava/clip.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/examples/llava/clip.h b/examples/llava/clip.h
index ca363138..2ff4d399 100644
--- a/examples/llava/clip.h
+++ b/examples/llava/clip.h
@@ -18,14 +18,17 @@
# define CLIP_API
#endif
-struct clip_ctx;
-
#ifdef __cplusplus
extern "C" {
#endif
struct clip_ctx;
+struct clip_image_size {
+ int width;
+ int height;
+};
+
struct clip_image_u8_batch {
struct clip_image_u8 * data;
size_t size;
@@ -55,6 +58,10 @@ CLIP_API const int32_t * clip_image_grid(const struct clip_ctx * ctx);
CLIP_API int clip_n_patches (const struct clip_ctx * ctx);
CLIP_API int clip_n_mmproj_embd(const struct clip_ctx * ctx);
+CLIP_API int clip_uhd_num_image_embeds_col(struct clip_ctx * ctx_clip);
+CLIP_API void clip_add_load_image_size(struct clip_ctx * ctx_clip, struct clip_image_size * load_image_size);
+
+CLIP_API struct clip_image_size * clip_image_size_init();
CLIP_API struct clip_image_u8 * clip_image_u8_init ();
CLIP_API struct clip_image_f32 * clip_image_f32_init();
@@ -78,6 +85,8 @@ CLIP_API bool clip_image_batch_encode(struct clip_ctx * ctx, int n_threads, cons
CLIP_API bool clip_model_quantize(const char * fname_inp, const char * fname_out, int itype);
+CLIP_API bool clip_is_minicpmv(const struct clip_ctx * ctx);
+
#ifdef __cplusplus
}
#endif