Searched refs:nBytes0 (Results 1 – 3 of 3) sorted by relevance
/dports/graphics/p5-Geo-GDAL/gdal-3.3.3/third_party/LercLib/ |
H A D | Lerc2.h | 1674 int nBytes0 = 0, nBytes1 = 0; in ComputeHuffmanCodes() local 1680 if (!huffman0.ComputeCodes(histo) || !huffman0.ComputeCompressedSize(histo, nBytes0, avgBpp0)) in ComputeHuffmanCodes() 1681 nBytes0 = 0; in ComputeHuffmanCodes() 1687 if (nBytes0 > 0 && nBytes1 > 0) // regular case, pick the better of the two in ComputeHuffmanCodes() 1689 imageEncodeMode = (nBytes0 <= nBytes1) ? IEM_Huffman : IEM_DeltaHuffman; in ComputeHuffmanCodes() 1690 codes = (nBytes0 <= nBytes1) ? huffman0.GetCodes() : huffman1.GetCodes(); in ComputeHuffmanCodes() 1691 numBytes = (std::min)(nBytes0, nBytes1); in ComputeHuffmanCodes() 1693 else if (nBytes0 == 0 && nBytes1 == 0) // rare case huffman cannot handle, fall back to tiling in ComputeHuffmanCodes() 1701 imageEncodeMode = (nBytes0 > nBytes1) ? IEM_Huffman : IEM_DeltaHuffman; in ComputeHuffmanCodes() 1702 codes = (nBytes0 > nBytes1) ? huffman0.GetCodes() : huffman1.GetCodes(); in ComputeHuffmanCodes() [all …]
|
/dports/graphics/py-gdal/gdal-3.3.3/third_party/LercLib/ |
H A D | Lerc2.h | 1674 int nBytes0 = 0, nBytes1 = 0; in ComputeHuffmanCodes() local 1680 if (!huffman0.ComputeCodes(histo) || !huffman0.ComputeCompressedSize(histo, nBytes0, avgBpp0)) in ComputeHuffmanCodes() 1681 nBytes0 = 0; in ComputeHuffmanCodes() 1687 if (nBytes0 > 0 && nBytes1 > 0) // regular case, pick the better of the two in ComputeHuffmanCodes() 1689 imageEncodeMode = (nBytes0 <= nBytes1) ? IEM_Huffman : IEM_DeltaHuffman; in ComputeHuffmanCodes() 1690 codes = (nBytes0 <= nBytes1) ? huffman0.GetCodes() : huffman1.GetCodes(); in ComputeHuffmanCodes() 1691 numBytes = (std::min)(nBytes0, nBytes1); in ComputeHuffmanCodes() 1693 else if (nBytes0 == 0 && nBytes1 == 0) // rare case huffman cannot handle, fall back to tiling in ComputeHuffmanCodes() 1701 imageEncodeMode = (nBytes0 > nBytes1) ? IEM_Huffman : IEM_DeltaHuffman; in ComputeHuffmanCodes() 1702 codes = (nBytes0 > nBytes1) ? huffman0.GetCodes() : huffman1.GetCodes(); in ComputeHuffmanCodes() [all …]
|
/dports/graphics/lerc/lerc-3.0/src/LercLib/ |
H A D | Lerc2.cpp | 2011 int nBytes0 = 0, nBytes1 = 0; in ComputeHuffmanCodes() local 2017 if (!huffman0.ComputeCodes(histo) || !huffman0.ComputeCompressedSize(histo, nBytes0, avgBpp0)) in ComputeHuffmanCodes() 2018 nBytes0 = 0; in ComputeHuffmanCodes() 2024 if (nBytes0 > 0 && nBytes1 > 0) // regular case, pick the better of the two in ComputeHuffmanCodes() 2026 imageEncodeMode = (nBytes0 <= nBytes1) ? IEM_Huffman : IEM_DeltaHuffman; in ComputeHuffmanCodes() 2027 codes = (nBytes0 <= nBytes1) ? huffman0.GetCodes() : huffman1.GetCodes(); in ComputeHuffmanCodes() 2028 numBytes = (std::min)(nBytes0, nBytes1); in ComputeHuffmanCodes() 2030 else if (nBytes0 == 0 && nBytes1 == 0) // rare case huffman cannot handle, fall back to tiling in ComputeHuffmanCodes() 2038 imageEncodeMode = (nBytes0 > nBytes1) ? IEM_Huffman : IEM_DeltaHuffman; in ComputeHuffmanCodes() 2039 codes = (nBytes0 > nBytes1) ? huffman0.GetCodes() : huffman1.GetCodes(); in ComputeHuffmanCodes() [all …]
|