History

Slice buffer reallocate:: add ut cases

Huade Shi (huashi) committed 9 years ago

Commit 4c3852c1 parent 02e824d9 files · +748 −28Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+3−5
@@ -727,7 +727,7 @@ int32_t WelsEncoderApplyBitVaryRang (SLogContext* pLogCtx, SWelsSvcCodingParam* · 726 unmodified lines
727727 * \pParam iCountNals pointer of count number of nals indeed
728728 * \return 0 - successful; otherwise failed
729729 */
730−static inline int32_t AcquireLayersNals (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pParam, int32_t* pCountLayers,
730+int32_t AcquireLayersNals (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pParam, int32_t* pCountLayers,
731731 int32_t* pCountNals) {
732732 int32_t iCountNumLayers = 0;
733733 int32_t iCountNumNals = 0;
@@ -761,9 +761,7 @@ static inline int32_t AcquireLayersNals (sWelsEncCtx** ppCtx, SWelsSvcCodingPara · 27 unmodified lines
761761 return 1;
762762 }
763763 } else { /*if ( SM_SINGLE_SLICE != pDLayer->sSliceArgument.uiSliceMode )*/
764− const int32_t kiNumOfSlice = GetInitialSliceNum ((pDLayer->iVideoWidth + 0x0f) >> 4,
765− (pDLayer->iVideoHeight + 0x0f) >> 4,
766− &pDLayer->sSliceArgument);
764+ const int32_t kiNumOfSlice = GetInitialSliceNum (&pDLayer->sSliceArgument);
767765
768766 // NEED check iCountNals value in case multiple slices is used
769767 iCountNumNals += kiNumOfSlice; // for pSlice VCL NALs
@@ -1069,7 +1067,7 @@ static inline int32_t InitDqLayers (sWelsEncCtx** ppCtx, SExistingParasetList* p · 299 unmodified lines
10691067 pDqLayer->iMbHeight = kiMbH;
10701068
10711069 int32_t iMaxSliceNum = 1;
1072− const int32_t kiSliceNum = GetInitialSliceNum (kiMbW, kiMbH, &pDlayer->sSliceArgument);
1070+ const int32_t kiSliceNum = GetInitialSliceNum (&pDlayer->sSliceArgument);
10731071 if (iMaxSliceNum < kiSliceNum)
10741072 iMaxSliceNum = kiSliceNum;
10751073 pDqLayer->iMaxSliceNum = iMaxSliceNum;

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