ref: 793c80df8bc77d8f526b650a797e3b80f0eb16e1
parent: 1ccaf1175b986f7fb0f000c9d800a5bcd98433fa
author: dongzhang <dongzha@cisco.com>
date: Tue Apr 29 10:14:47 EDT 2014
Remove useless code
--- a/codec/decoder/core/src/decode_slice.cpp
+++ b/codec/decoder/core/src/decode_slice.cpp
@@ -1056,11 +1056,9 @@
void SetNonZeroCount_c (int16_t* pBlock, int8_t* pNonZeroCount) {
int32_t i;
- int32_t iIndex;
for (i = 0; i < 24; i++) {
- iIndex = g_kuiMbNonZeroCountIdx[i];
- pNonZeroCount[iIndex] = !!pNonZeroCount[iIndex];
+ pNonZeroCount[i] = !!pNonZeroCount[i];
}
}
--- a/codec/encoder/core/src/deblocking.cpp
+++ b/codec/encoder/core/src/deblocking.cpp
@@ -784,11 +784,9 @@
void WelsNonZeroCount_c (int8_t* pNonZeroCount) {
int32_t i;
- int32_t iIndex;
for (i = 0; i < 24; i++) {
- iIndex = g_kuiMbCountScan4Idx[i];
- pNonZeroCount[iIndex] = !!pNonZeroCount[iIndex];
+ pNonZeroCount[i] = !!pNonZeroCount[i];
}
}
void WelsBlockFuncInit (PSetNoneZeroCountZeroFunc* pfSetNZCZero, int32_t iCpu) {