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)
43 lines (42 loc) • 1.18 kB
TypeScript
/** @format */
/**
* Data needed to reconstruct a macroblock
*/
export declare class VP8MBData {
/**
* 384 coefficients for macroblock reconstruction.
* (16+4+4) * 4*4
*/
coeffs: Int16Array;
/**
* Indicates if the macroblock uses intra4x4 prediction.
*/
isIntra4x4: boolean;
/**
* Prediction modes for the macroblock.
* One 16x16 mode (#0) or sixteen 4x4 modes.
*/
imodes: Uint8Array;
/**
* Chroma prediction mode for the macroblock.
*/
uvmode: number;
/**
* Bit-wise info about the content of each sub-4x4 block (in decoding order).
* Each of the 4x4 blocks for y/u/v is associated with a 2-bit code:
* - code=0: no coefficient
* - code=1: only DC
* - code=2: first three coefficients are non-zero
* - code=3: more than three coefficients are non-zero
* This allows calling specialized transform functions.
*/
nonZeroY: number;
/**
* Bit-wise info about the content of each sub-4x4 block for UV components.
*/
nonZeroUV: number;
/**
* Local dithering strength, deduced from non_zero_*.
*/
dither: number;
}