mirror of
https://github.com/zoriya/libpgs-js.git
synced 2026-08-27 00:00:51 +00:00
Not for upstream: this branch only exists so a consumer can depend on the fork straight from git while the `ready` promise waits on a release.
15 lines
698 B
TypeScript
15 lines
698 B
TypeScript
import { BinaryReader } from "./binaryReader";
|
|
/**
|
|
* Handles run length encoded images.
|
|
*/
|
|
export declare abstract class RunLengthEncoding {
|
|
/**
|
|
* Decodes the run length encoded image.
|
|
* @param reader The run length encoded binary data reader or buffer.
|
|
* @param source The source maps the index value to the raw output pixel data.
|
|
* @param target The pixel data is written to the output.
|
|
* @return Returns the number of decoded pixels.
|
|
*/
|
|
static decode(reader: BinaryReader | Uint8Array, source: number[] | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array, target: number[] | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array): number;
|
|
}
|