OSDN Git Service

split compressor into multiple files (preparation for libtxc_dxtn compat)
[android-x86/external-s2tc.git] / s2tc_compressor.h
1 #ifndef S2TC_COMPRESSOR_H
2 #define S2TC_COMPRESSOR_H
3
4 void rgb565_image(unsigned char *out, const unsigned char *rgba, int w, int h, int alpharange);
5
6 enum DxtMode
7 {
8         DXT1,
9         DXT3,
10         DXT5
11 };
12 enum ColorDistMode
13 {
14         RGB,
15         YUV,
16         SRGB,
17         SRGB_MIXED,
18         LAB,
19         AVG,
20         NORMALMAP
21 };
22
23 void s2tc_encode_block(unsigned char *out, const unsigned char *rgba, int iw, int w, int h, DxtMode dxt, ColorDistMode cd, int nrandom);
24
25 #endif