Skip to content

Commit a800ae4

Browse files
tingloungxson
andauthored
llava : add struct for FFI bindgen (#12079)
* add struct for FFI bindgen * Apply suggestions from code review --------- Co-authored-by: Xuan-Son Nguyen <[email protected]>
1 parent 69050a1 commit a800ae4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/llava/clip.h

+5-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,11 @@ CLIP_API void clip_image_f32_free(struct clip_image_f32 * img);
7474
CLIP_API void clip_image_u8_batch_free (struct clip_image_u8_batch * batch);
7575
CLIP_API void clip_image_f32_batch_free(struct clip_image_f32_batch * batch);
7676

77-
/** 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 */
78-
CLIP_API void clip_build_img_from_pixels(const unsigned char * rgb_pixels, int nx, int ny, clip_image_u8 * img);
77+
/**
78+
* Build image from pixels decoded by other libraries instead of stb_image.h for better performance.
79+
* The memory layout is RGBRGBRGB..., input buffer length must be 3*nx*ny bytes
80+
*/
81+
CLIP_API void clip_build_img_from_pixels(const unsigned char * rgb_pixels, int nx, int ny, struct clip_image_u8 * img);
7982

8083
CLIP_API bool clip_image_load_from_file(const char * fname, struct clip_image_u8 * img);
8184

0 commit comments

Comments
 (0)