diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-10-20 11:44:30 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-10-20 11:44:30 +0200 |
| commit | 9b9005101e6170a226acb265428aac429be6edbf (patch) | |
| tree | f89c76f4a5c2a00a72abe9b92468ac9f15083b94 /image.h | |
| download | facedet-9b9005101e6170a226acb265428aac429be6edbf.tar.gz facedet-9b9005101e6170a226acb265428aac429be6edbf.zip | |
Init
Diffstat (limited to 'image.h')
| -rw-r--r-- | image.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |
