Not yet tested on Linux or OSX! Notable changes: * AppearanceManager works much better though baking is only a placeholder * Fixes to openjpeg/TGA code * VisualParams class interface changed * Some TestClient fixes * Rest of TGA files added to Resources (they will eventually be used for baking)This is a big merge of my work from the Pleiades internal repo. Notable changes: * AppearanceManager works much better though baking is only a placeholder * Fixes to openjpeg/TGA code * VisualParams class interface changed * Some TestClient fixes * Rest of TGA files added to Resources (they will eventually be used for baking) git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1284 52acb1d6-8a22-11de-b505-999d5b087335
33 lines
611 B
C
33 lines
611 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
|
|
#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
|