shithub: libvpx

Download patch

ref: 9fd2767200f734958f5e48fd2bd1b7765b93a927
parent: 1cf2272347f8a07b29a0ee2d9d6445826f2f7e6f
parent: 0ca7855f67a3a084b0f8de45cec14f8467619c71
author: Yunqing Wang <yunqingwang@google.com>
date: Wed Sep 4 06:26:37 EDT 2013

Merge "Use correct bit cost while static-thresh is on"

--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -2916,8 +2916,8 @@
                 (sse_v - var_v < thresh_dc || sse_v == var_v)) {
               x->skip = 1;
 
-              *rate2 = 500;
-              *rate_uv = 0;
+              // The cost of skip bit needs to be added.
+              *rate2 += vp9_cost_bit(vp9_get_pred_prob_mbskip(cm, xd), 1);
 
               // Scaling factor for SSE from spatial domain to frequency domain
               // is 16. Adjust distortion accordingly.