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)
111 lines (110 loc) • 3.69 kB
TypeScript
/** @format */
import { Color } from '../../color/color.js';
import { DecodeInfo } from '../decode-info.js';
/**
* Interface representing the options for Pvr2Info.
*/
export interface Pvr2InfoOptions {
/** Width of the texture. */
width: number;
/** Height of the texture. */
height: number;
/** Number of mipmaps. */
mipCount: number;
/** Flags associated with the texture. */
flags: number;
/** Size of the texture data. */
texDataSize: number;
/** Bits per pixel. */
bitsPerPixel: number;
/** Red color mask. */
redMask: number;
/** Green color mask. */
greenMask: number;
/** Blue color mask. */
blueMask: number;
/** Alpha color mask. */
alphaMask: number;
/** Magic number for validation. */
magic: number;
/** Number of textures. */
numTex: number;
}
/**
* Class representing Pvr2Info which implements DecodeInfo.
*/
export declare class Pvr2Info implements DecodeInfo {
/** Background color of the texture. */
private readonly _backgroundColor;
/** Gets the background color of the texture. */
get backgroundColor(): Color | undefined;
/** Number of frames in the texture. */
private readonly _numFrames;
/** Gets the number of frames in the texture. */
get numFrames(): number;
/** Width of the texture. */
private _width;
/** Gets the width of the texture. */
get width(): number;
/** Height of the texture. */
private _height;
/** Gets the height of the texture. */
get height(): number;
/** Number of mipmaps. */
private _mipCount;
/** Gets the number of mipmaps. */
get mipCount(): number;
/** Flags associated with the texture. */
private _flags;
/** Gets the flags associated with the texture. */
get flags(): number;
/** Size of the texture data. */
private _texDataSize;
/** Gets the size of the texture data. */
get texDataSize(): number;
/** Bits per pixel. */
private _bitsPerPixel;
/** Gets the bits per pixel. */
get bitsPerPixel(): number;
/** Red color mask. */
private _redMask;
/** Gets the red color mask. */
get redMask(): number;
/** Green color mask. */
private _greenMask;
/** Gets the green color mask. */
get greenMask(): number;
/** Blue color mask. */
private _blueMask;
/** Gets the blue color mask. */
get blueMask(): number;
/** Alpha color mask. */
private _alphaMask;
/** Gets the alpha color mask. */
get alphaMask(): number;
/** Magic number for validation. */
private _magic;
/** Gets the magic number for validation. */
get magic(): number;
/** Number of textures. */
private _numTex;
/** Gets the number of textures. */
get numTex(): number;
/**
* Constructs an instance of Pvr2Info.
* @param {Pvr2InfoOptions} opt - Options for initializing Pvr2Info.
* @param {number} opt.width - Width of the texture.
* @param {number} opt.height - Height of the texture.
* @param {number} opt.mipCount - Number of mipmaps.
* @param {number} opt.flags - Flags associated with the texture.
* @param {number} opt.texDataSize - Size of the texture data.
* @param {number} opt.bitsPerPixel - Bits per pixel.
* @param {number} opt.redMask - Red color mask.
* @param {number} opt.greenMask - Green color mask.
* @param {number} opt.blueMask - Blue color mask.
* @param {number} opt.alphaMask - Alpha color mask.
* @param {number} opt.magic - Magic number for validation.
* @param {number} opt.numTex - Number of textures.
*/
constructor(opt: Pvr2InfoOptions);
}