History

add reconstruct UT input limitation

dongzhang committed 12 years ago

Commit 9b753c91 parent e66cf531 file · +7 −7Browse files

Showing the changes to test/encoder/EncUT_Reconstruct.cpp (1 of 1 file). Show all

Unified · Split

test/encoder/EncUT_Reconstruct.cpp+7−7
@@ -248,7 +248,7 @@ TEST (ReconstructionFunTest, WelsDequant4x4) { · 247 unmodified lines
248248 uint8_t uiQp = rand() % 52;
249249 FillWithRandomData ((uint8_t*)pInput[0], 32);
250250 for (int32_t i = 0 ; i < 16; i++) {
251− pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32640, 32640);
251+ pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32000, 32000);
252252 }
253253 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 32);
254254
@@ -278,7 +278,7 @@ TEST (ReconstructionFunTest, WelsDequantIHadamard4x4) { · 23 unmodified lines
278278 uint8_t uiQp = rand() % 52;
279279 FillWithRandomData ((uint8_t*)pInput[0], 32);
280280 for (int32_t i = 0 ; i < 16; i++) {
281− pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32640, 32640);
281+ pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32000, 32000);
282282 }
283283 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 32);
284284
@@ -307,7 +307,7 @@ TEST (ReconstructionFunTest, WelsQuant4x4) { · 22 unmodified lines
307307 uint8_t uiQp = rand() % 52;
308308 FillWithRandomData ((uint8_t*)pInput[0], 32);
309309 for (int32_t i = 0 ; i < 16; i++) {
310− pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32640, 32640);
310+ pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32000, 32000);
311311 }
312312 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 32);
313313
@@ -334,7 +334,7 @@ TEST (ReconstructionFunTest, WelsQuant4x4Dc) { · 20 unmodified lines
334334 uint8_t uiQp = rand() % 52;
335335 FillWithRandomData ((uint8_t*)pInput[0], 32);
336336 for (int32_t i = 0 ; i < 16; i++) {
337− pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32640, 32640);
337+ pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32000, 32000);
338338 }
339339 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 32);
340340
@@ -360,7 +360,7 @@ TEST (ReconstructionFunTest, WelsQuantFour4x4) { · 19 unmodified lines
360360 uint8_t uiQp = rand() % 52;
361361 FillWithRandomData ((uint8_t*)pInput[0], 128);
362362 for (int32_t i = 0 ; i < 64; i++) {
363− pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32640, 32640);
363+ pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32000, 32000);
364364 }
365365 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 128);
366366
@@ -387,7 +387,7 @@ TEST (ReconstructionFunTest, WelsQuantFour4x4Max) { · 20 unmodified lines
387387 uint8_t uiQp = rand() % 52;
388388 FillWithRandomData ((uint8_t*)pInput[0], 128);
389389 for (int32_t i = 0 ; i < 64; i++) {
390− pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32640, 32640);
390+ pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32000, 32000);
391391 }
392392 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 128);
393393
@@ -414,7 +414,7 @@ TEST (ReconstructionFunTest, WelsDeQuantFour4x4) { · 20 unmodified lines
414414 uint8_t uiQp = rand() % 52;
415415 FillWithRandomData ((uint8_t*)pInput[0], 128);
416416 for (int32_t i = 0 ; i < 64; i++) {
417− pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32640, 32640);
417+ pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32000, 32000);
418418 }
419419 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 128);
420420

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t