[x265] [PATCH] cli: set aq strength to 0 in CQP

aarthi at multicorewareinc.com aarthi at multicorewareinc.com
Wed Apr 2 08:11:37 CEST 2014


# HG changeset patch
# User Aarthi Thirumalai
# Date 1396419089 -19800
#      Wed Apr 02 11:41:29 2014 +0530
# Node ID 4d614af01c0c101b7862cd9aa5675457b14af1d4
# Parent  03bad90e94adce6fb89c6d5edb86919a1e783402
cli: set aq strength to 0 in CQP

diff -r 03bad90e94ad -r 4d614af01c0c source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Wed Apr 02 06:51:35 2014 +0530
+++ b/source/encoder/encoder.cpp	Wed Apr 02 11:41:29 2014 +0530
@@ -1415,6 +1415,7 @@
         p->rc.aqMode = X265_AQ_NONE;
         p->rc.bitrate = 0;
         p->rc.cuTree = 0;
+        p->rc.aqStrength = 0;
     }
 
     if (p->rc.aqMode == 0 && p->rc.cuTree)
@@ -1434,6 +1435,11 @@
         p->rc.aqMode = X265_AQ_NONE;
     }
 
+    if (p->rc.aqMode = X265_AQ_NONE && p->rc.cuTree == 0)
+    {
+        p->rc.aqStrength = 0;
+    }
+
     if (p->internalCsp != X265_CSP_I420)
     {
         x265_log(p, X265_LOG_WARNING, "!! HEVC Range Extension specifications are not finalized !!\n");


More information about the x265-devel mailing list