Files
libremetaverse/openjpeg-libsl/libsl/libsl.h
jedediah 5628ad35fe * mono JIT crash in AppearanceManager.cs
* wrong DLL name in openjpeg-libsl.dll.config
* missing extern "C" in libsl.h

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1291 52acb1d6-8a22-11de-b505-999d5b087335
2007-07-12 01:50:19 +00:00

33 lines
622 B
C

#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