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
2366 }2366 }
2367 2367
2368 if (P_SLICE == pCtx->eSliceType) {2368 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;
2370 pFuncList->pfFirstIntraMode = WelsMdFirstIntraMode;2375 pFuncList->pfFirstIntraMode = WelsMdFirstIntraMode;
2371 pFuncList->sSampleDealingFuncs.pfMeCost = pCtx->pFuncList->sSampleDealingFuncs.pfSampleSatd;2376 pFuncList->sSampleDealingFuncs.pfMeCost = pCtx->pFuncList->sSampleDealingFuncs.pfSampleSatd;
2372 if (kbHighestSpatialLayer) {2377 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