| 1 | |
| 2 | #pragma once |
| 3 | |
| 4 | // You can include this file (if you work in C++) but you don't have to. |
| 5 | // If you call this api from another language (Python, C#), you see integers. |
| 6 | // This header file tells you what these integers mean. |
| 7 | // These enum's may grow in the future. More values can be added. |
| 8 | |
| 9 | namespace LercNS |
| 10 | { |
| 11 | enum class ErrCode : int |
| 12 | { |
| 13 | Ok = 0, |
| 14 | Failed, |
| 15 | WrongParam, |
| 16 | BufferTooSmall, |
| 17 | NaN, |
| 18 | HasNoData, |
| 19 | DimensionsTooLarge |
| 20 | }; |
| 21 | |
| 22 | enum class DataType : int |
| 23 | { |
| 24 | dt_char = 0, |
| 25 | dt_uchar, |
| 26 | dt_short, |
| 27 | dt_ushort, |
| 28 | dt_int, |
| 29 | dt_uint, |
| 30 | dt_float, |
| 31 | dt_double |
| 32 | }; |
| 33 | |
| 34 | enum class InfoArrOrder : int |
| 35 | { |
| 36 | version = 0, // codec version |
| 37 | dataType, |
| 38 | nDim, // = nDepth (we renamed nDim to nDepth but don't want to break anything) |
| 39 | nCols, |
| 40 | nRows, |
| 41 | nBands, |
| 42 | nValidPixels, // for 1st band |
| 43 | blobSize, |
| 44 | nMasks, // 0 - all valid, 1 - same mask for all bands, nBands - masks can differ between bands |
| 45 | nDepth, // = nDim (we renamed nDim to nDepth but don't want to break anything) |
| 46 | nUsesNoDataValue, // 0 - no noData value used, nBands - noData value used in 1 or more bands (only possible for nDepth > 1) |
| 47 | _last |
| 48 | }; |
| 49 | |
| 50 | enum class DataRangeArrOrder : int |
| 51 | { |
| 52 | zMin = 0, |
| 53 | zMax, |
| 54 | maxZErrUsed, |
| 55 | _last |
| 56 | }; |
| 57 | |
| 58 | } // namespace |
| 59 |