mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	llava : add struct for FFI bindgen (#12079)
* add struct for FFI bindgen * Apply suggestions from code review --------- Co-authored-by: Xuan-Son Nguyen <thichthat@gmail.com>
This commit is contained in:
		| @@ -74,8 +74,11 @@ CLIP_API void clip_image_f32_free(struct clip_image_f32 * img); | |||||||
| CLIP_API void clip_image_u8_batch_free (struct clip_image_u8_batch  * batch); | CLIP_API void clip_image_u8_batch_free (struct clip_image_u8_batch  * batch); | ||||||
| CLIP_API void clip_image_f32_batch_free(struct clip_image_f32_batch * batch); | CLIP_API void clip_image_f32_batch_free(struct clip_image_f32_batch * batch); | ||||||
|  |  | ||||||
| /** build image from pixels decoded by other libraries instead of stb_image.h for better performance. The memory layout is RGBRGBRGB..., input buffer length must be 3*nx*ny bytes */ | /** | ||||||
| CLIP_API void clip_build_img_from_pixels(const unsigned char * rgb_pixels, int nx, int ny, clip_image_u8 * img); |  * Build image from pixels decoded by other libraries instead of stb_image.h for better performance. | ||||||
|  |  * The memory layout is RGBRGBRGB..., input buffer length must be 3*nx*ny bytes | ||||||
|  |  */ | ||||||
|  | CLIP_API void clip_build_img_from_pixels(const unsigned char * rgb_pixels, int nx, int ny, struct clip_image_u8 * img); | ||||||
|  |  | ||||||
| CLIP_API bool clip_image_load_from_file(const char * fname, struct clip_image_u8 * img); | CLIP_API bool clip_image_load_from_file(const char * fname, struct clip_image_u8 * img); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Ting Lou
					Ting Lou