mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-09 06:04:03 +00:00
Hide the thorvg LZW implementation.
This commit is contained in:
parent
df64a7b0dc
commit
33018aa123
1 changed files with 3 additions and 2 deletions
|
@ -65,6 +65,7 @@
|
||||||
#include <memory.h>
|
#include <memory.h>
|
||||||
#include "tvgLzw.h"
|
#include "tvgLzw.h"
|
||||||
|
|
||||||
|
namespace {
|
||||||
//LZW Dictionary helper:
|
//LZW Dictionary helper:
|
||||||
constexpr int Nil = -1;
|
constexpr int Nil = -1;
|
||||||
constexpr int MaxDictBits = 12;
|
constexpr int MaxDictBits = 12;
|
||||||
|
@ -333,7 +334,7 @@ static bool outputSequence(const Dictionary& dict, int code, uint8_t*& output, i
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
|
@ -424,4 +425,4 @@ uint8_t* lzwEncode(const uint8_t* uncompressed, uint32_t uncompressedSizeBytes,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue