Initial commit

This commit is contained in:
2026-04-15 17:08:39 +02:00
parent ae164c47a8
commit 47fd1c2b7a
1819 changed files with 685388 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import { LogicalLevelTechnique } from "./logicalLevelTechnique";
import { PhysicalLevelTechnique } from "./physicalLevelTechnique";
import { PhysicalStreamType } from "./physicalStreamType";
import type { LogicalStreamType } from "./logicalStreamType";
import type IntWrapper from "../../decoding/intWrapper";
export type StreamMetadata = {
readonly physicalStreamType: PhysicalStreamType;
readonly logicalStreamType: LogicalStreamType;
readonly logicalLevelTechnique1: LogicalLevelTechnique;
readonly logicalLevelTechnique2: LogicalLevelTechnique;
readonly physicalLevelTechnique: PhysicalLevelTechnique;
readonly numValues: number;
readonly byteLength: number;
/**
* Returns the number of decompressed values.
* For non-RLE streams, this is the same as numValues.
* For RLE streams, this is overridden to return numRleValues.
*/
readonly decompressedCount: number;
};
export type MortonEncodedStreamMetadata = StreamMetadata & {
readonly numBits: number;
readonly coordinateShift: number;
};
export type RleEncodedStreamMetadata = StreamMetadata & {
readonly runs: number;
readonly numRleValues: number;
};
export declare function decodeStreamMetadata(tile: Uint8Array, offset: IntWrapper): StreamMetadata;