Description
OpenJpegDotNet is perfect in x64 but it's has a problem in x86.
I used your library to encode bitmap file to jpeg2000. However, the following problem occurred in x86.
var buffer = new Buffer
{
Data = outputBuffer,
Length = bufferLength,
Position = 0
};
Data has address, length has imageSize + 1024, Position is zero.
After setting StreamCreate, StreamSetUpdateData, SteamSetUserDataLength and CallBack. I start to encode.
But the following problem occurred in StreamWriteCallBack()
var buf = (Buffer*)userData;
buf->Data has address, buf->Length is zero and buf->position is imageSize + 1024.
I'm wondering why is change Length and Position?
Always buf->Length is zero condition, so it's return unchecked((ulong)-1);
I think maybe the OpenJpegDotNetNative.dll of 32bit and 64bit is different. What do you think?