setasign\SetaPDF2\Core\Image\Gif\Filter
Lzw Class to apply LZW encoding.
File: /SetaPDF v2/Core/Image/Gif/Filter/Lzw.php
Old class name (alias):
\SetaPDF_Core_Image_Gif_Filter_Lzw
Class hierarchy
Summary
Properties
$_initialCodeSize
private int Lzw::$_initialCodeSize
The initial code size.
The value marks the code size before running the LZW algorithm.
$_nextCode
private int Lzw::$_nextCode
The next code. This code marks the next unassigned code.
$_nextCodeLimit
private int Lzw::$_nextCodeLimit
A value that marks a limit to increase the bit size.
$_outputBuffer
private array Lzw::$_outputBuffer
The output buffer.
Methods
__construct()
public Lzw::__construct ()
The constructor.
Parameters
- $reader : \SetaPDF_Core_Image_Gif_Reader_Bit
- $minimumCodeSize : int
- $colorTable : array
_clearAndOutput()
Resets the LZW code-table, reads away all the clear codes and outputs the first given code.