Add a rd-model based on a 2D surface fit.
Fits a surface for rate and distortion using as features:
log2(sse_norm+1) and log2((sse_norm+1)/qstep^2)
Change-Id: Ia750900e928b9940b46421d6f513656d6df418b6
diff --git a/av1/encoder/rd.h b/av1/encoder/rd.h
index 692367d..0f991ff 100644
--- a/av1/encoder/rd.h
+++ b/av1/encoder/rd.h
@@ -392,6 +392,9 @@
void av1_model_rd_from_var_lapndz(int64_t var, unsigned int n,
unsigned int qstep, int *rate, int64_t *dist);
+void av1_model_rd_surffit(double xm, double yl, double *rate_f,
+ double *distbysse_f);
+
int av1_get_switchable_rate(const AV1_COMMON *const cm, MACROBLOCK *x,
const MACROBLOCKD *xd);