Constructor
new AsynchPixelBufferDecoder(script, _numberOfData)
Name | Type | Description |
---|---|---|
script | string | The path to the decoder script to be used by the web worker. |
_numberOfData | number | The anticipated number of data to decode. |
- Source
Methods
abort()
Abort decoding.
- Source
decode(pixelBuffer, pixelMeta, info)
Decode a pixel buffer.
Name | Type | Description |
---|---|---|
pixelBuffer | Array | The pixel 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