[x265] [PATCH] quant: Enforce QP range after adding bit-depth offsets

deepthi at multicorewareinc.com deepthi at multicorewareinc.com
Tue Jun 17 12:07:24 CEST 2014


# HG changeset patch
# User Deepthi Nandakumar <deepthi at multicorewareinc.com>
# Date 1402999633 -19800
#      Tue Jun 17 15:37:13 2014 +0530
# Node ID 7e8cebcba1763adf88c4cd06a31ed41ef5ffb0d3
# Parent  3a19a9fdb103979e65a9daf15c46c0735e8d743e
quant: Enforce QP range after adding bit-depth offsets

diff -r 3a19a9fdb103 -r 7e8cebcba176 source/Lib/TLibCommon/TComTrQuant.cpp
--- a/source/Lib/TLibCommon/TComTrQuant.cpp	Tue Jun 17 14:07:26 2014 +0530
+++ b/source/Lib/TLibCommon/TComTrQuant.cpp	Tue Jun 17 15:37:13 2014 +0530
@@ -123,6 +123,7 @@
     if (ttype == TEXT_LUMA)
     {
         qpScaled = qpy + qpBdOffset;
+        qpScaled = Clip3(-QP_BD_OFFSET, MAX_QP, qpScaled);
     }
     else
     {


More information about the x265-devel mailing list