OSDN Git Service

more optimization
[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 alphabits);
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         WAVG,
27         NORMALMAP
28 } ColorDistMode;
29
30 void s2tc_encode_block(unsigned char *out, const unsigned char *rgba, int iw, int w, int h, DxtMode dxt, ColorDistMode cd, int nrandom);
31
32 #ifdef __cplusplus
33 }
34 #endif
35
36 #endif