mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
Improve "j2k decode" command to tell us how many layers and components were decoded, instead of just success/failure
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user