summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_tpl_model.h
diff options
context:
space:
mode:
authorJerome Jiang <jianj@google.com>2023-04-20 15:09:00 -0400
committerJerome Jiang <jianj@google.com>2023-04-21 19:18:37 -0400
commit24802201acd7dfa15928bcc47c1e270e7db5afac (patch)
tree3afcc9a4d359f060384e78f3e715b25912e2540a /vp9/encoder/vp9_tpl_model.h
parenta425371ccdfc5a6faf17af216e16c2ad2ccb4d05 (diff)
downloadlibvpx-24802201acd7dfa15928bcc47c1e270e7db5afac.tar.gz
Reland "Calculate recrf_dist and recrf_rate"
This is a reland of commit 3c59378e4eac2d241fba8b26e660318b850e5773 Addressed issues from the previous CL: - Both recon_error and rate_cost are scaled up - recon_error and rate_cost are not accumulated across ref frames, instead they are calculated with the best ref frame picked. - get_quantize_error() is put where it was, so there is no behavior change for vp9. Bug: b/273736974 Original change's description: > Calculate recrf_dist and recrf_rate > > Change-Id: I74e74807436b92d729e2ccaab96149780f1f52d9 Change-Id: I20e1f5543e83b576a074bd4e6b44d99da65f4b56
Diffstat (limited to 'vp9/encoder/vp9_tpl_model.h')
-rw-r--r--vp9/encoder/vp9_tpl_model.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vp9/encoder/vp9_tpl_model.h b/vp9/encoder/vp9_tpl_model.h
index 86a7734f8..04beb2261 100644
--- a/vp9/encoder/vp9_tpl_model.h
+++ b/vp9/encoder/vp9_tpl_model.h
@@ -20,6 +20,8 @@ extern "C" {
#endif
#define log2f(x) (log(x) / (float)M_LOG2_E)
+#define TPL_DEP_COST_SCALE_LOG2 4
+
typedef struct GF_PICTURE {
YV12_BUFFER_CONFIG *frame;
int ref_frame[3];