new AsynchPixelBufferDecoder(script, _numberOfData)
- Source:
Asynchronous pixel buffer decoder.
Parameters:
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. |
Methods
abort()
- Source:
Abort decoding.
decode(pixelBuffer, pixelMeta, info)
- Source:
Decode a pixel buffer.
Parameters:
Name | Type | Description |
---|---|---|
pixelBuffer |
Array | The pixel buffer. |
pixelMeta |
object | The input meta data. |
info |
object | Information object about the input data. |
onabort(_event)
- Source:
Handle an abort event. Default does nothing.
Parameters:
Name | Type | Description |
---|---|---|
_event |
object | The abort event. |
ondecoded(_event)
- Source:
Handle a decode event. Default does nothing.
Parameters:
Name | Type | Description |
---|---|---|
_event |
object | The decode event fired when a file has been decoded successfully. |
ondecodeditem(_event)
- Source:
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. |
ondecodeend(_event)
- Source:
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. |
ondecodestart(_event)
- Source:
Handle a decode start event. Default does nothing.
Parameters:
Name | Type | Description |
---|---|---|
_event |
object | The decode start event. |
onerror(_event)
- Source:
Handle an error event. Default does nothing.
Parameters:
Name | Type | Description |
---|---|---|
_event |
object | The error event. |