aboutsummaryrefslogtreecommitdiff
path: root/image.h
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-10-20 11:44:30 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-10-20 11:44:30 +0200
commit9b9005101e6170a226acb265428aac429be6edbf (patch)
treef89c76f4a5c2a00a72abe9b92468ac9f15083b94 /image.h
downloadfacedet-9b9005101e6170a226acb265428aac429be6edbf.tar.gz
facedet-9b9005101e6170a226acb265428aac429be6edbf.zip
Init
Diffstat (limited to 'image.h')
-rw-r--r--image.h9
1 files changed, 9 insertions, 0 deletions
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