History

add more LTR parameters

ruil2 committed 12 years ago

Commit d6f0dee1 parent a4eea4c2 files · +14 −6Browse files

Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 2 files). Show all

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+9−5
@@ -818,16 +818,20 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 817 unmodified lines
818 FilterLTRMarkingFeedback (m_pEncContext, fb);818 FilterLTRMarkingFeedback (m_pEncContext, fb);
819 }819 }
820 break;820 break;
821 case ENCOCER_LTR_MARKING_PERIOD: {821 case ENCODER_LTR_MARKING_PERIOD: {
822 uint32_t iValue = * ((uint32_t*) (pOption));822 uint32_t iValue = * ((uint32_t*) (pOption));
823 m_pEncContext->pSvcParam->iLtrMarkPeriod = iValue;823 m_pEncContext->pSvcParam->iLtrMarkPeriod = iValue;
824 }824 }
825 break;825 break;
826 case ENCODER_OPTION_LTR: {826 case ENCODER_OPTION_LTR: {
827 uint32_t iValue = * ((uint32_t*) (pOption));827 SLTRConfig* pLTRValue = ((SLTRConfig*) (pOption));
828 m_pEncContext->pSvcParam->bEnableLongTermReference = iValue ? true : false;828 SWelsSvcCodingParam sConfig;
829 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_WARNING, " CWelsH264SVCEncoder::SetOption enable LTR = %d",829 memcpy (&sConfig, m_pEncContext->pSvcParam, sizeof (SWelsSvcCodingParam));
830 m_pEncContext->pSvcParam->bEnableLongTermReference);830 sConfig.bEnableLongTermReference = pLTRValue->bEnableLongTermReference;
831 sConfig.iLTRRefNum = pLTRValue->iLTRRefNum;
832 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_WARNING, " CWelsH264SVCEncoder::SetOption enable LTR = %d,ltrnum = %d",
833 sConfig.bEnableLongTermReference, sConfig.iLTRRefNum);
834 WelsEncoderParamAdjust (&m_pEncContext, &sConfig);
831 }835 }
832 break;836 break;
833 case ENCODER_OPTION_ENABLE_SSEI: {837 case ENCODER_OPTION_ENABLE_SSEI: {

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