C# Class WhiteCore.Modules.Agent.J2KDecoder.J2KDecoderModule

Inheritance: IService, IJ2KDecoder
Datei anzeigen Open project: WhiteCoreSim/WhiteCore-Dev

Public Methods

Method Description
BeginDecode ( UUID assetID, byte j2kData, DecodedCallback callback ) : void
Decode ( UUID assetID, byte j2kData ) : bool

Provides a synchronous decode so that caller can be assured that this executes before the next line

DecodeToImage ( byte j2kData ) : Image
FinishedStartup ( ) : void
Initialize ( IConfigSource config, IRegistryCore registry ) : void
Start ( IConfigSource config, IRegistryCore registry ) : void

Private Methods

Method Description
CreateDefaultLayers ( int j2kLength ) : OpenMetaverse.Imaging.OpenJPEG.J2KLayerInfo[]
DoJ2KDecode ( UUID assetID, byte j2kData ) : bool

Decode Jpeg2000 Asset Data

DoJ2KDecode ( UUID assetID, byte j2kData, bool useCSJ2K ) : bool
SaveFileCacheForAsset ( UUID assetId, OpenJPEG layers ) : void
TryLoadCacheForAsset ( UUID assetId, OpenJPEG &layers ) : bool

Method Details

BeginDecode() public method

public BeginDecode ( UUID assetID, byte j2kData, DecodedCallback callback ) : void
assetID UUID
j2kData byte
callback DecodedCallback
return void

Decode() public method

Provides a synchronous decode so that caller can be assured that this executes before the next line
public Decode ( UUID assetID, byte j2kData ) : bool
assetID UUID
j2kData byte
return bool

DecodeToImage() public method

public DecodeToImage ( byte j2kData ) : Image
j2kData byte
return Image

FinishedStartup() public method

public FinishedStartup ( ) : void
return void

Initialize() public method

public Initialize ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

Start() public method

public Start ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void