History

Merge pull request #2542 from ruil2/dump1

fix dump file issue that removing redundant operation

HaiboZhu committed 10 years ago

Commit e88bb882 parents 50a9389 945fc0e4 files · +22 −23Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+6−12
@@ -589,8 +589,9 @@ int32_t ParamValidationExt (SLogContext* pLogCtx, SWelsSvcCodingParam* pCodingPa · 588 unmodified lines
589589 iMbWidth = (kiPicWidth + 15) >> 4;
590590 iMbHeight = (kiPicHeight + 15) >> 4;
591591 if (pSpatialLayer->sSliceArgument.uiSliceSizeConstraint <= MAX_MACROBLOCK_SIZE_IN_BYTE) {
592− WelsLog (pLogCtx, WELS_LOG_ERROR, "ParamValidationExt(), invalid iSliceSize (%d) settings!should be larger than MAX_MACROBLOCK_SIZE_IN_BYTE(%d)",
593− pSpatialLayer->sSliceArgument.uiSliceSizeConstraint,MAX_MACROBLOCK_SIZE_IN_BYTE);
592+ WelsLog (pLogCtx, WELS_LOG_ERROR,
593+ "ParamValidationExt(), invalid iSliceSize (%d) settings!should be larger than MAX_MACROBLOCK_SIZE_IN_BYTE(%d)",
594+ pSpatialLayer->sSliceArgument.uiSliceSizeConstraint, MAX_MACROBLOCK_SIZE_IN_BYTE);
594595 return ENC_RETURN_UNSUPPORTED_PARA;
595596 }
596597
@@ -3593,7 +3594,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 2996 unmodified lines
35933594 for (int32_t iDidIdx = 0; iDidIdx < pSvcParam->iSpatialLayerNum; iDidIdx++) {
35943595 SSpatialLayerInternal* pParamInternal = &pSvcParam->sDependencyLayers[iDidIdx];
35953596 int32_t iTemporalId = GetTemporalLevel (pParamInternal, pParamInternal->iCodingIndex,
3596− pSvcParam->uiGopSize);
3597+ pSvcParam->uiGopSize);
35973598 if (iTemporalId == INVALID_TEMPORAL_ID)
35983599 pParamInternal->iCodingIndex ++;
35993600 }
@@ -3971,9 +3972,9 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 371 unmodified lines
39713972 "WelsEncoderEncodeExt()MinCr Checking,codec bitstream size is larger than Level limitation");
39723973 }
39733974 #ifdef ENABLE_FRAME_DUMP
3974− if (iCurDid + 1 < pSvcParam->iSpatialLayerNum) {
3975+ {
39753976 DumpDependencyRec (fsnr, &pSvcParam->sDependencyLayers[iCurDid].sRecFileName[0], iCurDid,
3976− pCtx->bDependencyRecFlag[iCurDid], pCtx->pCurDqLayer);
3977+ pCtx->bDependencyRecFlag[iCurDid], pCtx->pCurDqLayer, pSvcParam->bSimulcastAVC);
39773978 pCtx->bDependencyRecFlag[iCurDid] = true;
39783979 }
39793980 #endif//ENABLE_FRAME_DUMP
@@ -4162,13 +4163,6 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 182 unmodified lines
41624163 AdjustBaseLayer (pCtx);
41634164 }
41644165
4165−#ifdef ENABLE_FRAME_DUMP
4166− DumpRecFrame (fsnr, &pSvcParam->sDependencyLayers[pSvcParam->iSpatialLayerNum - 1].sRecFileName[0],
4167− pSvcParam->iSpatialLayerNum - 1, pCtx->bRecFlag, pCtx->pCurDqLayer); // pDecPic: final reconstruction output
4168− pCtx->bRecFlag = true;
4169−
4170−#endif//ENABLE_FRAME_DUMP
4171−
41724166 // to check number of layers / nals / slices dependencies
41734167 if (iLayerNum > MAX_LAYER_NUM_OF_FRAME) {
41744168 WelsLog (& pCtx->sLogCtx, WELS_LOG_ERROR, "WelsEncoderEncodeExt(), iLayerNum(%d) > MAX_LAYER_NUM_OF_FRAME(%d)!",

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