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)

43 lines 1.19 kB
export class JpegComponentData { get hSamples() { return this._hSamples; } get maxHSamples() { return this._maxHSamples; } get vSamples() { return this._vSamples; } get maxVSamples() { return this._maxVSamples; } get lines() { return this._lines; } get hScaleShift() { return this._hScaleShift; } get vScaleShift() { return this._vScaleShift; } constructor(hSamples, maxHSamples, vSamples, maxVSamples, lines) { this._hSamples = hSamples; this._maxHSamples = maxHSamples; this._vSamples = vSamples; this._maxVSamples = maxVSamples; this._lines = lines; this._hScaleShift = this._hSamples === this._maxHSamples ? 0 : this._hSamples === 1 && this._maxHSamples === 4 ? 2 : 1; this._vScaleShift = this._vSamples === this._maxVSamples ? 0 : this._vSamples === 1 && this._maxVSamples === 4 ? 2 : 1; } } //# sourceMappingURL=jpeg-component-data.js.map