RleDecoder

RLE (Run-length encoding) decoder class.

Constructor

new RleDecoder()

Methods

decode(buffer, bitsAllocated, isSigned, sliceSize, samplesPerPixel, planarConfiguration) → {Array}

Parameters:
NameTypeDescription
bufferArray

The buffer to decode.

bitsAllocatednumber

The bits allocated per element in the buffer.

isSignedboolean

Is the data signed.

sliceSizenumber

The size of a slice (number of rows per number of columns).

samplesPerPixelnumber

The number of samples per pixel (3 for RGB).

planarConfigurationnumber

The planar configuration.

Returns:

The decoded buffer as a typed array.

Type: 
Array