Showing the changes to test/api/encode_decode_api_test.cpp (1 of 32 files). Show all
Unified · Split
| @@ -763,7 +763,7 @@ TEST_P (EncodeDecodeTestAPI, GetOptionLTR_ALLIDR) { · 762 unmodified lines | |||
| 763 | decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel); | 763 | decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel); |
| 764 | int32_t iSpsPpsIdAddition = 1; | 764 | int32_t iSpsPpsIdAddition = 1; |
| 765 | encoder_->SetOption (ENCODER_OPTION_ENABLE_SPS_PPS_ID_ADDITION, &iSpsPpsIdAddition); | 765 | encoder_->SetOption (ENCODER_OPTION_ENABLE_SPS_PPS_ID_ADDITION, &iSpsPpsIdAddition); |
| 766 | int32_t iIDRPeriod = 60; | 766 | int32_t iIDRPeriod = pow(2,(param_.iTemporalLayerNum-1)) * ((rand() % 5) + 1); |
| 767 | encoder_->SetOption (ENCODER_OPTION_IDR_INTERVAL, &iIDRPeriod); | 767 | encoder_->SetOption (ENCODER_OPTION_IDR_INTERVAL, &iIDRPeriod); |
| 768 | SLTRConfig sLtrConfigVal; | 768 | SLTRConfig sLtrConfigVal; |
| 769 | sLtrConfigVal.bEnableLongTermReference = 1; | 769 | sLtrConfigVal.bEnableLongTermReference = 1; |
| @@ -1854,7 +1854,7 @@ TEST_F (EncodeDecodeTestAPI, Engine_SVC_Switch_I) { · 1084 unmodified lines | |||
| 1854 | decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel); | 1854 | decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel); |
| 1855 | int32_t iSpsPpsIdAddition = 1; | 1855 | int32_t iSpsPpsIdAddition = 1; |
| 1856 | encoder_->SetOption (ENCODER_OPTION_ENABLE_SPS_PPS_ID_ADDITION, &iSpsPpsIdAddition); | 1856 | encoder_->SetOption (ENCODER_OPTION_ENABLE_SPS_PPS_ID_ADDITION, &iSpsPpsIdAddition); |
| 1857 | int32_t iIDRPeriod = 15; | 1857 | int32_t iIDRPeriod = pow(2,(param_.iTemporalLayerNum-1)) * ((rand() % 5) + 1); |
| 1858 | encoder_->SetOption (ENCODER_OPTION_IDR_INTERVAL, &iIDRPeriod); | 1858 | encoder_->SetOption (ENCODER_OPTION_IDR_INTERVAL, &iIDRPeriod); |
| 1859 | SLTRConfig sLtrConfigVal; | 1859 | SLTRConfig sLtrConfigVal; |
| 1860 | sLtrConfigVal.bEnableLongTermReference = 1; | 1860 | sLtrConfigVal.bEnableLongTermReference = 1; |