From de923f990fcdbff9e72fcb02e8c7451fc00a50f9 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. Change-Id: I9fc4049b0d3dd04f22e6327d44c71d663096e366 --- 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 adbcb3f..0049c89 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 -- 2.7.4