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)
88 lines (87 loc) • 2.91 kB
TypeScript
/** @format */
import { Color } from '../../color/color.js';
import { DecodeInfo } from '../decode-info.js';
/**
* Interface representing options for PvrAppleInfo.
*/
export interface PvrAppleInfoOptions {
/** Width of the texture. */
width: number;
/** Height of the texture. */
height: number;
/** Number of mipmap levels. */
mipCount: number;
/** Flags associated with the texture. */
flags: number;
/** Size of the texture data. */
texDataSize: number;
/** Bits per pixel of the texture. */
bitsPerPixel: number;
/** Red color mask. */
redMask: number;
/** Green color mask. */
greenMask: number;
/** Blue color mask. */
blueMask: number;
/** Magic number for validation. */
magic: number;
}
/**
* Class representing PvrAppleInfo which implements DecodeInfo.
*/
export declare class PvrAppleInfo implements DecodeInfo {
/** Background color of the texture. */
private readonly _backgroundColor;
get backgroundColor(): Color | undefined;
/** Number of frames in the texture. */
private readonly _numFrames;
get numFrames(): number;
/** Width of the texture. */
private _width;
get width(): number;
set width(v: number);
/** Height of the texture. */
private _height;
get height(): number;
set height(v: number);
/** Number of mipmap levels. */
private _mipCount;
get mipCount(): number;
/** Flags associated with the texture. */
private _flags;
get flags(): number;
/** Size of the texture data. */
private _texDataSize;
get texDataSize(): number;
/** Bits per pixel of the texture. */
private _bitsPerPixel;
get bitsPerPixel(): number;
set bitsPerPixel(v: number);
/** Red color mask. */
private _redMask;
get redMask(): number;
/** Green color mask. */
private _greenMask;
get greenMask(): number;
/** Blue color mask. */
private _blueMask;
get blueMask(): number;
/** Magic number for validation. */
private _magic;
get magic(): number;
/**
* Initializes a new instance of the PvrAppleInfo class.
* @param {PvrAppleInfoOptions} opt - Options for initializing the PvrAppleInfo.
* @param {number} opt.width - Width of the texture.
* @param {number} opt.height - Height of the texture.
* @param {number} opt.mipCount - Number of mipmap levels.
* @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 of the texture.
* @param {number} opt.redMask - Red color mask.
* @param {number} opt.greenMask - Green color mask.
* @param {number} opt.blueMask - Blue color mask.
* @param {number} opt.magic - Magic number for validation.
*/
constructor(opt: PvrAppleInfoOptions);
}