]> granicus.if.org Git - libvpx/commitdiff
MinQ equations.
authorPaul Wilkins <paulwilkins@google.com>
Mon, 28 Nov 2011 11:48:07 +0000 (11:48 +0000)
committerPaul Wilkins <paulwilkins@google.com>
Tue, 29 Nov 2011 18:03:57 +0000 (18:03 +0000)
Slight tweaks to the new minq equations to bring results more into line with
original lookup tables.

Change-Id: I969fc87d95912df549b6775e83ee2345e84d4da0

vp8/encoder/onyx_if.c

index 5ee221b01832bd143dc1573f3dfa8ef1f69d60ed..799a656eb8157ea332489bacb3cf31f696283792 100644 (file)
@@ -205,30 +205,32 @@ void init_minq_luts()
     {
         maxq = vp8_convert_qindex_to_q(i);
 
+
         kf_low_motion_minq[i] = calculate_minq_index( maxq,
-                                                      0.00000006,
-                                                      -0.0000276,
-                                                      0.098,
+                                                      0.0000003,
+                                                      -0.000015,
+                                                      0.074,
                                                       0.0 );
+
         kf_high_motion_minq[i] = calculate_minq_index( maxq,
-                                                       0.00000024,
-                                                       -0.000201,
-                                                       0.154,
+                                                       0.00000034,
+                                                       -0.000125,
+                                                       0.13,
                                                        0.0 );
         gf_low_motion_minq[i] = calculate_minq_index( maxq,
-                                                      0.00000179,
-                                                      -0.000975,
-                                                      0.355,
+                                                      0.0000016,
+                                                      -0.00078,
+                                                      0.315,
                                                       0.0 );
         gf_mid_motion_minq[i] = calculate_minq_index( maxq,
-                                                      0.00000409,
-                                                      -0.00176,
-                                                      0.443,
+                                                      0.00000415,
+                                                      -0.0017,
+                                                      0.425,
                                                       0.0 );
         gf_high_motion_minq[i] = calculate_minq_index( maxq,
-                                                       0.00000819,
-                                                       -0.00286,
-                                                       0.532,
+                                                       0.00000725,
+                                                       -0.00235,
+                                                       0.47,
                                                        0.0  );
         inter_minq[i] = calculate_minq_index( maxq,
                                               0.00000271,