UNPKG

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)

11 lines 479 B
import { ArrayUtils } from '../../common/array-utils.js'; import { VP8 } from './vp8.js'; import { VP8BandProbas } from './vp8-band-probas.js'; export class VP8Proba { constructor() { this.segments = new Uint8Array(VP8.mbFeatureTreeProbs); this.bands = ArrayUtils.generate(VP8.numTypes, () => ArrayUtils.generate(VP8.numBands, () => new VP8BandProbas())); this.segments.fill(255, 0, this.segments.length); } } //# sourceMappingURL=vp8-proba.js.map