Files
libremetaverse/openjpeg-dotnet/dotnet/dotnet.h
John Hurliman a14fdabe8b * Removing unnecessary C++ wrappers from openjpeg-dotnet
* Added DotNetDecodeWithInfo() to openjpeg-dotnet to decode and gather additional data about the image
* Updating openjpeg.dotnet.dll windows binary. OSX, Linux, and Linux64 compiles needed again

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2171 52acb1d6-8a22-11de-b505-999d5b087335
2008-08-27 02:36:28 +00:00

39 lines
883 B
C

#ifndef LIBSL_H
#define LIBSL_H
#include "../libopenjpeg/openjpeg.h"
struct MarshalledImage
{
unsigned char* encoded;
int length;
int dummy; // padding for 64-bit alignment
unsigned char* decoded;
int width;
int height;
int layers;
int resolutions;
int components;
int packet_count;
opj_packet_info_t* packets;
};
#ifdef WIN32
#define DLLEXPORT extern "C" __declspec(dllexport)
#else
#define DLLEXPORT extern "C"
#endif
// uncompresed images are raw RGBA 8bit/channel
DLLEXPORT bool DotNetEncode(MarshalledImage* image, bool lossless);
DLLEXPORT bool DotNetDecode(MarshalledImage* image);
DLLEXPORT bool DotNetDecodeWithInfo(MarshalledImage* image);
DLLEXPORT bool DotNetAllocEncoded(MarshalledImage* image);
DLLEXPORT bool DotNetAllocDecoded(MarshalledImage* image);
DLLEXPORT void DotNetFree(MarshalledImage* image);
#endif