@syncfusion/ej2-pdf
Version:
Feature-rich JavaScript PDF library with built-in support for loading and manipulating PDF document.
73 lines (72 loc) • 1.69 kB
TypeScript
/**
* Represents an arithmetic decoder for compressed streams using adaptive probability states.
*
* @private
*/
export declare class _PdfArithmeticDecoder {
/**
* Input data buffer for the arithmetic decoder.
*
* @private
*/
_data: Uint8Array;
/**
* Current bit position within the input byte.
*
* @private
*/
_bitPosition: number;
/**
* Marks the end position of the input data.
*
* @private
*/
_dataEnd: number;
/**
* High register for interval coding.
*
* @private
*/
_high: number;
/**
* Low register for interval coding.
*
* @private
*/
_low: number;
/**
* Counts available bits in the current buffer.
*
* @private
*/
_bitCount: number;
/**
* Current coding range used by the decoder.
*
* @private
*/
_range: number;
/**
* Holds the quantization/state transition table for decoding.
*
* @private
*/
_quantizationTable: any;
constructor(data: any, start: number, end: number);
/**
* Reads the next input byte into the arithmetic decoder and updates internal registers.
*
* @private
* @returns {void} nothing.
*/
_byteIn(): void;
/**
* Decodes a single bit using the current probability context and updates the context state.
*
* @private
* @param {any} contexts Probability state array (context models). // eslint-disable-line
* @param {number} pos Index of the context to use.
* @returns {number} bit The decoded bit (0 or 1).
*/
_readBit(contexts: any, pos: number): number;
}