History

add the condition branch for screen content

ruil2 committed 12 years ago

Commit 27da2b21 parent c43e1c83 files · +29 −7Browse files

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

Unified · Split

codec/encoder/core/src/wels_preprocess.cpp+10−6
@@ -279,7 +279,11 @@ int32_t CWelsPreProcess::AllocSpatialPictures (sWelsEncCtx* pCtx, SWelsSvcCoding · 278 unmodified lines
279 ++ i;279 ++ i;
280 } while (i < kuiRefNumInTemporal);280 } while (i < kuiRefNumInTemporal);
281 281
282 m_uiSpatialLayersInTemporal[iDlayerIndex] = kuiLayerInTemporal;282 if(pParam->iUsageType == SCREEN_CONTENT_REAL_TIME)
283 m_uiSpatialLayersInTemporal[iDlayerIndex] = 1;
284 else
285 m_uiSpatialLayersInTemporal[iDlayerIndex] = kuiLayerInTemporal;
286
283 m_uiSpatialPicNum[iDlayerIndex] = kuiRefNumInTemporal;287 m_uiSpatialPicNum[iDlayerIndex] = kuiRefNumInTemporal;
284 ++ iDlayerIndex;288 ++ iDlayerIndex;
285 } while (iDlayerIndex < kiDlayerCount);289 } while (iDlayerIndex < kiDlayerCount);
@@ -363,12 +367,12 @@ int32_t CWelsPreProcess::AnalyzeSpatialPic (sWelsEncCtx* pCtx, const int32_t kiD · 77 unmodified lines
363 AdaptiveQuantCalculation (pCtx->pVaa, pCurPic, pRefPic);367 AdaptiveQuantCalculation (pCtx->pVaa, pCurPic, pRefPic);
364 }368 }
365 369
366 if (pSvcParam->bEnableRc) {370 if(pSvcParam->iUsageType != SCREEN_CONTENT_REAL_TIME){
367 AnalyzePictureComplexity (pCtx, pCurPic, pRefPic, kiDidx, bCalculateBGD);371 if (pSvcParam->bEnableRc) {
372 AnalyzePictureComplexity (pCtx, pCurPic, pRefPic, kiDidx, bCalculateBGD);
373 }
374 WelsExchangeSpatialPictures (&m_pLastSpatialPicture[kiDidx][1], &m_pLastSpatialPicture[kiDidx][0]);
368 }375 }
369
370 WelsExchangeSpatialPictures (&m_pLastSpatialPicture[kiDidx][1], &m_pLastSpatialPicture[kiDidx][0]);
371
372 return 0;376 return 0;
373}377}
374 378

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