History

add funtion pointer for search methods

sijchen committed 12 years ago

Commit f6952271 parent d8080ad7 files · +36 −32Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+6−1
@@ -2366,7 +2366,12 @@ void PreprocessSliceCoding (sWelsEncCtx* pCtx) { · 2365 unmodified lines
23662366 }
23672367
23682368 if (P_SLICE == pCtx->eSliceType) {
2369− pFuncList->pfMotionSearch = WelsMotionEstimateSearch;
2369+ pFuncList->pfMotionSearch[0] = WelsMotionEstimateSearch;
2370+ pFuncList->pfSearchMethod[BLOCK_16x16] =
2371+ pFuncList->pfSearchMethod[BLOCK_16x8] =
2372+ pFuncList->pfSearchMethod[BLOCK_8x16] =
2373+ pFuncList->pfSearchMethod[BLOCK_8x8] =
2374+ pFuncList->pfSearchMethod[BLOCK_4x4] = WelsDiamondSearch;
23702375 pFuncList->pfFirstIntraMode = WelsMdFirstIntraMode;
23712376 pFuncList->sSampleDealingFuncs.pfMeCost = pCtx->pFuncList->sSampleDealingFuncs.pfSampleSatd;
23722377 if (kbHighestSpatialLayer) {

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