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
248 uint8_t uiQp = rand() % 52;248 uint8_t uiQp = rand() % 52;
249 FillWithRandomData ((uint8_t*)pInput[0], 32);249 FillWithRandomData ((uint8_t*)pInput[0], 32);
250 for (int32_t i = 0 ; i < 16; i++) {250 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);
252 }252 }
253 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 32);253 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 32);
254 254
@@ -278,7 +278,7 @@ TEST (ReconstructionFunTest, WelsDequantIHadamard4x4) { · 23 unmodified lines
278 uint8_t uiQp = rand() % 52;278 uint8_t uiQp = rand() % 52;
279 FillWithRandomData ((uint8_t*)pInput[0], 32);279 FillWithRandomData ((uint8_t*)pInput[0], 32);
280 for (int32_t i = 0 ; i < 16; i++) {280 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);
282 }282 }
283 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 32);283 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 32);
284 284
@@ -307,7 +307,7 @@ TEST (ReconstructionFunTest, WelsQuant4x4) { · 22 unmodified lines
307 uint8_t uiQp = rand() % 52;307 uint8_t uiQp = rand() % 52;
308 FillWithRandomData ((uint8_t*)pInput[0], 32);308 FillWithRandomData ((uint8_t*)pInput[0], 32);
309 for (int32_t i = 0 ; i < 16; i++) {309 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);
311 }311 }
312 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 32);312 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 32);
313 313
@@ -334,7 +334,7 @@ TEST (ReconstructionFunTest, WelsQuant4x4Dc) { · 20 unmodified lines
334 uint8_t uiQp = rand() % 52;334 uint8_t uiQp = rand() % 52;
335 FillWithRandomData ((uint8_t*)pInput[0], 32);335 FillWithRandomData ((uint8_t*)pInput[0], 32);
336 for (int32_t i = 0 ; i < 16; i++) {336 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);
338 }338 }
339 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 32);339 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 32);
340 340
@@ -360,7 +360,7 @@ TEST (ReconstructionFunTest, WelsQuantFour4x4) { · 19 unmodified lines
360 uint8_t uiQp = rand() % 52;360 uint8_t uiQp = rand() % 52;
361 FillWithRandomData ((uint8_t*)pInput[0], 128);361 FillWithRandomData ((uint8_t*)pInput[0], 128);
362 for (int32_t i = 0 ; i < 64; i++) {362 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);
364 }364 }
365 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 128);365 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 128);
366 366
@@ -387,7 +387,7 @@ TEST (ReconstructionFunTest, WelsQuantFour4x4Max) { · 20 unmodified lines
387 uint8_t uiQp = rand() % 52;387 uint8_t uiQp = rand() % 52;
388 FillWithRandomData ((uint8_t*)pInput[0], 128);388 FillWithRandomData ((uint8_t*)pInput[0], 128);
389 for (int32_t i = 0 ; i < 64; i++) {389 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);
391 }391 }
392 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 128);392 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 128);
393 393
@@ -414,7 +414,7 @@ TEST (ReconstructionFunTest, WelsDeQuantFour4x4) { · 20 unmodified lines
414 uint8_t uiQp = rand() % 52;414 uint8_t uiQp = rand() % 52;
415 FillWithRandomData ((uint8_t*)pInput[0], 128);415 FillWithRandomData ((uint8_t*)pInput[0], 128);
416 for (int32_t i = 0 ; i < 64; i++) {416 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);
418 }418 }
419 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 128);419 memcpy ((uint8_t*)pInput[1], (uint8_t*)pInput[0], 128);
420 420

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