blob: d6e293cda45b5efa13165a214da50ce708787327 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef LIBSL_H
#define LIBSL_H
struct LibslImage
{
unsigned char* encoded;
int length;
unsigned char* decoded;
int width;
int height;
int components;
};
#ifdef WIN32
#define DLLEXPORT extern "C" __declspec(dllexport)
#else
#define DLLEXPORT extern "C"
#endif
// uncompresed images are raw RGBA 8bit/channel
DLLEXPORT bool LibslEncode(LibslImage* image, bool lossless);
DLLEXPORT bool LibslDecode(LibslImage* image);
DLLEXPORT bool LibslAllocEncoded(LibslImage* image);
DLLEXPORT bool LibslAllocDecoded(LibslImage* image);
DLLEXPORT void LibslFree(LibslImage* image);
#endif
|