From 74df9f9c816f54fc60b131a347e7e1f1988b1fe2 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Fri, 23 Jan 2009 11:00:36 +0000 Subject: * Adds a synchronous jpeg decode for pre-caching purposes * When the DynamicTextureModule creates a j2k image, pre-cache the decode so that it doesn't stall any client threads. --- .../Modules/Agent/TextureSender/J2KDecoderModule.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'OpenSim/Region/Environment/Modules/Agent') diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureSender/J2KDecoderModule.cs b/OpenSim/Region/Environment/Modules/Agent/TextureSender/J2KDecoderModule.cs index 2a565ee..53e66fc 100644 --- a/OpenSim/Region/Environment/Modules/Agent/TextureSender/J2KDecoderModule.cs +++ b/OpenSim/Region/Environment/Modules/Agent/TextureSender/J2KDecoderModule.cs @@ -146,6 +146,16 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureSender } } + /// + /// Provides a synchronous decode so that caller can be assured that this executes before the next line + /// + /// + /// + public void syncdecode(UUID AssetId, byte[] j2kdata) + { + doJ2kDecode(AssetId, j2kdata); + } + #endregion /// -- cgit v1.1