Debian Codegraph @

src/LercLib/fpl_EsriHuffman.h

raw symbols SCIP
1 /*
2 Copyright 2021 - 2026 Esri
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 A local copy of the license and additional notices are located with the
17 source distribution at:
18
19 http://github.com/Esri/lerc/
20
21 Analytical Raster Compression.
22 Original coding 2021 Yuriy Yakimenko
23 */
24
25 #ifndef FPL_ESRI_HUFFMAN_H
26 #define FPL_ESRI_HUFFMAN_H
27
28 #include <cstddef>
29 #include "Defines.h"
30
31 NAMESPACE_LERC_START
32
33 class fpl_EsriHuffman
34 {
35 public:
36 static int EncodeHuffman(const char* input, size_t input_len, unsigned char** ppByte, bool use_rle);
37
38 static bool DecodeHuffman(const unsigned char* inBytes, const size_t inCount, size_t& nBytesRemainingInOut, unsigned char** output);
39
40 static int getCompressedSize(const char* input, size_t input_len);
41 };
42
43 NAMESPACE_LERC_END
44 #endif