OSDN Git Service

implement tx_compress_dxtn
[android-x86/external-s2tc.git] / s2tc_compressor.h
1 #ifndef S2TC_COMPRESSOR_H
2 #define S2TC_COMPRESSOR_H
3
4 // note: this is a C header file!
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 void rgb565_image(unsigned char *out, const unsigned char *rgba, int w, int h, int srccomps, int bgr, int alpharange);
11
12 typedef enum
13 {
14         DXT1,
15         DXT3,
16         DXT5
17 } DxtMode;
18 typedef enum
19 {
20         RGB,
21         YUV,
22         SRGB,
23         SRGB_MIXED,
24         LAB,
25         AVG,
26         NORMALMAP
27 } ColorDistMode;
28
29 void s2tc_encode_block(unsigned char *out, const unsigned char *rgba, int iw, int w, int h, DxtMode dxt, ColorDistMode cd, int nrandom);
30
31 #ifdef __cplusplus
32 }
33 #endif
34
35 #endif