History

simplify stash pop bs

ruil2 committed 12 years ago

Commit c8299d71 parent db11ba71 file · +2 −12Browse files

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

Unified · Split

codec/encoder/core/src/svc_encode_slice.cpp+2−12
@@ -593,11 +593,7 @@ TRY_REENCODING: · 592 unmodified lines
593593 sDss.iCurrentPos = BsGetBitsPos (pBs);
594594
595595 if (DynSlcJudgeSliceBoundaryStepBack (pEncCtx, pSlice, pSliceCtx, pCurMb, &sDss)) { //islice
596− //stack pBs pointer
597− pBs->pBufPtr = sDss.pBsStackBufPtr;
598− pBs->uiCurBits = sDss.uiBsStackCurBits;
599− pBs->iLeftBits = sDss.iBsStackLeftBits;
600−
596+ StashPopMBStatus (&sDss, pBs, pSlice);
601597 pCurLayer->pLastCodedMbIdxOfPartition[kiPartitionId] = iCurMbIdx -
602598 1; // update pLastCodedMbIdxOfPartition, need to -1 due to stepping back
603599 ++ pCurLayer->pNumSliceCodedOfPartition[kiPartitionId];
@@ -1116,13 +1112,7 @@ TRY_REENCODING: · 512 unmodified lines
11161112 //DYNAMIC_SLICING_ONE_THREAD - MultiD
11171113 sDss.iCurrentPos = BsGetBitsPos (pBs);
11181114 if (DynSlcJudgeSliceBoundaryStepBack (pEncCtx, pSlice, pSliceCtx, pCurMb, &sDss)) {
1119− //stack pBs pointer
1120− pBs->pBufPtr = sDss.pBsStackBufPtr;
1121− pBs->uiCurBits = sDss.uiBsStackCurBits;
1122− pBs->iLeftBits = sDss.iBsStackLeftBits;
1123−
1124− iMbSkipRun = sDss.iMbSkipRunStack;
1125−
1115+ StashPopMBStatus (&sDss, pBs, pSlice, &iMbSkipRun);
11261116 pCurLayer->pLastCodedMbIdxOfPartition[kiPartitionId] = iCurMbIdx -
11271117 1; // update pLastCodedMbIdxOfPartition, need to -1 due to stepping back
11281118 ++ pCurLayer->pNumSliceCodedOfPartition[kiPartitionId];

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