Files
libpgs-js/dist/utils/runLengthEncoding.d.ts
T
zoriya bfd15e68bc Commit the build output.
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.
2026-08-26 19:23:04 +02:00

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;
}