#ifndef AOM_AV1_COMMON_QUANT_COMMON_H_
#define AOM_AV1_COMMON_QUANT_COMMON_H_
#include <stdbool.h>
#include "aom/aom_codec.h"
#include "av1/common/seg_common.h"
#include "av1/common/enums.h"
#include "av1/common/entropy.h"
#ifdef __cplusplus
extern "C" {
#endif
#define MINQ …
#define MAXQ …
#define QINDEX_RANGE …
#define QINDEX_BITS …
#define QM_LEVEL_BITS …
#define NUM_QM_LEVELS …
#define DEFAULT_QM_Y …
#define DEFAULT_QM_U …
#define DEFAULT_QM_V …
#define DEFAULT_QM_FIRST …
#define DEFAULT_QM_LAST …
#define LOSSLESS_Q_STEP …
struct AV1Common;
struct CommonQuantParams;
struct macroblockd;
int16_t av1_dc_quant_QTX(int qindex, int delta, aom_bit_depth_t bit_depth);
int16_t av1_ac_quant_QTX(int qindex, int delta, aom_bit_depth_t bit_depth);
int av1_get_qindex(const struct segmentation *seg, int segment_id,
int base_qindex);
bool av1_use_qmatrix(const struct CommonQuantParams *quant_params,
const struct macroblockd *xd, int segment_id);
static inline int aom_get_qmlevel(int qindex, int first, int last) { … }
void av1_qm_init(struct CommonQuantParams *quant_params, int num_planes);
const qm_val_t *av1_iqmatrix(const struct CommonQuantParams *quant_params,
int qmlevel, int plane, TX_SIZE tx_size);
const qm_val_t *av1_qmatrix(const struct CommonQuantParams *quant_params,
int qmlevel, int plane, TX_SIZE tx_size);
const qm_val_t *av1_get_iqmatrix(const struct CommonQuantParams *quant_params,
const struct macroblockd *xd, int plane,
TX_SIZE tx_size, TX_TYPE tx_type);
const qm_val_t *av1_get_qmatrix(const struct CommonQuantParams *quant_params,
const struct macroblockd *xd, int plane,
TX_SIZE tx_size, TX_TYPE tx_type);
#ifdef __cplusplus
}
#endif
#endif