[x265] [PATCH 3 of 4] compress: save CABAC context after intra decision
deepthi at multicorewareinc.com
deepthi at multicorewareinc.com
Fri Jul 11 04:25:36 CEST 2014
# HG changeset patch
# User Deepthi Nandakumar <deepthi at multicorewareinc.com>
# Date 1405045235 -19800
# Fri Jul 11 07:50:35 2014 +0530
# Node ID 65d4f5b4fd3af574cd6ee13cf7bdf3b16329aa00
# Parent b728ca41433f15a0fd630286cf579c7fcdb62820
compress: save CABAC context after intra decision.
Since CABAC encode happens only for rd > 2
diff -r b728ca41433f -r 65d4f5b4fd3a source/encoder/compress.cpp
--- a/source/encoder/compress.cpp Fri Jul 11 07:47:30 2014 +0530
+++ b/source/encoder/compress.cpp Fri Jul 11 07:50:35 2014 +0530
@@ -527,6 +527,10 @@
outBestCU = m_intraInInterCU[depth];
std::swap(m_bestPredYuv[depth], m_modePredYuv[5][depth]);
std::swap(m_bestRecoYuv[depth], m_tmpRecoYuv[depth]);
+ if (m_param->rdLevel > 2)
+ {
+ m_rdSbacCoders[depth][CI_TEMP_BEST].store(m_rdSbacCoders[depth][CI_NEXT_BEST]);
+ }
}
}
}
More information about the x265-devel
mailing list