Improve "j2k decode" command to tell us how many layers and components were decoded, instead of just success/failure

This commit is contained in:
Justin Clark-Casey (justincc)
2012-01-05 22:54:33 +00:00
parent 5ea9740f1b
commit b86e7715a8
3 changed files with 39 additions and 8 deletions

View File

@@ -43,5 +43,15 @@ namespace OpenSim.Region.Framework.Interfaces
/// <param name="j2kData"></param>
/// <returns>true if decode was successful. false otherwise.</returns>
bool 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>
/// <param name="layers">layer data</param>
/// <param name="components">number of components</param>
/// <returns>true if decode was successful. false otherwise.</returns>
bool Decode(UUID assetID, byte[] j2kData, out OpenJPEG.J2KLayerInfo[] layers, out int components);
}
}