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
2886 2886
2887 WelsInitCurrentLayer (pCtx, iCurWidth, iCurHeight);2887 WelsInitCurrentLayer (pCtx, iCurWidth, iCurHeight);
2888 2888
2889 WelsMarkPic (pCtx);2889 pCtx->pFuncList->pMarkPic(pCtx);
2890 if (!WelsBuildRefList (pCtx, pCtx->iPOC)) {2890 if (!pCtx->pFuncList->pBuildRefList (pCtx, pCtx->iPOC,0)) {
2891 // Force coding IDR as followed2891 // Force coding IDR as followed
2892 ForceCodingIDR (pCtx);2892 ForceCodingIDR (pCtx);
2893 WelsLog (pCtx, WELS_LOG_WARNING, "WelsEncoderEncodeExt(), WelsBuildRefList failed for P frames, pCtx->iNumRef0= %d. ForceCodingIDR!\n",2893 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
3139 3139
3140 // reference picture list update3140 // reference picture list update
3141 if (eNalRefIdc != NRI_PRI_LOWEST) {3141 if (eNalRefIdc != NRI_PRI_LOWEST) {
3142 if (!WelsUpdateRefList (pCtx)) {3142 if (!pCtx->pFuncList->pUpdateRefList (pCtx)) {
3143 // Force coding IDR as followed3143 // Force coding IDR as followed
3144 ForceCodingIDR (pCtx);3144 ForceCodingIDR (pCtx);
3145 WelsLog (pCtx, WELS_LOG_WARNING, "WelsEncoderEncodeExt(), WelsUpdateRefList failed. ForceCodingIDR!\n");3145 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