[MMEBUDDY]
[reactos.git] / reactos / dll / 3rdparty / dxtn / dxtn.h
1 /*
2 * DXTn codec
3 * Version: 1.1
4 *
5 * Copyright (C) 2004 Daniel Borca All Rights Reserved.
6 *
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)
10 * any later version.
11 *
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.
16 *
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.
20 */
21
22
23 #ifndef DXTN_H_included
24 #define DXTN_H_included
25
26 TAPI int TAPIENTRY
27 dxt1_rgb_encode (int width, int height, int comps,
28 const void *source, int srcRowStride,
29 void *dest, int destRowStride);
30
31 TAPI int TAPIENTRY
32 dxt1_rgba_encode (int width, int height, int comps,
33 const void *source, int srcRowStride,
34 void *dest, int destRowStride);
35
36 TAPI int TAPIENTRY
37 dxt3_rgba_encode (int width, int height, int comps,
38 const void *source, int srcRowStride,
39 void *dest, int destRowStride);
40
41 TAPI int TAPIENTRY
42 dxt5_rgba_encode (int width, int height, int comps,
43 const void *source, int srcRowStride,
44 void *dest, int destRowStride);
45
46 TAPI void TAPIENTRY
47 dxt1_rgb_decode_1 (const void *texture, int stride /* in pixels */,
48 int i, int j, byte *rgba);
49
50 TAPI void TAPIENTRY
51 dxt1_rgba_decode_1 (const void *texture, int stride /* in pixels */,
52 int i, int j, byte *rgba);
53
54 TAPI void TAPIENTRY
55 dxt3_rgba_decode_1 (const void *texture, int stride /* in pixels */,
56 int i, int j, byte *rgba);
57
58 TAPI void TAPIENTRY
59 dxt5_rgba_decode_1 (const void *texture, int stride /* in pixels */,
60 int i, int j, byte *rgba);
61
62 #endif