Showing the changes to test/api/encode_decode_api_test.cpp (1 of 1 file). Show all
Unified · Split
| @@ -3147,8 +3147,8 @@ TEST_F (EncodeDecodeTestAPI, ParameterSetStrategy_SPS_PPS_LISTING3) { · 3146 unmodified lines | ||
| 3147 | 3147 | |
| 3148 | 3148 | TEST_F (EncodeDecodeTestAPI, SimulcastSVC) { |
| 3149 | 3149 | int iSpatialLayerNum = WelsClip3 ((rand() % MAX_SPATIAL_LAYER_NUM), 2, MAX_SPATIAL_LAYER_NUM); |
| 3150 | − int iWidth = WelsClip3 ((((rand() % MAX_WIDTH) >> 1) + 1) << 1, 1 << iSpatialLayerNum, MAX_WIDTH); | |
| 3151 | − int iHeight = WelsClip3 ((((rand() % MAX_HEIGHT) >> 1) + 1) << 1, 1 << iSpatialLayerNum, MAX_HEIGHT); | |
| 3150 | + int iWidth = WelsClip3 ((((rand() % MAX_WIDTH) >> 1) + 1) << 1, 16, MAX_WIDTH); | |
| 3151 | + int iHeight = WelsClip3 ((((rand() % MAX_HEIGHT) >> 1) + 1) << 1, 16, MAX_HEIGHT); | |
| 3152 | 3152 | float fFrameRate = rand() + 0.5f; |
| 3153 | 3153 | int iEncFrameNum = WelsClip3 ((rand() % ENCODE_FRAME_NUM) + 1, 1, ENCODE_FRAME_NUM); |
| 3154 | 3154 | int iSliceNum = 1; |
| @@ -3261,8 +3261,8 @@ TEST_F (EncodeDecodeTestAPI, SimulcastSVC) { · 106 unmodified lines | ||
| 3261 | 3261 | TEST_F (EncodeDecodeTestAPI, SimulcastAVC) { |
| 3262 | 3262 | //#define DEBUG_FILE_SAVE3 |
| 3263 | 3263 | int iSpatialLayerNum = WelsClip3 ((rand() % MAX_SPATIAL_LAYER_NUM), 2, MAX_SPATIAL_LAYER_NUM); |
| 3264 | − int iWidth = WelsClip3 ((((rand() % MAX_WIDTH) >> 1) + 1) << 1, 1 << iSpatialLayerNum, MAX_WIDTH); | |
| 3265 | − int iHeight = WelsClip3 ((((rand() % MAX_HEIGHT) >> 1) + 1) << 1, 1 << iSpatialLayerNum, MAX_HEIGHT); | |
| 3264 | + int iWidth = WelsClip3 ((((rand() % MAX_WIDTH) >> 1) + 1) << 1, 16, MAX_WIDTH); | |
| 3265 | + int iHeight = WelsClip3 ((((rand() % MAX_HEIGHT) >> 1) + 1) << 1, 16, MAX_HEIGHT); | |
| 3266 | 3266 | float fFrameRate = rand() + 0.5f; |
| 3267 | 3267 | int iEncFrameNum = WelsClip3 ((rand() % ENCODE_FRAME_NUM) + 1, 1, ENCODE_FRAME_NUM); |
| 3268 | 3268 | int iSliceNum = 1; |