Constructor
new SynchPixelBufferDecoder(algoName, numberOfData)
Parameters:
Name | Type | Description |
---|---|---|
algoName | string | The decompression algorithm name. |
numberOfData | number | The anticipated number of data to decode. |
- Source
Methods
abort()
Abort decoding.
- Source
onabort(_event)
Handle an abort event. Default does nothing.
Parameters:
Name | Type | Description |
---|---|---|
_event | object | The abort event. |
- Source
ondecoded(_event)
Handle a decode event. Default does nothing.
Parameters:
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.
Parameters:
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.
Parameters:
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.
Parameters:
Name | Type | Description |
---|---|---|
_event | object | The decode start event. |
- Source
onerror(_event)
Handle an error event. Default does nothing.
Parameters:
Name | Type | Description |
---|---|---|
_event | object | The error event. |
- Source