summaryrefslogtreecommitdiff
path: root/lib/jxl/quantizer.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jxl/quantizer.h')
-rw-r--r--lib/jxl/quantizer.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/jxl/quantizer.h b/lib/jxl/quantizer.h
index 09e2e5e..4e34ac7 100644
--- a/lib/jxl/quantizer.h
+++ b/lib/jxl/quantizer.h
@@ -16,18 +16,13 @@
#include <vector>
#include "lib/jxl/ac_strategy.h"
-#include "lib/jxl/aux_out_fwd.h"
#include "lib/jxl/base/bits.h"
#include "lib/jxl/base/compiler_specific.h"
-#include "lib/jxl/base/profiler.h"
#include "lib/jxl/base/status.h"
-#include "lib/jxl/common.h"
#include "lib/jxl/dct_util.h"
#include "lib/jxl/dec_bit_reader.h"
-#include "lib/jxl/enc_bit_writer.h"
#include "lib/jxl/fields.h"
#include "lib/jxl/image.h"
-#include "lib/jxl/linalg.h"
#include "lib/jxl/quant_weights.h"
// Quantizes DC and AC coefficients, with separate quantization tables according
@@ -63,6 +58,8 @@ static constexpr float kDefaultQuantBias[4] = {
0.145f,
};
+struct QuantizerParams;
+
class Quantizer {
public:
explicit Quantizer(const DequantMatrices* dequant);
@@ -118,7 +115,7 @@ class Quantizer {
// Dequantize by multiplying with this times dequant_matrix.
float inv_quant_ac(int32_t quant) const { return inv_global_scale_ / quant; }
- Status Encode(BitWriter* writer, size_t layer, AuxOut* aux_out) const;
+ QuantizerParams GetParams() const;
Status Decode(BitReader* reader);