Add a "j2k decode" region console command that allows a manual request for a JPEG2000 decode of an asset

For debugging purposes.
This commit is contained in:
Justin Clark-Casey (justincc)
2012-01-05 22:40:49 +00:00
parent da0fc3c8f5
commit 5ea9740f1b
3 changed files with 163 additions and 9 deletions

View File

@@ -35,6 +35,13 @@ namespace OpenSim.Region.Framework.Interfaces
public interface IJ2KDecoder
{
void BeginDecode(UUID assetID, byte[] j2kData, DecodedCallback callback);
void Decode(UUID assetID, byte[] j2kData);
/// <summary>
/// Provides a synchronous decode so that caller can be assured that this executes before the next line
/// </summary>
/// <param name="assetID"></param>
/// <param name="j2kData"></param>
/// <returns>true if decode was successful. false otherwise.</returns>
bool Decode(UUID assetID, byte[] j2kData);
}
}