SynchPixelBufferDecoder

Synchronous pixel buffer decoder.

Constructor

new SynchPixelBufferDecoder(algoName, numberOfData)

Parameters:
NameTypeDescription
algoNamestring

The decompression algorithm name.

numberOfDatanumber

The anticipated number of data to decode.

Methods

abort()

Abort decoding.

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.