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)

100 lines (99 loc) 2.59 kB
/** @format */ import { InputBuffer } from '../../common/input-buffer.js'; import { WebPInfo } from './webp-info.js'; /** * Class representing internal information about a WebP image. * Extends the WebPInfo class. */ export declare class WebPInfoInternal extends WebPInfo { /** * The number of frames in the WebP image. * @private */ private _frameCount; /** * Gets the number of frames in the WebP image. * @returns {number} The number of frames. */ get frameCount(): number; /** * Sets the number of frames in the WebP image. * @param {number} v - The number of frames. */ set frameCount(v: number); /** * The current frame index. * @private */ private _frame; /** * Gets the current frame index. * @returns {number} The current frame index. */ get frame(): number; /** * Sets the current frame index. * @param {number} v - The current frame index. */ set frame(v: number); /** * The alpha data buffer. * @private */ private _alphaData?; /** * Gets the alpha data buffer. * @returns {InputBuffer<Uint8Array> | undefined} The alpha data buffer. */ get alphaData(): InputBuffer<Uint8Array> | undefined; /** * Sets the alpha data buffer. * @param {InputBuffer<Uint8Array> | undefined} v - The alpha data buffer. */ set alphaData(v: InputBuffer<Uint8Array> | undefined); /** * The size of the alpha data. * @private */ private _alphaSize; /** * Gets the size of the alpha data. * @returns {number} The size of the alpha data. */ get alphaSize(): number; /** * Sets the size of the alpha data. * @param {number} v - The size of the alpha data. */ set alphaSize(v: number); /** * The position of the VP8 data. * @private */ private _vp8Position; /** * Gets the position of the VP8 data. * @returns {number} The position of the VP8 data. */ get vp8Position(): number; /** * Sets the position of the VP8 data. * @param {number} v - The position of the VP8 data. */ set vp8Position(v: number); /** * The size of the VP8 data. * @private */ private _vp8Size; /** * Gets the size of the VP8 data. * @returns {number} The size of the VP8 data. */ get vp8Size(): number; /** * Sets the size of the VP8 data. * @param {number} v - The size of the VP8 data. */ set vp8Size(v: number); }