blob: 8963190fc95b3a10e4709150069db6e2c15d7fcc (
plain) (
blame)
1
2
3
4
5
6
7
8
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
|