Get the actual used parameters in the codec in TemporalLayerSettingTest
Showing the changes to test/encoder/EncUT_EncoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -165,10 +165,11 @@ TEST_F (EncoderInterfaceTest, TemporalLayerSettingTest) { · 164 unmodified lines | ||
| 165 | 165 | EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess)); |
| 166 | 166 | EXPECT_EQ (sFbi.eFrameType, static_cast<int> (videoFrameTypeP)); |
| 167 | 167 | |
| 168 | − memcpy (pOption, pParamExt, sizeof (SEncParamExt)); | |
| 168 | + ENCODER_OPTION eOptionId = ENCODER_OPTION_SVC_ENCODE_PARAM_EXT; | |
| 169 | + iResult = pPtrEnc->GetOption (eOptionId, pOption); | |
| 170 | + EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess)); | |
| 169 | 171 | pOption ->iTemporalLayerNum = 4; |
| 170 | 172 | |
| 171 | − ENCODER_OPTION eOptionId = ENCODER_OPTION_SVC_ENCODE_PARAM_EXT; | |
| 172 | 173 | iResult = pPtrEnc->SetOption (eOptionId, pOption); |
| 173 | 174 | EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess)); |
| 174 | 175 | |