Debian Codegraph @

src/LercLib/Lerc1Decode/CntZImage.h

raw symbols SCIP
1 /*
2 Copyright 2015 - 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 Contributors: Thomas Maurer
22 */
23
24 #ifndef CNTZIMAGE_H
25 #define CNTZIMAGE_Hcxx . . $ `src/LercLib/Lerc1Decode/CntZImage.h:25:9`!
26
27 #include <vector>
28 #include "TImage.hpp"cxx . . $ `<file>/src/LercLib/Lerc1Decode/TImage.hpp`/
29
30 NAMESPACE_LERC_STARTcxx . . $ LercNS/
31
32 /** count / z image
33 *
34 * count can also be a weight, therefore float;
35 * z can be elevation or intensity;
36 */
37
38 class CntZImagecxx . . $ LercNS/CntZImage# : public TImagecxx . . $ LercNS/TImage#< CntZcxx . . $ LercNS/CntZ# >
39 {
40 public:
41 CntZImagecxx . . $ LercNS/CntZImage#CntZImage(49f6e7a06ebc5aa8).();
42 virtual ~cxx . . $ LercNS/CntZImage#`~CntZImage`(ced63f7c635d850d).CntZImagecxx . . $ LercNS/CntZImage#() {};
43 stdcxx . . $ std/::stringcxx . . $ std/string# getTypeStringcxx . . $ LercNS/CntZImage#getTypeString(219584694fe2b248).() const { return "CntZImage "cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).; }
44
45 bool resizeFill0cxx . . $ LercNS/CntZImage#resizeFill0(cf9ef193275fa6d8).(int width, int height);
46
47 static unsigned int computeNumBytesNeededToReadHeadercxx . . $ LercNS/CntZImage#computeNumBytesNeededToReadHeader(9e1a662fef1ac081).(bool onlyZPart);
48
49 /// read succeeds only if maxZError on file <= maxZError requested
50 bool readcxx . . $ LercNS/CntZImage#read(3fcf2816e18529d4).(const Bytecxx . . $ LercNS/Byte#** ppByte, const Bytecxx . . $ LercNS/Byte#* bArr_end, double maxZError, bool onlyHeader = false, bool onlyZPart = false);
51
52 protected:
53
54 struct InfoFromComputeNumBytescxx . . $ LercNS/CntZImage#InfoFromComputeNumBytes#
55 {
56 double maxZErrorcxx . . $ LercNS/CntZImage#InfoFromComputeNumBytes#maxZError.;
57 bool cntsNoIntcxx . . $ LercNS/CntZImage#InfoFromComputeNumBytes#cntsNoInt.;
58 int numTilesVertCntcxx . . $ LercNS/CntZImage#InfoFromComputeNumBytes#numTilesVertCnt.;
59 int numTilesHoriCntcxx . . $ LercNS/CntZImage#InfoFromComputeNumBytes#numTilesHoriCnt.;
60 int numBytesCntcxx . . $ LercNS/CntZImage#InfoFromComputeNumBytes#numBytesCnt.;
61 float maxCntInImgcxx . . $ LercNS/CntZImage#InfoFromComputeNumBytes#maxCntInImg.;
62 int numTilesVertZcxx . . $ LercNS/CntZImage#InfoFromComputeNumBytes#numTilesVertZ.;
63 int numTilesHoriZcxx . . $ LercNS/CntZImage#InfoFromComputeNumBytes#numTilesHoriZ.;
64 int numBytesZcxx . . $ LercNS/CntZImage#InfoFromComputeNumBytes#numBytesZ.;
65 float maxZInImgcxx . . $ LercNS/CntZImage#InfoFromComputeNumBytes#maxZInImg.;
66 };
67
68 bool readTilescxx . . $ LercNS/CntZImage#readTiles(e84934dc8472c914).(bool zPart, double maxZErrorInFile, int numTilesVert, int numTilesHori, float maxValInImg, const Bytecxx . . $ LercNS/Byte#* bArr);
69
70 bool readCntTilecxx . . $ LercNS/CntZImage#readCntTile(ce4b704fb8629e3a).(const Bytecxx . . $ LercNS/Byte#** ppByte, int i0, int i1, int j0, int j1);
71 bool readZTilecxx . . $ LercNS/CntZImage#readZTile(f7f521bc3f0dc4ba).(const Bytecxx . . $ LercNS/Byte#** ppByte, int i0, int i1, int j0, int j1, double maxZErrorInFile, float maxZInImg);
72
73 static int numBytesFltcxx . . $ LercNS/CntZImage#numBytesFlt(1bb0578f3efdc255).(float z); // returns 1, 2, or 4
74 static bool readFltcxx . . $ LercNS/CntZImage#readFlt(12fe475206794ad).(const Bytecxx . . $ LercNS/Byte#** ppByte, float& z, int numBytes);
75
76 protected:
77
78 InfoFromComputeNumBytescxx . . $ LercNS/CntZImage#InfoFromComputeNumBytes# m_infoFromComputeNumBytescxx . . $ LercNS/CntZImage#m_infoFromComputeNumBytes.;
79 stdcxx . . $ std/::vectorcxx . . $ std/vector#<unsigned int> m_tmpDataVeccxx . . $ LercNS/CntZImage#m_tmpDataVec.; // used in read fcts
80 bool m_bDecoderCanIgnoreMaskcxx . . $ LercNS/CntZImage#m_bDecoderCanIgnoreMask.; // "
81 };
82
83 NAMESPACE_LERC_ENDcxx . . $ `src/LercLib/Defines.h:36:9`!
84 #endif