History

use function pointer in reference frame management

ruil2 committed 12 years ago

Commit e7603d81 parent 9a812605 files · +52 −12Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+3−3
@@ -2886,8 +2886,8 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo * pFbi, const SSou · 2885 unmodified lines
28862886
28872887 WelsInitCurrentLayer (pCtx, iCurWidth, iCurHeight);
28882888
2889− WelsMarkPic (pCtx);
2890− if (!WelsBuildRefList (pCtx, pCtx->iPOC)) {
2889+ pCtx->pFuncList->pMarkPic(pCtx);
2890+ if (!pCtx->pFuncList->pBuildRefList (pCtx, pCtx->iPOC,0)) {
28912891 // Force coding IDR as followed
28922892 ForceCodingIDR (pCtx);
28932893 WelsLog (pCtx, WELS_LOG_WARNING, "WelsEncoderEncodeExt(), WelsBuildRefList failed for P frames, pCtx->iNumRef0= %d. ForceCodingIDR!\n",
@@ -3139,7 +3139,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo * pFbi, const SSou · 245 unmodified lines
31393139
31403140 // reference picture list update
31413141 if (eNalRefIdc != NRI_PRI_LOWEST) {
3142− if (!WelsUpdateRefList (pCtx)) {
3142+ if (!pCtx->pFuncList->pUpdateRefList (pCtx)) {
31433143 // Force coding IDR as followed
31443144 ForceCodingIDR (pCtx);
31453145 WelsLog (pCtx, WELS_LOG_WARNING, "WelsEncoderEncodeExt(), WelsUpdateRefList failed. ForceCodingIDR!\n");

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