History

add memory allocation for screen content

ruil2 committed 12 years ago

Commit c8eaea21 parent 37201e25 files · +247 −187Browse files

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

Unified · Split

codec/encoder/core/src/wels_preprocess.cpp+2−0
@@ -255,6 +255,8 @@ int32_t CWelsPreProcess::AnalyzeSpatialPic (sWelsEncCtx* pCtx, const int32_t kiD · 254 unmodified lines
255 255
256int32_t CWelsPreProcess::UpdateSpatialPictures (sWelsEncCtx* pCtx, SWelsSvcCodingParam* pParam,256int32_t CWelsPreProcess::UpdateSpatialPictures (sWelsEncCtx* pCtx, SWelsSvcCodingParam* pParam,
257 const int8_t iCurTid, const int32_t d_idx) {257 const int8_t iCurTid, const int32_t d_idx) {
258 if(pCtx->pSvcParam->iUsageType == SCREEN_CONTENT_REAL_TIME)
259 return 0;
258 if (iCurTid < m_uiSpatialLayersInTemporal[d_idx] - 1 || pParam->iDecompStages == 0) {260 if (iCurTid < m_uiSpatialLayersInTemporal[d_idx] - 1 || pParam->iDecompStages == 0) {
259 if ((iCurTid >= MAX_TEMPORAL_LEVEL) || (m_uiSpatialLayersInTemporal[d_idx] - 1 > MAX_TEMPORAL_LEVEL)) {261 if ((iCurTid >= MAX_TEMPORAL_LEVEL) || (m_uiSpatialLayersInTemporal[d_idx] - 1 > MAX_TEMPORAL_LEVEL)) {
260 InitLastSpatialPictures (pCtx);262 InitLastSpatialPictures (pCtx);

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