From 33018aa123b18b3abc63a6e80f4105c5d3faced7 Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Fri, 17 Dec 2021 16:04:26 -0800 Subject: [PATCH] Hide the thorvg LZW implementation. --- src/lib/tvgLzw.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/tvgLzw.cpp b/src/lib/tvgLzw.cpp index adbcb3fc..0049c899 100644 --- a/src/lib/tvgLzw.cpp +++ b/src/lib/tvgLzw.cpp @@ -65,6 +65,7 @@ #include #include "tvgLzw.h" +namespace { //LZW Dictionary helper: constexpr int Nil = -1; constexpr int MaxDictBits = 12; @@ -333,7 +334,7 @@ static bool outputSequence(const Dictionary& dict, int code, uint8_t*& output, i } return true; } - +} /************************************************************************/ @@ -424,4 +425,4 @@ uint8_t* lzwEncode(const uint8_t* uncompressed, uint32_t uncompressedSizeBytes, } -#endif \ No newline at end of file +#endif