<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 18, 2017 at 11:18 PM, <span dir="ltr"><<a href="mailto:santhoshini@multicorewareinc.com" target="_blank">santhoshini@multicorewareinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Santhoshini Sekar <<a href="mailto:santhoshini@multicorewareinc.com">santhoshini@multicorewareinc.<wbr>com</a>><br>
# Date 1492074513 -19800<br>
# Thu Apr 13 14:38:33 2017 +0530<br>
# Node ID a7666d5948f9d10c0e8cd5fda6f936<wbr>962146756a<br>
# Parent 0b7d54dbb71a87a0c6514fee04a51c<wbr>4b29d5d704<br>
lambda: New 10-bit and 12-bit lambda2 table.<br></blockquote><div><br></div><div>Updated on default branch. Will be part of next release.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
diff --git a/source/common/constants.cpp b/source/common/constants.cpp<br>
--- a/source/common/constants.cpp<br>
+++ b/source/common/constants.cpp<br>
@@ -49,23 +49,23 @@<br>
7298.2423, 8192.0000, 9195.2091, 10321.2732, 11585.2375<br>
};<br>
<br>
-// lambda2 = pow(lambda, 2) * scale (0.85);<br>
+// lambda2 = 0.038 * EXP(0.234 * QP) * 256;<br>
double x265_lambda2_tab[QP_MAX_MAX + 1] =<br>
{<br>
- 13.6000, 17.1349, 21.5887, 27.2000, 34.2699,<br>
- 43.1773, 54.4000, 68.5397, 86.3546, 108.8000,<br>
- 137.0794, 172.7092, 217.6000, 274.1588, 345.4185,<br>
- 435.2000, 548.3176, 690.8369, 870.4000, 1096.6353,<br>
- 1381.6739, 1740.8000, 2193.2706, 2763.3478, 3481.6000,<br>
- 4386.5411, 5526.6955, 6963.2000, 8773.0822, 11053.3910,<br>
- 13926.4000, 17546.1645, 22106.7819, 27852.8000, 35092.3291,<br>
- 44213.5641, 55705.6000, 70184.6579, 88427.1282, 111411.2000,<br>
- 140369.3159, 176854.2563, 222822.4000, 280738.6324, 353708.5127,<br>
- 445644.8001, 561477.2648, 707417.0237, 891289.6000, 1122954.5277,<br>
- 1414834.0484, 1782579.2003, 2245909.0566, 2829668.0981, 3565158.4000,<br>
- 4491818.1146, 5659336.1938, 7130316.8013, 8983636.2264, 11318672.3923,<br>
- 14260633.6000, 17967272.4585, 22637344.7751, 28521267.1953, 35934544.9165,<br>
- 45274689.5567, 57042534.4000, 71869089.8338, 90549379.1181, 114085068.8008<br>
+ 9.7280, 12.2880, 15.5136, 19.6096, 24.7808,<br>
+ 31.3344, 39.6032, 50.0480, 63.2320, 79.8976,<br>
+ 100.9664, 127.5904, 161.2544, 203.7504, 257.4848,<br>
+ 325.3760, 411.1616, 519.5520, 656.5376, 829.6448,<br>
+ 1048.3712, 1324.7744, 1674.0608, 2115.4048, 2673.1264,<br>
+ 3377.8944, 4268.4416, 5393.7920, 6815.8464, 8612.8128,<br>
+ 10883.5328, 13752.9344, 17378.8160, 21960.6528, 27750.4768,<br>
+ 35066.7264, 44311.8848, 55994.4704, 70757.0944, 89411.8144,<br>
+ 112984.7552, 142772.5824, 180413.7728, 227978.8800, 288084.2496,<br>
+ 364036.0960, 460012.2112, 581291.8784, 734546.3040, 928205.3888,<br>
+ 1172921.6256, 1482155.9552, 1872918.2208, 2366702.7968, 2990670.9504,<br>
+ 3779144.8832, 4775495.6288, 6034528.7424, 7625499.0080, 9635919.8464,<br>
+ 12176377.0368, 15386611.7888, 19443207.2448, 24569301.7344, 31046862.8224,<br>
+ 39232197.1968, 49575549.9264, 62645870.6176, 79162109.3632, 100032763.4688<br>
};<br>
<br>
#elif X265_DEPTH == 10<br>
@@ -89,23 +89,23 @@<br>
1824.5606, 2048.0000, 2298.8023, 2580.3183, 2896.3094,<br>
};<br>
<br>
-// lambda2 = pow(lambda, 2) * scale (0.85);<br>
+// lambda2 = 0.038 * exp(0.234 * QP) * 16;<br>
double x265_lambda2_tab[QP_MAX_MAX + 1] =<br>
{<br>
- 0.8500, 1.0709, 1.3493, 1.7000, 2.1419,<br>
- 2.6986, 3.4000, 4.2837, 5.3972, 6.8000,<br>
- 8.5675, 10.7943, 13.6000, 17.1349, 21.5887,<br>
- 27.2000, 34.2699, 43.1773, 54.4000, 68.5397,<br>
- 86.3546, 108.8000, 137.0794, 172.7092, 217.6000,<br>
- 274.1588, 345.4185, 435.2000, 548.3176, 690.8369,<br>
- 870.4000, 1096.6353, 1381.6739, 1740.8000, 2193.2706,<br>
- 2763.3478, 3481.6000, 4386.5411, 5526.6955, 6963.2000,<br>
- 8773.0823, 11053.3910, 13926.4000, 17546.1645, 22106.7820,<br>
- 27852.8000, 35092.3290, 44213.5640, 55705.6000, 70184.6580,<br>
- 88427.1280, 111411.2000, 140369.3161, 176854.2561, 222822.4000,<br>
- 280738.6321, 353708.5122, 445644.8000, 561477.2643, 707417.0243,<br>
- 891289.6000, 1122954.5286, 1414834.0486, 1782579.2000, 2245909.0572,<br>
- 2829668.0973, 3565158.4000, 4491818.1144, 5659336.1946, 7130316.8000,<br>
+ 0.6080, 0.7680, 0.9696, 1.2256, 1.5488,<br>
+ 1.9584, 2.4752, 3.1280, 3.9520, 4.9936,<br>
+ 6.3104, 7.9744, 10.0784, 12.7344, 16.0928,<br>
+ 20.3360, 25.6976, 32.4720, 41.0336, 51.8528,<br>
+ 65.5232, 82.7984, 104.6288, 132.2128, 167.0704,<br>
+ 211.1184, 266.7776, 337.1120, 425.9904, 538.3008,<br>
+ 680.2208, 859.5584, 1086.1760, 1372.5408, 1734.4048,<br>
+ 2191.6704, 2769.4928, 3499.6544, 4422.3184, 5588.2384,<br>
+ 7061.5472, 8923.2864, 11275.8608, 14248.6800, 18005.2656,<br>
+ 22752.2560, 28750.7632, 36330.7424, 45909.1440, 58012.8368,<br>
+ 73307.6016, 92634.7472, 117057.3888, 147918.9248, 186916.9344,<br>
+ 236196.5552, 298468.4768, 377158.0464, 476593.6880, 602244.9904,<br>
+ 761023.5648, 961663.2368, 1215200.4528, 1535581.3584, 1940428.9264,<br>
+ 2452012.3248, 3098471.8704, 3915366.9136, 4947631.8352, 6252047.7168<br>
};<br>
<br>
#else /* !HIGH_BIT_DEPTH */<br>
<br>______________________________<wbr>_________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/<wbr>listinfo/x265-devel</a><br>
<br></blockquote></div><br></div></div>