[x265] [PATCH 1 of 3] Chroma QP Offset: increase chroma QP when psy-rd is enabled

deepthi at multicorewareinc.com deepthi at multicorewareinc.com
Wed Jun 25 02:22:14 CEST 2014


# HG changeset patch
# User Deepthi Nandakumar <deepthi at multicorewareinc.com>
# Date 1403605850 -19800
#      Tue Jun 24 16:00:50 2014 +0530
# Node ID 812dc9f61549299e686e6e12c7c4770aad792eec
# Parent  18f936182df50cc5126d1707cd7c2b5fef289ccb
Chroma QP Offset: increase chroma QP when psy-rd is enabled.

diff -r 18f936182df5 -r 812dc9f61549 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Mon Jun 23 17:03:49 2014 -0700
+++ b/source/encoder/encoder.cpp	Tue Jun 24 16:00:50 2014 +0530
@@ -1267,6 +1267,13 @@
     if (p->rdLevel < 5)
         p->psyRd = 0.0;
 
+    /* In 444, chroma gets twice as much resolution, so halve quality when psy-rd is enabled */
+    if (p->internalCsp == X265_CSP_I444 && p->psyRd)
+    {
+        p->cbQpOffset += 6;
+        p->crQpOffset += 6;
+    }
+
     // disable RDOQ if psy-rd is enabled; until we make it psy-aware
     m_bEnableRDOQ = p->psyRd == 0.0 && p->rdLevel >= 4;
 


More information about the x265-devel mailing list