# HG changeset patch
# User Santhoshini Sekar <[email protected]>
# Date 1400654092 -19800
# Wed May 21 12:04:52 2014 +0530
# Node ID 810c4d7e75ac136b278fffc119a77a77824c2ea4
# Parent f39484bb3eecc8cfca0448c63f16fe8dacc54d7f
aq: fine tune aq logic to distribute bits even better
diff -r f39484bb3eec -r 810c4d7e75ac source/encoder/ratecontrol.cpp
--- a/source/encoder/ratecontrol.cpp Tue May 20 22:02:00 2014 -0500
+++ b/source/encoder/ratecontrol.cpp Wed May 21 12:04:52 2014 +0530
@@ -131,7 +131,7 @@
for (block_x = 0; block_x < maxCol; block_x += 16)
{
uint32_t energy = acEnergyCu(pic, block_x, block_y);
- qp_adj = pow(energy + 1, 0.125);
+ qp_adj = pow(energy + 1, 0.1);
pic->m_lowres.qpOffset[block_xy] = qp_adj;
avg_adj += qp_adj;
avg_adj_pow2 += qp_adj * qp_adj;
@@ -142,7 +142,7 @@
avg_adj /= ncu;
avg_adj_pow2 /= ncu;
strength = param->rc.aqStrength * avg_adj / bit_depth_correction;
- avg_adj = avg_adj - 0.5f * (avg_adj_pow2 - (14.f *
bit_depth_correction)) / avg_adj;
+ avg_adj = avg_adj - 0.5f * (avg_adj_pow2 - (11.f *
bit_depth_correction)) / avg_adj;
}
else
strength = param->rc.aqStrength * 1.0397f;
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel