aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-01-05 22:54:33 +0000
committerJustin Clark-Casey (justincc)2012-01-05 22:54:33 +0000
commitb86e7715a8d8f081fa9452d92a9d8f6d52867a12 (patch)
treee1245aebdd898330d89b39a17a5e9a7de09a7fba /OpenSim/Region/Framework
parentAdd a "j2k decode" region console command that allows a manual request for a ... (diff)
downloadopensim-SC_OLD-b86e7715a8d8f081fa9452d92a9d8f6d52867a12.zip
opensim-SC_OLD-b86e7715a8d8f081fa9452d92a9d8f6d52867a12.tar.gz
opensim-SC_OLD-b86e7715a8d8f081fa9452d92a9d8f6d52867a12.tar.bz2
opensim-SC_OLD-b86e7715a8d8f081fa9452d92a9d8f6d52867a12.tar.xz
Improve "j2k decode" command to tell us how many layers and components were decoded, instead of just success/failure
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Interfaces/IJ2KDecoder.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/IJ2KDecoder.cs b/OpenSim/Region/Framework/Interfaces/IJ2KDecoder.cs
index 0964276..46d03b3 100644
--- a/OpenSim/Region/Framework/Interfaces/IJ2KDecoder.cs
+++ b/OpenSim/Region/Framework/Interfaces/IJ2KDecoder.cs
@@ -43,5 +43,15 @@ namespace OpenSim.Region.Framework.Interfaces
43 /// <param name="j2kData"></param> 43 /// <param name="j2kData"></param>
44 /// <returns>true if decode was successful. false otherwise.</returns> 44 /// <returns>true if decode was successful. false otherwise.</returns>
45 bool Decode(UUID assetID, byte[] j2kData); 45 bool Decode(UUID assetID, byte[] j2kData);
46
47 /// <summary>
48 /// Provides a synchronous decode so that caller can be assured that this executes before the next line
49 /// </summary>
50 /// <param name="assetID"></param>
51 /// <param name="j2kData"></param>
52 /// <param name="layers">layer data</param>
53 /// <param name="components">number of components</param>
54 /// <returns>true if decode was successful. false otherwise.</returns>
55 bool Decode(UUID assetID, byte[] j2kData, out OpenJPEG.J2KLayerInfo[] layers, out int components);
46 } 56 }
47} 57}