Added YUV routines needed for v4l driver, and in the future possibly
[wine/gsoc-2012-control.git] / dlls / itss / lzx.h
blobd1cdc7d5690cc99b33292dad1959a162f7d53255
1 /***************************************************************************
2 * lzx.h - LZX decompression routines *
3 * ------------------- *
4 * *
5 * maintainer: Jed Wing <jedwin@ugcs.caltech.edu> *
6 * source: modified lzx.c from cabextract v0.5 *
7 * notes: This file was taken from cabextract v0.5, which was, *
8 * itself, a modified version of the lzx decompression code *
9 * from unlzx. *
10 ***************************************************************************/
12 /***************************************************************************
13 * *
14 * Copyright(C) Stuart Caie *
15 * *
16 * This library is free software; you can redistribute it and/or modify *
17 * it under the terms of the GNU Lesser General Public License as *
18 * published by the Free Software Foundation; either version 2.1 of the *
19 * License, or (at your option) any later version. *
20 * *
21 ***************************************************************************/
23 #ifndef INCLUDED_LZX_H
24 #define INCLUDED_LZX_H
26 /* return codes */
27 #define DECR_OK (0)
28 #define DECR_DATAFORMAT (1)
29 #define DECR_ILLEGALDATA (2)
30 #define DECR_NOMEMORY (3)
32 /* opaque state structure */
33 struct LZXstate;
35 /* create an lzx state object */
36 struct LZXstate *LZXinit(int window);
38 /* destroy an lzx state object */
39 void LZXteardown(struct LZXstate *pState);
41 /* reset an lzx stream */
42 int LZXreset(struct LZXstate *pState);
44 /* decompress an LZX compressed block */
45 int LZXdecompress(struct LZXstate *pState,
46 unsigned char *inpos,
47 unsigned char *outpos,
48 int inlen,
49 int outlen);
51 #endif /* INCLUDED_LZX_H */