[x265] [PATCH 1 of 1] rd: fix wrong chroma mode used for mode decision

deepthidevaki at multicorewareinc.com deepthidevaki at multicorewareinc.com
Tue Dec 17 08:11:03 CET 2013


# HG changeset patch
# User Deepthi Devaki <deepthidevaki at multicorewareinc.com>
# Date 1387264204 -19800
# Node ID 733a48d9f006cf1ec26411edfb6638e208eca8fe
# Parent  dab555fff5bda83ba14d073c4a5268df81547fcb
rd: fix wrong chroma mode used for mode decision

diff -r dab555fff5bd -r 733a48d9f006 source/Lib/TLibEncoder/TEncSearch.cpp
--- a/source/Lib/TLibEncoder/TEncSearch.cpp	Mon Dec 16 15:33:45 2013 +0530
+++ b/source/Lib/TLibEncoder/TEncSearch.cpp	Tue Dec 17 12:40:04 2013 +0530
@@ -2147,7 +2147,9 @@
         for (int chromaId = 0; chromaId < 2; chromaId++)
         {
             int sad = 0;
-            uint32_t chromaPredMode = mode;
+            uint32_t chromaPredMode = modeList[mode];
+            if (chromaPredMode == DM_CHROMA_IDX)
+                chromaPredMode = cu->getLumaIntraDir(0);
             Pel*     fenc           = (chromaId > 0 ? fencYuv->getCrAddr(absPartIdx) : fencYuv->getCbAddr(absPartIdx));
             Pel*     pred           = (chromaId > 0 ? predYuv->getCrAddr(absPartIdx) : predYuv->getCbAddr(absPartIdx));
 


More information about the x265-devel mailing list