Constructor
new PixelBufferDecoder(algoName, numberOfData)
Name | Type | Description |
---|---|---|
algoName | string | The decompression algorithm name. |
numberOfData | number | The anticipated number of data to decode. |
- Source
Classes
Methods
abort()
Abort decoding.
- Source
decode(pixelBuffer, pixelMeta, info)
Get data from an input buffer using a DICOM parser.
Name | Type | Description |
---|---|---|
pixelBuffer | Array | The input data buffer. |
pixelMeta | object | The input meta data. |
info | object | Information object about the input data. |
- Source
onabort(_event)
Handle an abort event. Default does nothing.
Name | Type | Description |
---|---|---|
_event | object | The abort event. |
- Source
ondecoded(_event)
Handle a decode event. Default does nothing.
Name | Type | Description |
---|---|---|
_event | object | The decode event fired when a file has been decoded successfully. |
- Source
ondecodeditem(_event)
Handle a decode item event. Default does nothing.
Name | Type | Description |
---|---|---|
_event | object | The decode item event fired when a decode item ended successfully. |
- Source
ondecodeend(_event)
Handle a decode end event. Default does nothing.
Name | Type | Description |
---|---|---|
_event | object | The decode end event fired when a file decoding has completed, successfully or not. |
- Source
ondecodestart(_event)
Handle a decode start event. Default does nothing.
Name | Type | Description |
---|---|---|
_event | object | The decode start event. |
- Source
onerror(_event)
Handle an error event. Default does nothing.
Name | Type | Description |
---|---|---|
_event | object | The error event. |
- Source