image-in-browser
Version:
Package for encoding / decoding images, transforming images, applying filters, drawing primitives on images on the client side (no need for server Node.js)
14 lines • 523 B
JavaScript
import { HuffmanTablesSegment } from './webp-huffman-table-segment.js';
import { HuffmanCodeList } from './webp-huffman-code-list.js';
export class HuffmanTables {
constructor(size) {
this.root = new HuffmanTablesSegment();
this.currentSegment = this.root;
const start = HuffmanCodeList.sized(size);
this.root.size = size;
this.root.start = start;
this.root.currentTable = start;
this.root.next = undefined;
}
}
//# sourceMappingURL=webp-huffman-tables.js.map