2 +----------------------------------------------------------------------+
3 | Author: yoya@awm.jp |
4 +----------------------------------------------------------------------+
8 #ifndef __BITMAP_UTIL_H__
9 #define __BITMAP_UTIL_H__
11 #include "jpeg_segment.h"
13 extern int jpeg_size_segment(jpeg_segment_t *jpeg_seg, int *width, int *height);
14 extern int jpeg_size(unsigned char *data, unsigned long data_len,
15 int *width, int *height);
17 extern int png_size(unsigned char *data, unsigned long data_len,
18 int *width, int *height);
20 extern int gif_size(unsigned char *data, unsigned long data_len,
21 int *width, int *height);
23 extern int detect_bitmap_format(unsigned char *data, unsigned long data_len);
25 #define BITMAP_UTIL_FORMAT_UNKNOWN 0
26 #define BITMAP_UTIL_FORMAT_JPEG 1
27 #define BITMAP_UTIL_FORMAT_PNG 2
28 #define BITMAP_UTIL_FORMAT_GIF 4
30 #endif /* __BITMAP_UTIL_H__ */