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)
33 lines • 934 B
JavaScript
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 === 1 && this._maxHSamples === 2 ? 1 : 0;
this._vScaleShift = this._vSamples === 1 && this._maxVSamples === 2 ? 1 : 0;
}
}
//# sourceMappingURL=jpeg-component-data.js.map