History

add encoder cabac support

ruil2 committed 12 years ago

Commit abc01e61 parent 2dbb75738 files · +2072 −273Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+5−2
@@ -54,6 +54,7 @@ · 53 unmodified lines
5454 #include "crt_util_safe_x.h" // Safe CRT routines like utils for cross platforms
5555 #include "slice_multi_threading.h"
5656 #include "measure_time.h"
57+#include "svc_set_mb_syn.h"
5758
5859 namespace WelsEnc {
5960
@@ -947,7 +948,7 @@ static inline int32_t InitDqLayers (sWelsEncCtx** ppCtx) { · 887 unmodified lines
947948 }
948949
949950 // initialize pPps
950− WelsInitPps (pPps, pSps, pSubsetSps, iPpsId, true, bUseSubsetSps);
951+ WelsInitPps (pPps, pSps, pSubsetSps, iPpsId, true, bUseSubsetSps,pParam->iEntropyCodingModeFlag);
951952
952953 // Not using FMO in SVC coding so far, come back if need FMO
953954 {
@@ -2053,7 +2054,7 @@ int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPar · 1099 unmodified lines
20532054 FreeMemorySvc (&pCtx);
20542055 return 1;
20552056 }
2056− InitFunctionPointers (pCtx->pFuncList, pCtx->pSvcParam, uiCpuFeatureFlags);
2057+ InitFunctionPointers (pCtx, pCtx->pSvcParam, uiCpuFeatureFlags);
20572058
20582059 pCtx->iActiveThreadsNum = pCodingParam->iCountThreadsNum;
20592060 pCtx->iMaxSliceCount = iSliceNum;
@@ -2067,6 +2068,8 @@ int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPar · 7 unmodified lines
20672068 if (pCodingParam->iMultipleThreadIdc > 1)
20682069 iRet = CreateSliceThreads (pCtx);
20692070
2071+ if(pCodingParam->iEntropyCodingModeFlag)
2072+ WelsCabacInit (pCtx);
20702073 WelsRcInitModule (pCtx, pCtx->pSvcParam->iRCMode);
20712074
20722075 pCtx->pVpp = new CWelsPreProcess (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