blob: 2d08f4544cc214c0b9d70ea829ab537cbcd18424 [file] [log] [blame]
Kevin O'Connorafbed1b2010-06-28 07:34:53 -04001#ifndef __JPEG_H
2#define __JPEG_H
3
Kevin O'Connor2976dd42010-07-30 12:27:14 -04004struct jpeg_decdata;
5struct jpeg_decdata *jpeg_alloc(void);
Kevin O'Connorbbc47222010-07-30 13:07:08 -04006int jpeg_decode(struct jpeg_decdata *jpeg, unsigned char *buf);
7void jpeg_get_size(struct jpeg_decdata *jpeg, int *width, int *height);
Wayne Xia8031efa2011-07-08 11:03:16 +08008int jpeg_show(struct jpeg_decdata *jpeg, unsigned char *pic, int width
9 , int height, int depth, int bytes_per_line_dest);
Kevin O'Connorafbed1b2010-06-28 07:34:53 -040010
11#endif