# HG changeset patch # User Deepthi Devaki <deepthidev...@multicorewareinc.com> # Date 1386142598 -19800 # Node ID cf9d0fbba6e9fe30cede78e40cc418198c52f2b5 # Parent bd58942f9dd2f717f51081183cdf301d20dc1d56 rdlevel: skip Intra if inter/merge sa8d less than a threshold
In higher rdlevels Intra is skipped if inter/merge cu cbf is 0. A threshold of sa8d expects that cu cbf will be 0. Thresholds have to be refined further. diff -r bd58942f9dd2 -r cf9d0fbba6e9 source/encoder/compress.cpp --- a/source/encoder/compress.cpp Wed Dec 04 13:06:17 2013 +0530 +++ b/source/encoder/compress.cpp Wed Dec 04 13:06:38 2013 +0530 @@ -516,6 +516,11 @@ bdoIntra = (outBestCU->getCbf(0, TEXT_LUMA) || outBestCU->getCbf(0, TEXT_CHROMA_U) || outBestCU->getCbf(0, TEXT_CHROMA_V)); } + else + { + uint32_t threshold[4] = { 20000, 6000, 1600, 500 }; + bdoIntra = (outBestCU->m_totalDistortion > threshold[depth]); + } if (bdoIntra) { xComputeCostIntraInInter(m_intraInInterCU[depth], SIZE_2Nx2N); _______________________________________________ x265-devel mailing list x265-devel@videolan.org https://mailman.videolan.org/listinfo/x265-devel