summaryrefslogtreecommitdiff
path: root/lib/jxl/enc_noise.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jxl/enc_noise.cc')
-rw-r--r--lib/jxl/enc_noise.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/jxl/enc_noise.cc b/lib/jxl/enc_noise.cc
index 3628761..a12a9e6 100644
--- a/lib/jxl/enc_noise.cc
+++ b/lib/jxl/enc_noise.cc
@@ -6,7 +6,6 @@
#include "lib/jxl/enc_noise.h"
#include <stdint.h>
-#include <stdio.h>
#include <stdlib.h>
#include <algorithm>
@@ -16,9 +15,9 @@
#include "lib/jxl/base/compiler_specific.h"
#include "lib/jxl/chroma_from_luma.h"
#include "lib/jxl/convolve.h"
+#include "lib/jxl/enc_aux_out.h"
+#include "lib/jxl/enc_optimize.h"
#include "lib/jxl/image_ops.h"
-#include "lib/jxl/opsin_params.h"
-#include "lib/jxl/optimize.h"
namespace jxl {
namespace {
@@ -367,7 +366,7 @@ void EncodeNoise(const NoiseParams& noise_params, BitWriter* writer,
for (float i : noise_params.lut) {
EncodeFloatParam(i, kNoisePrecision, writer);
}
- ReclaimAndCharge(writer, &allotment, layer, aux_out);
+ allotment.ReclaimAndCharge(writer, layer, aux_out);
}
} // namespace jxl