-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimage.h
31 lines (28 loc) · 3.16 KB
/
image.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef _IMAGE_C_
#define _IAMGE_C_
#include "common/datatype.h"
#include "display.h"
extern void image_zoom_bicubic(pixel * src, int srcwidth, int srcheight, pixel * dest, int destwidth, int destheight);
extern void image_zoom_bilinear(pixel * src, int srcwidth, int srcheight, pixel * dest, int destwidth, int destheight);
extern void image_rotate(pixel * imgdata, dword * pwidth, dword * pheight, dword organgle, dword newangle);
extern int image_readpng(const char * filename, dword *pwidth, dword *pheight, pixel ** image_data, pixel * bgcolor);
extern int image_readpng_in_zip(const char * zipfile, const char * filename, dword *pwidth, dword *pheight, pixel ** image_data, pixel * bgcolor);
extern int image_readpng_in_chm(const char * chmfile, const char * filename, dword *pwidth, dword *pheight, pixel ** image_data, pixel * bgcolor);
extern int image_readpng_in_rar(const char * rarfile, const char * filename, dword *pwidth, dword *pheight, pixel ** image_data, pixel * bgcolor);
extern int image_readgif(const char * filename, dword *pwidth, dword *pheight, pixel ** image_data, pixel * bgcolor);
extern int image_readgif_in_zip(const char * zipfile, const char * filename, dword *pwidth, dword *pheight, pixel ** image_data, pixel * bgcolor);
extern int image_readgif_in_chm(const char * chmfile, const char * filename, dword *pwidth, dword *pheight, pixel ** image_data, pixel * bgcolor);
extern int image_readgif_in_rar(const char * rarfile, const char * filename, dword *pwidth, dword *pheight, pixel ** image_data, pixel * bgcolor);
extern int image_readjpg(const char * filename, dword *pwidth, dword *pheight, pixel ** image_data, pixel * bgcolor);
extern int image_readjpg_in_zip(const char * zipfile, const char * filename, dword *pwidth, dword *pheight, pixel ** image_data, pixel * bgcolor);
extern int image_readjpg_in_chm(const char * chmfile, const char * filename, dword *pwidth, dword *pheight, pixel ** image_data, pixel * bgcolor);
extern int image_readjpg_in_rar(const char * rarfile, const char * filename, dword *pwidth, dword *pheight, pixel ** image_data, pixel * bgcolor);
extern int image_readbmp(const char * filename, dword *pwidth, dword *pheight, pixel ** image_data, pixel * bgcolor);
extern int image_readbmp_in_zip(const char * zipfile, const char * filename, dword *pwidth, dword *pheight, pixel ** image_data, pixel * bgcolor);
extern int image_readbmp_in_chm(const char * chmfile, const char * filename, dword *pwidth, dword *pheight, pixel ** image_data, pixel * bgcolor);
extern int image_readbmp_in_rar(const char * rarfile, const char * filename, dword *pwidth, dword *pheight, pixel ** image_data, pixel * bgcolor);
extern int image_readtga(const char * filename, dword *pwidth, dword *pheight, pixel ** image_data, pixel * bgcolor);
extern int image_readtga_in_zip(const char * zipfile, const char * filename, dword *pwidth, dword *pheight, pixel ** image_data, pixel * bgcolor);
extern int image_readtga_in_chm(const char * chmfile, const char * filename, dword *pwidth, dword *pheight, pixel ** image_data, pixel * bgcolor);
extern int image_readtga_in_rar(const char * rarfile, const char * filename, dword *pwidth, dword *pheight, pixel ** image_data, pixel * bgcolor);
#endif