#include "src/quantizer.h"
#include <cassert>
#include <cstdint>
#include "src/utils/common.h"
#include "src/utils/constants.h"
#if LIBGAV1_MAX_BITDEPTH != 8 && LIBGAV1_MAX_BITDEPTH != 10 && \
LIBGAV1_MAX_BITDEPTH != 12
#error LIBGAV1_MAX_BITDEPTH must be 8, 10 or 12
#endif
namespace libgav1 {
namespace {
#include "src/quantizer_tables.inc"
constexpr int16_t kDcLookup[][256] = …;
constexpr int16_t kAcLookup[][256] = …;
void Transpose(uint8_t* const dst, const uint8_t* const src, int src_width,
int src_height) { … }
void FillUpperTriangle(uint8_t* dst, const uint8_t* src, int size) { … }
}
bool InitializeQuantizerMatrix(QuantizerMatrix* quantizer_matrix_ptr) { … }
int GetQIndex(const Segmentation& segmentation, int index, int base_qindex) { … }
Quantizer::Quantizer(int bitdepth, const QuantizerParameters* params)
: … { … }
int Quantizer::GetDcValue(Plane plane, int qindex) const { … }
int Quantizer::GetAcValue(Plane plane, int qindex) const { … }
}