History

rename the functions

sijchen committed 10 years ago

Commit 90deb801 parent c0091831 file · +10 −10Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+10−10
@@ -3205,7 +3205,7 @@ void UpdatePpsList (sWelsEncCtx* pCtx) { · 3204 unmodified lines
32053205
32063206 }
32073207
3208−void eSpsPpsIdStrategy_INCREASING_ID (SParaSetOffset* pPSOVector, const uint32_t kuiId, const int iParasetType) {
3208+void UpdateSpsPpsIdStrategyWithIncreasingId (SParaSetOffset* pPSOVector, const uint32_t kuiId, const int iParasetType) {
32093209 #if _DEBUG
32103210 pPSOVector->eSpsPpsIdStrategy = INCREASING_ID;
32113211 assert (iIdx < MAX_DQ_LAYER_NUM);
@@ -3216,7 +3216,7 @@ void eSpsPpsIdStrategy_INCREASING_ID (SParaSetOffset* pPSOVector, const uint32_t · 4 unmodified lines
32163216 (iParasetType != PARA_SET_TYPE_PPS) ? MAX_SPS_COUNT : MAX_PPS_COUNT);
32173217 }
32183218
3219−void eSpsPpsIdStrategy_CONSTANT_ID (SParaSetOffset* pPSOVector, const uint32_t kuiId, const int iParasetType) {
3219+void UpdateSpsPpsIdStrategyWithConstantId (SParaSetOffset* pPSOVector, const uint32_t kuiId, const int iParasetType) {
32203220 memset (pPSOVector, 0, sizeof (SParaSetOffset));
32213221 }
32223222
@@ -3242,9 +3242,9 @@ int32_t WelsWriteParameterSets (sWelsEncCtx* pCtx, int32_t* pNalLen, int32_t* pN · 19 unmodified lines
32423242 while (iIdx < pCtx->iSpsNum) {
32433243 // TODO (Sijia) wrap different operation of eSpsPpsIdStrategy to classes to hide the details
32443244 if (INCREASING_ID == pCtx->pSvcParam->eSpsPpsIdStrategy) {
3245− eSpsPpsIdStrategy_INCREASING_ID (& (pCtx->sPSOVector), pCtx->pSpsArray[0].uiSpsId, PARA_SET_TYPE_AVCSPS);
3245+ UpdateSpsPpsIdStrategyWithIncreasingId (& (pCtx->sPSOVector), pCtx->pSpsArray[0].uiSpsId, PARA_SET_TYPE_AVCSPS);
32463246 } else if (CONSTANT_ID == pCtx->pSvcParam->eSpsPpsIdStrategy) {
3247− eSpsPpsIdStrategy_CONSTANT_ID (& (pCtx->sPSOVector), pCtx->pSpsArray[0].uiSpsId, PARA_SET_TYPE_AVCSPS);
3247+ UpdateSpsPpsIdStrategyWithConstantId (& (pCtx->sPSOVector), pCtx->pSpsArray[0].uiSpsId, PARA_SET_TYPE_AVCSPS);
32483248 }
32493249
32503250 /* generate sequence parameters set */
@@ -3265,7 +3265,7 @@ int32_t WelsWriteParameterSets (sWelsEncCtx* pCtx, int32_t* pNalLen, int32_t* pN · 14 unmodified lines
32653265 iNal = pCtx->pOut->iNalIndex;
32663266
32673267 if (INCREASING_ID == pCtx->pSvcParam->eSpsPpsIdStrategy) {
3268− eSpsPpsIdStrategy_INCREASING_ID (& (pCtx->sPSOVector), pCtx->pSubsetArray[iIdx].pSps.uiSpsId, PARA_SET_TYPE_SUBSETSPS);
3268+ UpdateSpsPpsIdStrategyWithIncreasingId (& (pCtx->sPSOVector), pCtx->pSubsetArray[iIdx].pSps.uiSpsId, PARA_SET_TYPE_SUBSETSPS);
32693269 }
32703270
32713271
@@ -3300,7 +3300,7 @@ int32_t WelsWriteParameterSets (sWelsEncCtx* pCtx, int32_t* pNalLen, int32_t* pN · 28 unmodified lines
33003300 iIdx = 0;
33013301 while (iIdx < pCtx->iPpsNum) {
33023302 if ((INCREASING_ID & pCtx->pSvcParam->eSpsPpsIdStrategy)) {
3303− eSpsPpsIdStrategy_INCREASING_ID (& (pCtx->sPSOVector), pCtx->pPPSArray[iIdx].iPpsId, PARA_SET_TYPE_PPS);
3303+ UpdateSpsPpsIdStrategyWithIncreasingId (& (pCtx->sPSOVector), pCtx->pPPSArray[iIdx].iPpsId, PARA_SET_TYPE_PPS);
33043304 }
33053305
33063306 WelsWriteOnePPS (pCtx, iIdx, iNalLength);
@@ -3516,9 +3516,9 @@ int32_t WriteSavcParaset (sWelsEncCtx* pCtx, const int32_t iIdx, · 209 unmodified lines
35163516 iCountNal = 0;
35173517
35183518 if (INCREASING_ID == pCtx->pSvcParam->eSpsPpsIdStrategy) {
3519− eSpsPpsIdStrategy_INCREASING_ID (& (pCtx->sPSOVector), pCtx->pSpsArray[iIdx].uiSpsId, PARA_SET_TYPE_AVCSPS);
3519+ UpdateSpsPpsIdStrategyWithIncreasingId (& (pCtx->sPSOVector), pCtx->pSpsArray[iIdx].uiSpsId, PARA_SET_TYPE_AVCSPS);
35203520 } else if (CONSTANT_ID == pCtx->pSvcParam->eSpsPpsIdStrategy) {
3521− eSpsPpsIdStrategy_CONSTANT_ID (& (pCtx->sPSOVector), pCtx->pSpsArray[iIdx].uiSpsId, PARA_SET_TYPE_AVCSPS);
3521+ UpdateSpsPpsIdStrategyWithConstantId (& (pCtx->sPSOVector), pCtx->pSpsArray[iIdx].uiSpsId, PARA_SET_TYPE_AVCSPS);
35223522 }
35233523
35243524 iReturn = WelsWriteOneSPS (pCtx, iIdx, iNalSize);
@@ -3553,9 +3553,9 @@ int32_t WriteSavcParaset (sWelsEncCtx* pCtx, const int32_t iIdx, · 28 unmodified lines
35533553 iCountNal = 0;
35543554
35553555 if (INCREASING_ID == pCtx->pSvcParam->eSpsPpsIdStrategy) {
3556− eSpsPpsIdStrategy_INCREASING_ID (& (pCtx->sPSOVector), pCtx->pPPSArray[iIdx].iPpsId, PARA_SET_TYPE_PPS);
3556+ UpdateSpsPpsIdStrategyWithIncreasingId (& (pCtx->sPSOVector), pCtx->pPPSArray[iIdx].iPpsId, PARA_SET_TYPE_PPS);
35573557 } else if (CONSTANT_ID == pCtx->pSvcParam->eSpsPpsIdStrategy) {
3558− eSpsPpsIdStrategy_CONSTANT_ID (& (pCtx->sPSOVector), pCtx->pPPSArray[iIdx].iPpsId, PARA_SET_TYPE_PPS);
3558+ UpdateSpsPpsIdStrategyWithConstantId (& (pCtx->sPSOVector), pCtx->pPPSArray[iIdx].iPpsId, PARA_SET_TYPE_PPS);
35593559 }
35603560
35613561 iReturn = WelsWriteOnePPS (pCtx, iIdx, iNalSize);

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