diff options
Diffstat (limited to 'src/external/rawspeed/bench/librawspeed/decompressors/DeflateDecompressorBenchmark.cpp')
-rw-r--r-- | src/external/rawspeed/bench/librawspeed/decompressors/DeflateDecompressorBenchmark.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/external/rawspeed/bench/librawspeed/decompressors/DeflateDecompressorBenchmark.cpp b/src/external/rawspeed/bench/librawspeed/decompressors/DeflateDecompressorBenchmark.cpp index f238c0b77..d2dfdbf3f 100644 --- a/src/external/rawspeed/bench/librawspeed/decompressors/DeflateDecompressorBenchmark.cpp +++ b/src/external/rawspeed/bench/librawspeed/decompressors/DeflateDecompressorBenchmark.cpp @@ -26,12 +26,12 @@ #include "common/RawImage.h" // for RawImage, RawImageData #include "io/Buffer.h" // for Buffer #include "io/ByteStream.h" // for ByteStream -#include <algorithm> // for move #include <benchmark/benchmark.h> // for Benchmark, BENCHMARK_... #include <cassert> // for assert #include <cstddef> // for size_t #include <memory> // for unique_ptr #include <type_traits> // for integral_constant +#include <utility> // for move #include <zlib.h> #ifndef NDEBUG @@ -109,14 +109,15 @@ static inline void BM_DeflateDecompressor(benchmark::State& state) { break; } - std::unique_ptr<unsigned char[]> uBuffer; + std::unique_ptr<unsigned char[]> uBuffer; // NOLINT const rawspeed::ByteStream bs(buf, 0, buf.getSize()); for (auto _ : state) { DeflateDecompressor d(bs, mRaw, predictor, BPS::value); - d.decode(&uBuffer, mRaw->dim.x, mRaw->dim.y, 0, 0); + d.decode(&uBuffer, mRaw->dim.x, mRaw->dim.y, mRaw->dim.x, mRaw->dim.y, 0, + 0); } state.SetComplexityN(dim.area()); |