diff options
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 |
