History

Minor optimzation on iRun for cavlc

Licai Guo committed 12 years ago

Commit 4e041d61 parent 427da1c1 file · +4 −1Browse files

Showing the changes to codec/decoder/core/src (1 of 1 file). Show all

Unified · Split

codec/decoder/core/src/parse_mb_syn_cavlc.cpp+4−1
@@ -649,6 +649,9 @@ static int32_t CavlcGetRunBefore (int32_t iRun[16], SReadBitsCache* pBitsCache, · 648 unmodified lines
649649 }
650650 }
651651 } else {
652+ for (int j = i; j < uiTotalCoeff; j++) {
653+ iRun[j] = 0;
654+ }
652655 return iUsedBits;
653656 }
654657
@@ -665,7 +668,7 @@ int32_t WelsResidualBlockCavlc (SVlcTable* pVlcTable, uint8_t* pNonZeroCountCach · 10 unmodified lines
665668 const uint8_t* kpZigzagTable, int32_t iResidualProperty, int16_t* pTCoeff, uint8_t uiQp,
666669 PWelsDecoderContext pCtx) {
667670 int32_t iLevel[16], iZerosLeft, iCoeffNum;
668− int32_t iRun[16] = {0};
671+ int32_t iRun[16];
669672 int32_t iCurNonZeroCacheIdx, i;
670673 const uint16_t* kpDequantCoeff = g_kuiDequantCoeff[uiQp];
671674 int8_t nA, nB, nC;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t