aboutsummaryrefslogtreecommitdiff
path: root/image.h
blob: af35684a79c11d6ffd736911ec7a770bc575a553 (plain) (blame)
1
2
3
4
5
6
7
8
9
#ifndef FACEDET_IMAGE_H
#define FACEDET_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