| 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_UNIT_TYPES_H |
| 26 | #define FPL_UNIT_TYPES_Hcxx . . $ `src/LercLib/fpl_UnitTypes.h:26:9`! |
| 27 | |
| 28 | #include <cstddef> |
| 29 | #include <stdint.h> |
| 30 | #include "Defines.h"cxx . . $ `<file>/src/LercLib/Defines.h`/ |
| 31 | |
| 32 | NAMESPACE_LERC_STARTcxx . . $ `src/LercLib/Defines.h:35:9`! |
| 33 | |
| 34 | enum UnitTypecxx . . $ LercNS/UnitType# { UNIT_TYPE_UNKNOWNcxx . . $ LercNS/UNIT_TYPE_UNKNOWN. = 0, UNIT_TYPE_BYTEcxx . . $ LercNS/UNIT_TYPE_BYTE. = 1, UNIT_TYPE_SHORTcxx . . $ LercNS/UNIT_TYPE_SHORT. = 2, UNIT_TYPE_LONGcxx . . $ LercNS/UNIT_TYPE_LONG. = 3, UNIT_TYPE_64_BITcxx . . $ LercNS/UNIT_TYPE_64_BIT. = 4, UNIT_TYPE_FLOATcxx . . $ LercNS/UNIT_TYPE_FLOAT. = 5, UNIT_TYPE_DOUBLEcxx . . $ LercNS/UNIT_TYPE_DOUBLE. = 6 }; |
| 35 | |
| 36 | struct UnitTypescxx . . $ LercNS/UnitTypes# |
| 37 | { |
| 38 | static size_tcxx . . $ size_t# sizecxx . . $ LercNS/UnitTypes#size(5871b0c0ce9b5dff). (const UnitTypecxx . . $ LercNS/UnitType# type); |
| 39 | static UnitTypecxx . . $ LercNS/UnitType# typecxx . . $ LercNS/UnitTypes#type(747ec39c569ca6f4). (int iBytes, bool bFloatType); |
| 40 | |
| 41 | static unsigned char unitCodecxx . . $ LercNS/UnitTypes#unitCode(3e5779dff71905fc). (const UnitTypecxx . . $ LercNS/UnitType# type) ; |
| 42 | |
| 43 | static void setDerivativecxx . . $ LercNS/UnitTypes#setDerivative(7959d6a967bb7b0e). (const UnitTypecxx . . $ LercNS/UnitType# type, void *pData, const size_tcxx . . $ size_t# nCount, const int nLevel, const int start_level = 1); |
| 44 | static void setRowsDerivativecxx . . $ LercNS/UnitTypes#setRowsDerivative(69239a207801649b). (const UnitTypecxx . . $ LercNS/UnitType# type, void *pData, const size_tcxx . . $ size_t# nCols, const size_tcxx . . $ size_t# nRows, const int nLevel, int phase = 0); |
| 45 | static void setCrossDerivativecxx . . $ LercNS/UnitTypes#setCrossDerivative(69239a207801649b). (const UnitTypecxx . . $ LercNS/UnitType# type, void *pData, const size_tcxx . . $ size_t# nCols, const size_tcxx . . $ size_t# nRows, const int nLevel, int phase = 0); |
| 46 | |
| 47 | static void setBlockDerivativecxx . . $ LercNS/UnitTypes#setBlockDerivative(69239a207801649b). (const UnitTypecxx . . $ LercNS/UnitType# type, void *pData, const size_tcxx . . $ size_t# nCols, const size_tcxx . . $ size_t# nRows, const int nLevel, const int start_level = 1); |
| 48 | |
| 49 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 50 | |
| 51 | // RESTORE: |
| 52 | |
| 53 | static void restoreBlockSequencecxx . . $ LercNS/UnitTypes#restoreBlockSequence(ed9c1a8191464942). (const int delta, void *pData, const size_tcxx . . $ size_t# nCols, const size_tcxx . . $ size_t# nRows, const UnitTypecxx . . $ LercNS/UnitType# unit_type); |
| 54 | static void restoreCrossBytescxx . . $ LercNS/UnitTypes#restoreCrossBytes(ed9c1a8191464942). (const int delta, void *pData, const size_tcxx . . $ size_t# nCols, const size_tcxx . . $ size_t# nRows, const UnitTypecxx . . $ LercNS/UnitType# unit_type); |
| 55 | |
| 56 | static void doFloatTransformcxx . . $ LercNS/UnitTypes#doFloatTransform(2769ff323d6644d4).(uint32_tcxx . . $ uint32_t#* pData, const size_tcxx . . $ size_t# iCnt); |
| 57 | static void undoFloatTransformcxx . . $ LercNS/UnitTypes#undoFloatTransform(2769ff323d6644d4).(uint32_tcxx . . $ uint32_t#* pData, const size_tcxx . . $ size_t# iCnt); |
| 58 | } ; |
| 59 | |
| 60 | NAMESPACE_LERC_ENDcxx . . $ `src/LercLib/Defines.h:36:9`! |
| 61 | #endif |