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)

125 lines (124 loc) 3.36 kB
/** @format */ import { Color } from '../../color/color.js'; import { DecodeInfo } from '../decode-info.js'; /** * Interface representing the options for Pvr3Info. */ export interface Pvr3InfoOptions { /** Width of the image. */ width: number; /** Height of the image. */ height: number; /** Number of mipmap levels. */ mipCount: number; /** Flags associated with the image. */ flags: number; /** Format of the image. */ format: number; /** Order of the channels. */ order: number[]; /** Color space of the image. */ colorSpace: number; /** Type of the channels. */ channelType: number; /** Depth of the image. */ depth: number; /** Number of surfaces in the image. */ numSurfaces: number; /** Number of faces in the image. */ numFaces: number; /** Size of the metadata. */ metadataSize: number; } /** * Class representing Pvr3Info which implements DecodeInfo. */ export declare class Pvr3Info implements DecodeInfo { /** * Background color of the image. */ private readonly _backgroundColor; get backgroundColor(): Color | undefined; /** * Number of frames in the image. */ private readonly _numFrames; get numFrames(): number; /** * Width of the image. */ private _width; get width(): number; /** * Height of the image. */ private _height; get height(): number; /** * Number of mipmap levels. */ private _mipCount; get mipCount(): number; /** * Flags associated with the image. */ private _flags; get flags(): number; /** * Format of the image. */ private _format; get format(): number; /** * Order of the channels. */ private _order; get order(): number[]; /** * Color space of the image. */ private _colorSpace; get colorSpace(): number; /** * Type of the channels. */ private _channelType; get channelType(): number; /** * Depth of the image. */ private _depth; get depth(): number; /** * Number of surfaces in the image. */ private _numSurfaces; get numSurfaces(): number; /** * Number of faces in the image. */ private _numFaces; get numFaces(): number; /** * Size of the metadata. */ private _metadataSize; get metadataSize(): number; /** * Constructor for Pvr3Info. * @param {Pvr3InfoOptions} opt - Options for initializing Pvr3Info. * @param {number} opt.width - Width of the image. * @param {number} opt.height - Height of the image. * @param {number} opt.mipCount - Number of mipmap levels. * @param {number} opt.flags - Flags associated with the image. * @param {number} opt.format - Format of the image. * @param {string} opt.order - Order of the channels. * @param {string} opt.colorSpace - Color space of the image. * @param {string} opt.channelType - Type of the channels. * @param {number} opt.depth - Depth of the image. * @param {number} opt.numSurfaces - Number of surfaces in the image. * @param {number} opt.numFaces - Number of faces in the image. * @param {number} opt.metadataSize - Size of the metadata. */ constructor(opt: Pvr3InfoOptions); }