commit
af97f2d4bb
@ -96,6 +96,7 @@ class EncodeDecodeTestBase : public ::testing::TestWithParam<EncodeDecodeFilePar
|
||||
param_.fMaxFrameRate = framerate;
|
||||
param_.iRCMode = RC_OFF_MODE; //rc off
|
||||
param_.iMultipleThreadIdc = 1; //single thread
|
||||
param_.iSpatialLayerNum = iLayers;
|
||||
for (int i = 0; i < iLayers; i++) {
|
||||
param_.sSpatialLayers[i].iVideoWidth = width >> (iLayers - i - 1);
|
||||
param_.sSpatialLayers[i].iVideoHeight = height >> (iLayers - i - 1);
|
||||
@ -2055,8 +2056,8 @@ TEST_F (EncodeDecodeTestAPI, Engine_SVC_Switch_P) {
|
||||
}
|
||||
|
||||
TEST_F (EncodeDecodeTestAPI, SetOptionEncParamExt) {
|
||||
int iWidth = (((rand() % MAX_WIDTH) >> 1) + 16) << 1;
|
||||
int iHeight = (((rand() % MAX_HEIGHT) >> 1) + 16) << 1;
|
||||
int iWidth = WELS_CLIP3 ((((rand() % MAX_WIDTH) >> 1) + 1) << 1, 2, MAX_WIDTH);
|
||||
int iHeight = WELS_CLIP3 ((((rand() % MAX_HEIGHT) >> 1) + 1) << 1, 2, MAX_HEIGHT);
|
||||
float fFrameRate = rand() + 0.5f;
|
||||
int iEncFrameNum = WELS_CLIP3 ((rand() % ENCODE_FRAME_NUM) + 1, 1, ENCODE_FRAME_NUM);
|
||||
int iSpatialLayerNum = 4;
|
||||
|
Loading…
x
Reference in New Issue
Block a user