Files
libremetaverse/openjpeg-libsl/libsl/libsl.h
jedediah 216441f0be * added support for asset wrappers to the AssetManager API (BREAKING CHANGE)
* added Image class, modified OpenJPEG to use it
* implemented AssetTexture (with Image class)
* reimplemented Wear* commands, refactored appearance code
* added bake flag parameter to appearance commands
* added InventoryItem subclasses for different item types
* added *FindObjectsByPath to InventoryManager
* added single item FetchInventory


git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1373 52acb1d6-8a22-11de-b505-999d5b087335
2007-08-25 09:36:33 +00:00

32 lines
650 B
C

#ifndef LIBSL_H
#define LIBSL_H
struct MarshalledImage
{
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(MarshalledImage* image, bool lossless);
DLLEXPORT bool LibslDecode(MarshalledImage* image);
DLLEXPORT bool LibslAllocEncoded(MarshalledImage* image);
DLLEXPORT bool LibslAllocDecoded(MarshalledImage* image);
DLLEXPORT void LibslFree(MarshalledImage* image);
#endif