History

add FME switch logic

sijchen committed 12 years ago

Commit e5001c81 parent 3f2ea774 files · +76 −21Browse files

Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 4 files). Show all

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+9−1
@@ -2468,6 +2468,7 @@ void PreprocessSliceCoding (sWelsEncCtx* pCtx) { · 2467 unmodified lines
24682468 if (pFeatureSearchPreparation->bFMESwitchFlag
24692469 && !pScreenBlockFeatureStorage->bRefBlockFeatureCalculated) {
24702470 pScreenBlockFeatureStorage->pFeatureOfBlockPointer = pFeatureSearchPreparation->pFeatureOfBlock;
2471+ //TODO: use ORIGIN of reference when preprocessing is ready
24712472 PerformFMEPreprocess( pFuncList, pCurLayer->pRefPic, pScreenBlockFeatureStorage );
24722473 }
24732474
@@ -2475,10 +2476,17 @@ void PreprocessSliceCoding (sWelsEncCtx* pCtx) { · 1 unmodified line
24752476 if (pScreenBlockFeatureStorage->bRefBlockFeatureCalculated) {
24762477 //TBC int32_t iIs16x16 = pScreenBlockFeatureStorage->iIs16x16;
24772478 }
2479+
2480+ //assign UpdateFMESwitch pointer
2481+ if (pFeatureSearchPreparation->bFMESwitchFlag) {
2482+ pFuncList->pfUpdateFMESwitch = UpdateFMESwitch;
2483+ } else {
2484+ pFuncList->pfUpdateFMESwitch = UpdateFMESwitchNull;
2485+ }
24782486 } else {
24792487 //reset some status when at I_SLICE
24802488 pFeatureSearchPreparation->bFMESwitchFlag = true;
2481− pFeatureSearchPreparation->uiFMEGoodFrameCount = FME_DEFAULT_GOOD_FRAME_NUM;
2489+ pFeatureSearchPreparation->uiFMEGoodFrameCount = FMESWITCH_DEFAULT_GOODFRAME_NUM;
24822490 }
24832491 }
24842492 }

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