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