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)
15 lines • 471 B
JavaScript
import { ArrayUtils } from '../../common/array-utils.js';
import { VP8L } from './vp8l.js';
import { HuffmanTree } from './webp-huffman-tree.js';
export class HuffmanTreeGroup {
get htrees() {
return this._htrees;
}
constructor() {
this._htrees = ArrayUtils.generate(VP8L.huffmanCodesPerMetaCode, () => new HuffmanTree());
}
getAt(index) {
return this._htrees[index];
}
}
//# sourceMappingURL=webp-huffman-tree-group.js.map