#include <assert.h>
#include <limits.h>
#include <math.h>
#include "config/aom_dsp_rtcd.h"
#include "aom_dsp/aom_dsp_common.h"
#include "aom_scale/yv12config.h"
#include "aom/aom_integer.h"
#include "av1/encoder/context_tree.h"
#include "av1/encoder/av1_noise_estimate.h"
#include "av1/encoder/encoder.h"
#if CONFIG_AV1_TEMPORAL_DENOISING
#include "av1/encoder/av1_temporal_denoiser.h"
#endif
#if CONFIG_AV1_TEMPORAL_DENOISING
static inline int noise_est_svc(const struct AV1_COMP *const cpi) { … }
#endif
void av1_noise_estimate_init(NOISE_ESTIMATE *const ne, int width, int height) { … }
static int enable_noise_estimation(AV1_COMP *const cpi) { … }
#if CONFIG_AV1_TEMPORAL_DENOISING
static void copy_frame(YV12_BUFFER_CONFIG *const dest,
const YV12_BUFFER_CONFIG *const src) { … }
#endif
NOISE_LEVEL av1_noise_estimate_extract_level(NOISE_ESTIMATE *const ne) { … }
void av1_update_noise_estimate(AV1_COMP *const cpi) { … }