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
649 }649 }
650 }650 }
651 } else {651 } else {
652 for (int j = i; j < uiTotalCoeff; j++) {
653 iRun[j] = 0;
654 }
652 return iUsedBits;655 return iUsedBits;
653 }656 }
654 657
@@ -665,7 +668,7 @@ int32_t WelsResidualBlockCavlc (SVlcTable* pVlcTable, uint8_t* pNonZeroCountCach · 10 unmodified lines
665 const uint8_t* kpZigzagTable, int32_t iResidualProperty, int16_t* pTCoeff, uint8_t uiQp,668 const uint8_t* kpZigzagTable, int32_t iResidualProperty, int16_t* pTCoeff, uint8_t uiQp,
666 PWelsDecoderContext pCtx) {669 PWelsDecoderContext pCtx) {
667 int32_t iLevel[16], iZerosLeft, iCoeffNum;670 int32_t iLevel[16], iZerosLeft, iCoeffNum;
668 int32_t iRun[16] = {0};671 int32_t iRun[16];
669 int32_t iCurNonZeroCacheIdx, i;672 int32_t iCurNonZeroCacheIdx, i;
670 const uint16_t* kpDequantCoeff = g_kuiDequantCoeff[uiQp];673 const uint16_t* kpDequantCoeff = g_kuiDequantCoeff[uiQp];
671 int8_t nA, nB, nC;674 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