SetaPDF_Core_Image_Gif_Filter_Lzw Class to apply LZW encoding.
File: /SetaPDF v2/Core/Image/Gif/Filter/Lzw.php
Class hierarchy
Summary
Properties
$_clearCode
private int SetaPDF_Core_Image_Gif_Filter_Lzw::$_clearCode
The clear code.
This code marks a reset of the LZW stream.
$_codeSize
private int SetaPDF_Core_Image_Gif_Filter_Lzw::$_codeSize
The code size.
This value marks the current size of codes.
$_endCode
private int SetaPDF_Core_Image_Gif_Filter_Lzw::$_endCode
The end code.
This code marks the end of the LZW stream.
$_initialCodeSize
private int SetaPDF_Core_Image_Gif_Filter_Lzw::$_initialCodeSize
The initial code size.
The value marks the code size before running the LZW algorithm.
$_nextCode
private int SetaPDF_Core_Image_Gif_Filter_Lzw::$_nextCode
The next code. This code marks the next unassigned code.
$_nextCodeLimit
private int SetaPDF_Core_Image_Gif_Filter_Lzw::$_nextCodeLimit
A value that marks a limit to increase the bit size.
$_outputBuffer
private array SetaPDF_Core_Image_Gif_Filter_Lzw::$_outputBuffer
The output buffer.
$_table
private array SetaPDF_Core_Image_Gif_Filter_Lzw::$_table
The code table.
Methods
__construct()
public SetaPDF_Core_Image_Gif_Filter_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.
Exceptions
Throws SetaPDF_Core_Image_Exception