5 * Copyright (C) 2004 Daniel Borca All Rights Reserved.
7 * this is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
12 * this is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with GNU Make; see the file COPYING. If not, write to
19 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
23 #ifndef DXTN_H_included
24 #define DXTN_H_included
27 dxt1_rgb_encode (int width
, int height
, int comps
,
28 const void *source
, int srcRowStride
,
29 void *dest
, int destRowStride
);
32 dxt1_rgba_encode (int width
, int height
, int comps
,
33 const void *source
, int srcRowStride
,
34 void *dest
, int destRowStride
);
37 dxt3_rgba_encode (int width
, int height
, int comps
,
38 const void *source
, int srcRowStride
,
39 void *dest
, int destRowStride
);
42 dxt5_rgba_encode (int width
, int height
, int comps
,
43 const void *source
, int srcRowStride
,
44 void *dest
, int destRowStride
);
47 dxt1_rgb_decode_1 (const void *texture
, int stride
/* in pixels */,
48 int i
, int j
, byte
*rgba
);
51 dxt1_rgba_decode_1 (const void *texture
, int stride
/* in pixels */,
52 int i
, int j
, byte
*rgba
);
55 dxt3_rgba_decode_1 (const void *texture
, int stride
/* in pixels */,
56 int i
, int j
, byte
*rgba
);
59 dxt5_rgba_decode_1 (const void *texture
, int stride
/* in pixels */,
60 int i
, int j
, byte
*rgba
);