diff options
author | dan miller | 2007-10-18 08:29:49 +0000 |
---|---|---|
committer | dan miller | 2007-10-18 08:29:49 +0000 |
commit | cc07c64bdef46f4d25c2203e874f91ee94583f56 (patch) | |
tree | 004c68e8d8813ff1addfd9749e3dbdc6ff4432a9 /libraries/openjpeg-libsl/libsl/libsl.h | |
parent | hmm... trying again to get everything committed (diff) | |
download | opensim-SC_OLD-cc07c64bdef46f4d25c2203e874f91ee94583f56.zip opensim-SC_OLD-cc07c64bdef46f4d25c2203e874f91ee94583f56.tar.gz opensim-SC_OLD-cc07c64bdef46f4d25c2203e874f91ee94583f56.tar.bz2 opensim-SC_OLD-cc07c64bdef46f4d25c2203e874f91ee94583f56.tar.xz |
one more time
Diffstat (limited to 'libraries/openjpeg-libsl/libsl/libsl.h')
-rw-r--r-- | libraries/openjpeg-libsl/libsl/libsl.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libraries/openjpeg-libsl/libsl/libsl.h b/libraries/openjpeg-libsl/libsl/libsl.h new file mode 100644 index 0000000..d6e293c --- /dev/null +++ b/libraries/openjpeg-libsl/libsl/libsl.h | |||
@@ -0,0 +1,32 @@ | |||
1 | |||
2 | |||
3 | #ifndef LIBSL_H | ||
4 | #define LIBSL_H | ||
5 | |||
6 | |||
7 | struct LibslImage | ||
8 | { | ||
9 | unsigned char* encoded; | ||
10 | int length; | ||
11 | |||
12 | unsigned char* decoded; | ||
13 | int width; | ||
14 | int height; | ||
15 | int components; | ||
16 | }; | ||
17 | |||
18 | #ifdef WIN32 | ||
19 | #define DLLEXPORT extern "C" __declspec(dllexport) | ||
20 | #else | ||
21 | #define DLLEXPORT extern "C" | ||
22 | #endif | ||
23 | |||
24 | // uncompresed images are raw RGBA 8bit/channel | ||
25 | DLLEXPORT bool LibslEncode(LibslImage* image, bool lossless); | ||
26 | DLLEXPORT bool LibslDecode(LibslImage* image); | ||
27 | DLLEXPORT bool LibslAllocEncoded(LibslImage* image); | ||
28 | DLLEXPORT bool LibslAllocDecoded(LibslImage* image); | ||
29 | DLLEXPORT void LibslFree(LibslImage* image); | ||
30 | |||
31 | |||
32 | #endif | ||