[x265] (no subject)

Satoshi Nakagawa nakagawa424 at oki.com
Sat Dec 20 13:31:27 CET 2014


# HG changeset patch
# User Satoshi Nakagawa <nakagawa424 at oki.com>
# Date 1419078434 -32400
#      Sat Dec 20 21:27:14 2014 +0900
# Node ID 2894938c4de707ae69f8ae560bee2b3c323fd357
# Parent  78ae7996a1ceb60d24cff790cc2fa233d4c31435
fix 4:4:4 rd<=1

diff -r 78ae7996a1ce -r 2894938c4de7 source/encoder/search.cpp
--- a/source/encoder/search.cpp	Wed Dec 17 14:31:50 2014 -0600
+++ b/source/encoder/search.cpp	Sat Dec 20 21:27:14 2014 +0900
@@ -1591,17 +1591,19 @@
     uint32_t log2TrSizeC = cu.m_log2CUSize[0] - m_hChromaShift;
     uint32_t tuSize = 1 << log2TrSizeC;
     int32_t scaleTuSize = tuSize;
+    uint32_t tuDepth = 0;
     int32_t costShift = 0;
 
     if (tuSize > 32)
     {
         scaleTuSize = 32;
+        tuDepth = 1;
         costShift = 2;
         log2TrSizeC = 5;
     }
 
-    Predict::initAdiPatternChroma(cu, cuGeom, 0, 0, 1);
-    Predict::initAdiPatternChroma(cu, cuGeom, 0, 0, 2);
+    Predict::initAdiPatternChroma(cu, cuGeom, 0, tuDepth, 1);
+    Predict::initAdiPatternChroma(cu, cuGeom, 0, tuDepth, 2);
     cu.getAllowedChromaDir(0, modeList);
 
     // check chroma modes


More information about the x265-devel mailing list