mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
fix: add lazperf upstream patch #129
This commit is contained in:
parent
c47c859d9b
commit
87b2c453d9
2
external/lazperf/detail/field_byte14.cpp
vendored
2
external/lazperf/detail/field_byte14.cpp
vendored
@ -67,7 +67,7 @@ void Byte14Compressor::writeSizes()
|
||||
|
||||
void Byte14Compressor::writeData()
|
||||
{
|
||||
int32_t total = 0;
|
||||
[[maybe_unused]] int32_t total = 0;
|
||||
for (size_t i = 0; i < count_; ++i)
|
||||
{
|
||||
if (valid_[i])
|
||||
|
2
external/lazperf/detail/field_point14.cpp
vendored
2
external/lazperf/detail/field_point14.cpp
vendored
@ -117,7 +117,7 @@ void Point14Compressor::writeSizes()
|
||||
|
||||
void Point14Compressor::writeData()
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
#ifdef PRINT_DEBUG
|
||||
std::cerr << "XY : " <<
|
||||
utils::sum(xy_enc_.encoded_bytes(), xy_enc_.num_encoded()) << "\n";
|
||||
std::cerr << "Z : " <<
|
||||
|
6
external/lazperf/lazperf.cpp
vendored
6
external/lazperf/lazperf.cpp
vendored
@ -407,7 +407,7 @@ point_decompressor_6::point_decompressor_6(InputCb cb, size_t ebCount) :
|
||||
|
||||
point_decompressor_6::~point_decompressor_6()
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
#ifdef PRINT_DEBUG
|
||||
p_->point_.dumpSums();
|
||||
if (p_->byte_.count())
|
||||
p_->byte_.dumpSums();
|
||||
@ -447,7 +447,7 @@ point_decompressor_7::point_decompressor_7(InputCb cb, size_t ebCount) :
|
||||
|
||||
point_decompressor_7::~point_decompressor_7()
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
#ifdef PRINT_DEBUG
|
||||
p_->point_.dumpSums();
|
||||
p_->rgb_.dumpSums();
|
||||
if (p_->byte_.count())
|
||||
@ -491,7 +491,7 @@ point_decompressor_8::point_decompressor_8(InputCb cb, size_t ebCount) :
|
||||
|
||||
point_decompressor_8::~point_decompressor_8()
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
#ifdef PRINT_DEBUG
|
||||
p_->point_.dumpSums();
|
||||
p_->rgb_.dumpSums();
|
||||
p_->nir_.dumpSums();
|
||||
|
6
external/lazperf/utils.hpp
vendored
6
external/lazperf/utils.hpp
vendored
@ -38,10 +38,10 @@
|
||||
#include <cstdlib>
|
||||
#include <limits>
|
||||
|
||||
#ifdef NDEBUG
|
||||
#define LAZDEBUG(e) ((void)0)
|
||||
#else
|
||||
#ifdef PRINT_DEBUG
|
||||
#define LAZDEBUG(e) (void)(e)
|
||||
#else
|
||||
#define LAZDEBUG(e) ((void)0)
|
||||
#endif
|
||||
|
||||
namespace lazperf
|
||||
|
Loading…
x
Reference in New Issue
Block a user