History

add iSubSeqId to make the meaning clearly.

ruil2 committed 12 years ago

Commit 3fefb081 parent 82a4bee5 files · +14 −34Browse 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+7−13
@@ -2885,7 +2885,6 @@ int32_t WelsEncoderEncodeParameterSets (sWelsEncCtx* pCtx, void* pDst) { · 2884 unmodified lines
28852885 int32_t iReturn = WelsWriteParameterSets (pCtx, &pLayerBsInfo->pNalLengthInByte[0], &iCountNal);
28862886 WELS_VERIFY_RETURN_IFNEQ (iReturn, ENC_RETURN_SUCCESS)
28872887
2888− pLayerBsInfo->uiPriorityId = 0;
28892888 pLayerBsInfo->uiSpatialId = 0;
28902889 pLayerBsInfo->uiTemporalId = 0;
28912890 pLayerBsInfo->uiQualityId = 0;
@@ -2948,13 +2947,13 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 56 unmodified lines
29482947 iSpatialNum = pCtx->pVpp->BuildSpatialPicList (pCtx, pSrcPic);
29492948 if (iSpatialNum < 1) { // skip due to temporal layer settings (different frame rate)
29502949 ++ pCtx->iCodingIndex;
2951− pFbi->eOutputFrameType = videoFrameTypeSkip;
2950+ pFbi->eFrameType = videoFrameTypeSkip;
29522951 return ENC_RETURN_SUCCESS;
29532952 }
29542953
29552954 eFrameType = DecideFrameType (pCtx, iSpatialNum);
29562955 if (eFrameType == videoFrameTypeSkip) {
2957− pFbi->eOutputFrameType = eFrameType;
2956+ pFbi->eFrameType = eFrameType;
29582957 return ENC_RETURN_SUCCESS;
29592958 }
29602959
@@ -2969,7 +2968,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 8 unmodified lines
29692968 }
29702969 }
29712970 if (true == bSkipMustFlag) {
2972− pFbi->eOutputFrameType = videoFrameTypeSkip;
2971+ pFbi->eFrameType = videoFrameTypeSkip;
29732972 return ENC_RETURN_SUCCESS;
29742973 }
29752974 }
@@ -2992,7 +2991,6 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 16 unmodified lines
29922991 pCtx->iEncoderError = WelsWriteParameterSets (pCtx, &pLayerBsInfo->pNalLengthInByte[0], &iCountNal);
29932992 WELS_VERIFY_RETURN_IFNEQ (pCtx->iEncoderError, ENC_RETURN_SUCCESS)
29942993
2995− pLayerBsInfo->uiPriorityId = 0;
29962994 pLayerBsInfo->uiSpatialId = 0;
29972995 pLayerBsInfo->uiTemporalId = 0;
29982996 pLayerBsInfo->uiQualityId = 0;
@@ -3095,7 +3093,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 96 unmodified lines
30953093 WelsLog (pCtx, WELS_LOG_WARNING,
30963094 "WelsEncoderEncodeExt(), WelsBuildRefList failed for P frames, pCtx->iNumRef0= %d. ForceCodingIDR!\n",
30973095 pCtx->iNumRef0);
3098− pFbi->eOutputFrameType = videoFrameTypeIDR;
3096+ pFbi->eFrameType = videoFrameTypeIDR;
30993097 pCtx->iEncoderError = ENC_RETURN_CORRECTED;
31003098 return ENC_RETURN_CORRECTED;
31013099 }
@@ -3150,7 +3148,6 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 48 unmodified lines
31503148 pLayerBsInfo->uiSpatialId = iCurDid;
31513149 pLayerBsInfo->uiTemporalId = iCurTid;
31523150 pLayerBsInfo->uiQualityId = 0;
3153− pLayerBsInfo->uiPriorityId = 0;
31543151 pLayerBsInfo->iNalCount = ++ iNalIdxInLayer;
31553152 }
31563153 // for dynamic slicing single threading..
@@ -3336,7 +3333,6 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 179 unmodified lines
33363333 pLayerBsInfo->uiSpatialId = iCurDid;
33373334 pLayerBsInfo->uiTemporalId = iCurTid;
33383335 pLayerBsInfo->uiQualityId = 0;
3339− pLayerBsInfo->uiPriorityId = 0;
33403336 pLayerBsInfo->iNalCount = iNalIdxInLayer;
33413337 }
33423338 }
@@ -3360,7 +3356,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 17 unmodified lines
33603356 ForceCodingIDR (pCtx);
33613357 WelsLog (pCtx, WELS_LOG_WARNING, "WelsEncoderEncodeExt(), WelsUpdateRefList failed. ForceCodingIDR!\n");
33623358 //the above is to set the next frame to be IDR
3363− pFbi->eOutputFrameType = eFrameType;
3359+ pFbi->eFrameType = eFrameType;
33643360 return ENC_RETURN_CORRECTED;
33653361 }
33663362 }
@@ -3474,7 +3470,6 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 107 unmodified lines
34743470
34753471 pCtx->pWelsSvcRc[pCtx->uiDependencyId].iPaddingSize = 0;
34763472
3477− pLayerBsInfo->uiPriorityId = 0;
34783473 pLayerBsInfo->uiSpatialId = 0;
34793474 pLayerBsInfo->uiTemporalId = 0;
34803475 pLayerBsInfo->uiQualityId = 0;
@@ -3512,7 +3507,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 31 unmodified lines
35123507 ForceCodingIDR (pCtx);
35133508 WelsLog (pCtx, WELS_LOG_WARNING, "WelsEncoderEncodeExt(), Logic Error Found in temporal level. ForceCodingIDR!\n");
35143509 //the above is to set the next frame IDR
3515− pFbi->eOutputFrameType = eFrameType;
3510+ pFbi->eFrameType = eFrameType;
35163511 return ENC_RETURN_CORRECTED;
35173512 }
35183513
@@ -3548,7 +3543,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 29 unmodified lines
35483543
35493544 WelsEmms();
35503545
3551− pFbi->eOutputFrameType = eFrameType;
3546+ pFbi->eFrameType = eFrameType;
35523547 return ENC_RETURN_SUCCESS;
35533548 }
35543549
@@ -3934,7 +3929,6 @@ int32_t WelsCodeOnePicPartition (sWelsEncCtx* pCtx, · 379 unmodified lines
39343929 pLayerBsInfo->uiSpatialId = pCtx->uiDependencyId;
39353930 pLayerBsInfo->uiTemporalId = pCtx->uiTemporalId;
39363931 pLayerBsInfo->uiQualityId = 0;
3937− pLayerBsInfo->uiPriorityId = 0;
39383932 pLayerBsInfo->iNalCount = iNalIdxInLayer;
39393933
39403934 return ENC_RETURN_SUCCESS;

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