#include <limits.h>
#include <math.h>
#include "av1/encoder/aq_complexity.h"
#include "av1/encoder/aq_variance.h"
#include "av1/encoder/encodeframe.h"
#include "av1/common/seg_common.h"
#include "av1/encoder/segmentation.h"
#include "aom_dsp/aom_dsp_common.h"
#define AQ_C_SEGMENTS …
#define DEFAULT_AQ2_SEG …
#define AQ_C_STRENGTHS …
static const double aq_c_q_adj_factor[AQ_C_STRENGTHS][AQ_C_SEGMENTS] = …;
static const double aq_c_transitions[AQ_C_STRENGTHS][AQ_C_SEGMENTS] = …;
static const double aq_c_var_thresholds[AQ_C_STRENGTHS][AQ_C_SEGMENTS] = …;
static int get_aq_c_strength(int q_index, aom_bit_depth_t bit_depth) { … }
static bool is_frame_aq_enabled(const AV1_COMP *const cpi) { … }
static bool is_sb_aq_enabled(const AV1_COMP *const cpi) { … }
void av1_setup_in_frame_q_adj(AV1_COMP *cpi) { … }
#define DEFAULT_LV_THRESH …
#define MIN_DEFAULT_LV_THRESH …
void av1_caq_select_segment(const AV1_COMP *cpi, MACROBLOCK *mb, BLOCK_SIZE bs,
int mi_row, int mi_col, int projected_rate) { … }