From: Jeffrey Morgan Date: Sun, 20 Apr 2025 10:15:41 +0000 (-0700) Subject: llava: fix errors in clip.h on certain compilers (#13030) X-Git-Tag: upstream/0.0.5185~24 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=6602304814e679cc8c162bb760a034aceb4f8965;p=pkg%2Fggml%2Fsources%2Fllama.cpp llava: fix errors in clip.h on certain compilers (#13030) --- diff --git a/examples/llava/clip.h b/examples/llava/clip.h index cc133a58..5fc45d3e 100644 --- a/examples/llava/clip.h +++ b/examples/llava/clip.h @@ -30,12 +30,13 @@ struct clip_image_size { int height; }; +struct clip_image_f32; struct clip_image_u8_batch; struct clip_image_f32_batch; struct clip_context_params { bool use_gpu; - ggml_log_level verbosity; + enum ggml_log_level verbosity; }; // deprecated, use clip_init @@ -84,7 +85,7 @@ CLIP_API void clip_image_f32_batch_free(struct clip_image_f32_batch * batch); CLIP_API size_t clip_image_f32_batch_n_images(const struct clip_image_f32_batch * batch); // equivalent to batch->size() CLIP_API size_t clip_image_f32_batch_nx(const struct clip_image_f32_batch * batch, int idx); // equivalent to batch[idx]->nx CLIP_API size_t clip_image_f32_batch_ny(const struct clip_image_f32_batch * batch, int idx); // equivalent to batch[idx]->ny -CLIP_API clip_image_f32 * clip_image_f32_get_img(const struct clip_image_f32_batch * batch, int idx); // equivalent to batch[idx]->data +CLIP_API struct clip_image_f32 * clip_image_f32_get_img(const struct clip_image_f32_batch * batch, int idx); // equivalent to batch[idx]->data /** * Build image from pixels decoded by other libraries instead of stb_image.h for better performance.