From 9b9005101e6170a226acb265428aac429be6edbf Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Tue, 20 Oct 2026 11:44:30 +0200 Subject: Init --- image.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 image.h (limited to 'image.h') diff --git a/image.h b/image.h new file mode 100644 index 0000000..8963190 --- /dev/null +++ b/image.h @@ -0,0 +1,9 @@ +#ifndef YUNET_IMAGE_H +#define YUNET_IMAGE_H + +/* Decodes JPEG or PNG to interleaved RGB8, without alpha, orientation, or + * color-profile transforms. Each dimension is limited to 4096 pixels. + * Returns NULL on failure; the caller releases a successful result with free. */ +unsigned char *image_read_rgb(const char *path, int *width, int *height); + +#endif -- cgit v1.3.1