mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-21 11:10:42 +02:00
_cairo_lzw_compress: Remove unused code which we had for testing
conformance with the LZW compression from libtiff.
This commit is contained in:
parent
bcfe344608
commit
3259efed76
1 changed files with 0 additions and 13 deletions
|
|
@ -370,19 +370,6 @@ _cairo_lzw_compress (unsigned char *data, unsigned long *size_in_out)
|
|||
|
||||
LZW_SYMBOL_SET_CODE (*slot, code_next++, prev, next);
|
||||
|
||||
/* The libtiff code detects a full table and clears it a bit
|
||||
* earlier than strictly necessary. Here is the code to do
|
||||
* that which might be useful in doing correctness comparisons
|
||||
* against the output of libtiff. */
|
||||
#if CLEAR_TABLE_EARLY_FOR_IDENTICAL_OUTPUT_COMPAREED_TO_LIBTIFF
|
||||
if (code_next == LZW_BITS_BOUNDARY(LZW_BITS_MAX) - 1) {
|
||||
_lzw_symbol_table_init (&table);
|
||||
_lzw_buf_store_bits (&buf, LZW_CODE_CLEAR_TABLE, code_bits);
|
||||
code_bits = LZW_BITS_MIN;
|
||||
code_next = LZW_CODE_FIRST;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (code_next > LZW_BITS_BOUNDARY(code_bits))
|
||||
{
|
||||
code_bits++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue