PixelBufferDecoder

Decode a pixel buffer.

If the 'decoderScripts' variable does not contain the desired, algorythm the decoder will switch to the synchronous mode.

Constructor

new PixelBufferDecoder(algoName, numberOfData)

Parameters:
NameTypeDescription
algoNamestring

The decompression algorithm name.

numberOfDatanumber

The anticipated number of data to decode.

Classes

PixelBufferDecoder

Methods

abort()

Abort decoding.

decode(pixelBuffer, pixelMeta, info)

Get data from an input buffer using a DICOM parser.

Parameters:
NameTypeDescription
pixelBufferArray

The input data buffer.

pixelMetaobject

The input meta data.

infoobject

Information object about the input data.

onabort(_event)

Handle an abort event. Default does nothing.

Parameters:
NameTypeDescription
_eventobject

The abort event.

ondecoded(_event)

Handle a decode event. Default does nothing.

Parameters:
NameTypeDescription
_eventobject

The decode event fired when a file has been decoded successfully.

ondecodeditem(_event)

Handle a decode item event. Default does nothing.

Parameters:
NameTypeDescription
_eventobject

The decode item event fired when a decode item ended successfully.

ondecodeend(_event)

Handle a decode end event. Default does nothing.

Parameters:
NameTypeDescription
_eventobject

The decode end event fired when a file decoding has completed, successfully or not.

ondecodestart(_event)

Handle a decode start event. Default does nothing.

Parameters:
NameTypeDescription
_eventobject

The decode start event.

onerror(_event)

Handle an error event. Default does nothing.

Parameters:
NameTypeDescription
_eventobject

The error event.