From d9655e42b84a405a291ad142df748cc7e0364916 Mon Sep 17 00:00:00 2001 From: Deb Mukherjee Date: Thu, 10 Oct 2013 17:24:55 -0700 Subject: Change in rddiv parameter to make it a power of 2 Converts the constant rddiv parameter to 128 (from 100) and implements RDCOST with bit-shift rather than multiplication. Other parameters are also adjusted to roughly keep the same balance between Rate and Distortion. There is a slight speed-up of about 0.5-1% (at speed 0) as testted on football_cif. There is a slight change in performance due to small change in the parameters. derfraw300: +0.033% stdhdraw250; +0.102% Change-Id: I70ac69f58fa71c83108f68fe41796cd19d1fc760 --- vp9/encoder/vp9_rdopt.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vp9/encoder/vp9_rdopt.h') diff --git a/vp9/encoder/vp9_rdopt.h b/vp9/encoder/vp9_rdopt.h index c86ea2723..aa4068d76 100644 --- a/vp9/encoder/vp9_rdopt.h +++ b/vp9/encoder/vp9_rdopt.h @@ -12,8 +12,10 @@ #ifndef VP9_ENCODER_VP9_RDOPT_H_ #define VP9_ENCODER_VP9_RDOPT_H_ +#define RDDIV_BITS 7 + #define RDCOST(RM, DM, R, D) \ - (((128 + ((int64_t)R) * (RM)) >> 8) + ((int64_t)DM) * (D)) + (((128 + ((int64_t)R) * (RM)) >> 8) + (D << DM)) #define QIDX_SKIP_THRESH 115 void vp9_initialize_rd_consts(VP9_COMP *cpi, int qindex); -- cgit v1.2.3