[x265] [PATCH 3 of 8] remove reduce check on firstC2FlagIdx
Min Chen
chenm003 at 163.com
Thu Apr 30 12:49:35 CEST 2015
# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1430390933 -28800
# Node ID 62549ea896fe857e2470a23b79af4356fa5af792
# Parent e868d30fef884dbc885add30c6bda471db0f7abf
remove reduce check on firstC2FlagIdx
---
source/encoder/entropy.cpp | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff -r e868d30fef88 -r 62549ea896fe source/encoder/entropy.cpp
--- a/source/encoder/entropy.cpp Thu Apr 30 18:48:49 2015 +0800
+++ b/source/encoder/entropy.cpp Thu Apr 30 18:48:53 2015 +0800
@@ -1759,11 +1759,10 @@
if (!c1)
{
baseCtxMod = bIsLuma ? &m_contextState[OFF_ABS_FLAG_CTX + ctxSet] : &m_contextState[OFF_ABS_FLAG_CTX + NUM_ABS_FLAG_CTX_LUMA + ctxSet];
- if (firstC2FlagIdx != -1)
- {
- uint32_t symbol = absCoeff[firstC2FlagIdx] > 2;
- encodeBin(symbol, baseCtxMod[0]);
- }
+
+ X265_CHECK((firstC2FlagIdx != -1), "firstC2FlagIdx check failure\n");
+ uint32_t symbol = absCoeff[firstC2FlagIdx] > 2;
+ encodeBin(symbol, baseCtxMod[0]);
}
const int hiddenShift = (bHideFirstSign && signHidden) ? 1 : 0;
More information about the x265-devel
mailing list