Showing the changes to test/api/encode_decode_api_test.cpp (1 of 1 file). Show all
Unified · Split
| @@ -815,7 +815,7 @@ TEST_P (EncodeDecodeTestAPI, GetOptionLTR_ALLIDR) { · 814 unmodified lines | |||
| 815 | decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel); | 815 | decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel); |
| 816 | int32_t iSpsPpsIdAddition = 1; | 816 | int32_t iSpsPpsIdAddition = 1; |
| 817 | encoder_->SetOption (ENCODER_OPTION_ENABLE_SPS_PPS_ID_ADDITION, &iSpsPpsIdAddition); | 817 | encoder_->SetOption (ENCODER_OPTION_ENABLE_SPS_PPS_ID_ADDITION, &iSpsPpsIdAddition); |
| 818 | int32_t iIDRPeriod = pow (2.0f, (param_.iTemporalLayerNum - 1)) * ((rand() % 5) + 1); | 818 | int32_t iIDRPeriod = (int32_t) pow (2.0f, (param_.iTemporalLayerNum - 1)) * ((rand() % 5) + 1); |
| 819 | encoder_->SetOption (ENCODER_OPTION_IDR_INTERVAL, &iIDRPeriod); | 819 | encoder_->SetOption (ENCODER_OPTION_IDR_INTERVAL, &iIDRPeriod); |
| 820 | SLTRConfig sLtrConfigVal; | 820 | SLTRConfig sLtrConfigVal; |
| 821 | sLtrConfigVal.bEnableLongTermReference = 1; | 821 | sLtrConfigVal.bEnableLongTermReference = 1; |
| @@ -1955,7 +1955,7 @@ TEST_F (EncodeDecodeTestAPI, Engine_SVC_Switch_I) { · 1133 unmodified lines | |||
| 1955 | decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel); | 1955 | decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel); |
| 1956 | int32_t iSpsPpsIdAddition = 1; | 1956 | int32_t iSpsPpsIdAddition = 1; |
| 1957 | encoder_->SetOption (ENCODER_OPTION_ENABLE_SPS_PPS_ID_ADDITION, &iSpsPpsIdAddition); | 1957 | encoder_->SetOption (ENCODER_OPTION_ENABLE_SPS_PPS_ID_ADDITION, &iSpsPpsIdAddition); |
| 1958 | int32_t iIDRPeriod = pow (2.0f, (param_.iTemporalLayerNum - 1)) * ((rand() % 5) + 1); | 1958 | int32_t iIDRPeriod = (int32_t) pow (2.0f, (param_.iTemporalLayerNum - 1)) * ((rand() % 5) + 1); |
| 1959 | encoder_->SetOption (ENCODER_OPTION_IDR_INTERVAL, &iIDRPeriod); | 1959 | encoder_->SetOption (ENCODER_OPTION_IDR_INTERVAL, &iIDRPeriod); |
| 1960 | SLTRConfig sLtrConfigVal; | 1960 | SLTRConfig sLtrConfigVal; |
| 1961 | sLtrConfigVal.bEnableLongTermReference = 1; | 1961 | sLtrConfigVal.bEnableLongTermReference = 1; |