Showing the changes to test/encoder/EncUT_EncoderExt.cpp (1 of 2 files). Show all
Unified · Split
| @@ -728,8 +728,8 @@ TEST_F (EncoderInterfaceTest, ForceIntraFrameWithTemporal) { · 727 unmodified lines | |||
| 728 | SEncParamExt sEncParamExt; | 728 | SEncParamExt sEncParamExt; |
| 729 | pPtrEnc->GetDefaultParams (&sEncParamExt); | 729 | pPtrEnc->GetDefaultParams (&sEncParamExt); |
| 730 | sEncParamExt.iUsageType = CAMERA_VIDEO_REAL_TIME; | 730 | sEncParamExt.iUsageType = CAMERA_VIDEO_REAL_TIME; |
| 731 | sEncParamExt.iPicWidth = MB_SIZE + abs ((rand() * 2) % (MAX_WIDTH - MB_SIZE)); | 731 | sEncParamExt.iPicWidth = MB_SIZE + abs ((rand() / 2 * 2) % (MAX_WIDTH - MB_SIZE)); |
| 732 | sEncParamExt.iPicHeight = MB_SIZE + abs ((rand() * 2) % (MAX_HEIGHT - MB_SIZE)); | 732 | sEncParamExt.iPicHeight = MB_SIZE + abs ((rand() / 2 * 2) % (MAX_HEIGHT - MB_SIZE)); |
| 733 | sEncParamExt.iTargetBitrate = rand() + 1; //!=0 | 733 | sEncParamExt.iTargetBitrate = rand() + 1; //!=0 |
| 734 | // Force a bitrate of at least w*h/50, otherwise we will only get skipped frames | 734 | // Force a bitrate of at least w*h/50, otherwise we will only get skipped frames |
| 735 | sEncParamExt.iTargetBitrate = WELS_CLIP3 (sEncParamExt.iTargetBitrate, | 735 | sEncParamExt.iTargetBitrate = WELS_CLIP3 (sEncParamExt.iTargetBitrate, |