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
593 sDss.iCurrentPos = BsGetBitsPos (pBs);593 sDss.iCurrentPos = BsGetBitsPos (pBs);
594 594
595 if (DynSlcJudgeSliceBoundaryStepBack (pEncCtx, pSlice, pSliceCtx, pCurMb, &sDss)) { //islice595 if (DynSlcJudgeSliceBoundaryStepBack (pEncCtx, pSlice, pSliceCtx, pCurMb, &sDss)) { //islice
596 //stack pBs pointer596 StashPopMBStatus (&sDss, pBs, pSlice);
597 pBs->pBufPtr = sDss.pBsStackBufPtr;
598 pBs->uiCurBits = sDss.uiBsStackCurBits;
599 pBs->iLeftBits = sDss.iBsStackLeftBits;
600
601 pCurLayer->pLastCodedMbIdxOfPartition[kiPartitionId] = iCurMbIdx -597 pCurLayer->pLastCodedMbIdxOfPartition[kiPartitionId] = iCurMbIdx -
602 1; // update pLastCodedMbIdxOfPartition, need to -1 due to stepping back598 1; // update pLastCodedMbIdxOfPartition, need to -1 due to stepping back
603 ++ pCurLayer->pNumSliceCodedOfPartition[kiPartitionId];599 ++ pCurLayer->pNumSliceCodedOfPartition[kiPartitionId];
@@ -1116,13 +1112,7 @@ TRY_REENCODING: · 512 unmodified lines
1116 //DYNAMIC_SLICING_ONE_THREAD - MultiD1112 //DYNAMIC_SLICING_ONE_THREAD - MultiD
1117 sDss.iCurrentPos = BsGetBitsPos (pBs);1113 sDss.iCurrentPos = BsGetBitsPos (pBs);
1118 if (DynSlcJudgeSliceBoundaryStepBack (pEncCtx, pSlice, pSliceCtx, pCurMb, &sDss)) {1114 if (DynSlcJudgeSliceBoundaryStepBack (pEncCtx, pSlice, pSliceCtx, pCurMb, &sDss)) {
1119 //stack pBs pointer1115 StashPopMBStatus (&sDss, pBs, pSlice, &iMbSkipRun);
1120 pBs->pBufPtr = sDss.pBsStackBufPtr;
1121 pBs->uiCurBits = sDss.uiBsStackCurBits;
1122 pBs->iLeftBits = sDss.iBsStackLeftBits;
1123
1124 iMbSkipRun = sDss.iMbSkipRunStack;
1125
1126 pCurLayer->pLastCodedMbIdxOfPartition[kiPartitionId] = iCurMbIdx -1116 pCurLayer->pLastCodedMbIdxOfPartition[kiPartitionId] = iCurMbIdx -
1127 1; // update pLastCodedMbIdxOfPartition, need to -1 due to stepping back1117 1; // update pLastCodedMbIdxOfPartition, need to -1 due to stepping back
1128 ++ pCurLayer->pNumSliceCodedOfPartition[kiPartitionId];1118 ++ 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